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

Rotate plot image #272

Closed Patrick1909 closed 8 years ago

Patrick1909 commented 8 years ago

Hello,

does anybody know how I can change the slope of an image? I want to rotate the image e.g. 45 degrees like this: transform: rotate(45deg);

Is it possible to change the slope directly here?: plots: { 'paris': { type: "image", url: "img/dark/appbar.plane.png", width: 38, height: 38, latitude: 48.86, longitude: 2.3444, attrs: { opacity: 1 }, attrsHover: { transform: "s1.5" } },

Thank you very much for any support.

Patrick1909 commented 8 years ago

I guess the easiest solution is transform: "r45":

plots: { 'paris': { type: "image", url: "img/dark/appbar.plane.png", width: 38, height: 38, latitude: 48.86, longitude: 2.3444, attrs: { opacity: 1, transform: "r45" }, attrsHover: { transform: "s1.5" } } }

neveldo commented 8 years ago

Hello @Patrick1909 ,

You are right, the transform r45 is the way to go for your need, thank for having kept updated !