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

Transformation for custom SVG plot #238

Closed hunterius-prime closed 8 years ago

hunterius-prime commented 8 years ago

When I try to apply transformation to custom "svg" plot , i.e. "r45" , it is not working. Only after mouse hover transformation is applied and plot is moved to top/left 0/0 position and resized.

tried to recreate here http://jsfiddle.net/neveldo/z559d0s2/ , applied transform:"r45" to plot 'limoge'.

neveldo commented 8 years ago

Hello,

It seems that you have the same issue than @reddo : https://github.com/neveldo/jQuery-Mapael/issues/231#issuecomment-220901262. I will check it as soon as possible in order to try to find a solution.

However, it seems that your JSFidlle example don't show the issue on Limoge.

neveldo commented 8 years ago

Hello,

Here we go, I have upgraded the v2.0.0-dev in order to allow transformations to be applied to "SVG" plots, here is a sample : http://cdn.rawgit.com/neveldo/jQuery-Mapael/master/examples/advanced/transformations_on_svg_plots.html . I hope it will solve your issue !

reddo commented 8 years ago

Very cool, much obliged.

neveldo commented 8 years ago

You are welcome :) Feel free to give me a feedback on SVG transforms with your own project if you have the time !

hunterius-prime commented 8 years ago

Transformation works as intended ... for now. Thank you very much.