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 trigger respect area/plot/link cssClass option #318

Closed Indigo744 closed 7 years ago

Indigo744 commented 7 years ago

Fix #314

Behavior before: https://jsfiddle.net/pur13u8k/3/ Behavior after: https://jsfiddle.net/u106vfar/2/

Note: I also updated updateElem() signature to be similar to initElem()

initElem => (elem, elemOptions, id)
[before] updateElem => (elemOptions, elem, animDuration)
[after] updateElem => (elem, elemOptions, animDuration)
neveldo commented 7 years ago

Hi @Indigo744 ,

Great fix ! Thanks for also having standardized the function signatures !