neveldo / jQuery-Mapael

jQuery plugin based on raphael.js that allows you to display dynamic vector maps
https://www.vincentbroute.fr/mapael/
MIT License
1.01k stars 195 forks source link

Update event filtering TimeOut #343

Closed Indigo744 closed 7 years ago

Indigo744 commented 7 years ago

3 modifications:

  1. Define all filtering TimeOut values in the prototype for easy override
  2. Simplify the resize handler (the resizeEnd event was not needed)
  3. Moves resizeTO and panningTO to inner function to avoid clutering the this namespace.
Indigo744 commented 7 years ago

Note: the jshint check error will be handled in another PR

Indigo744 commented 7 years ago

Thanks :)

Asubayo commented 3 years ago

Hello, In an older issue https://github.com/neveldo/jQuery-Mapael/issues/76 you were suggesting to unbind the function resizeEnd. As it has been removed in this pull request, how can we avoid the map to be resized ? The solution in the above linked issue doesn't seems to be valid anymore

Thanks,

Asubayo commented 3 years ago

I found an up to date way to do it with $(window).unbind("resize.mapael");

neveldo commented 3 years ago

Hello @Asubayo , thanks for the feedback, I'm glad you found a solution !