waynegm / imgViewer2

Extensible and responsive jQuery plugin to zoom and pan images based on the Leaflet mapping library
MIT License
60 stars 34 forks source link

Can we rotate image of imgViewer on 90 degree ? #23

Closed ankit-vaghela closed 6 years ago

ankit-vaghela commented 6 years ago

I want to rotate image of imgViewer on 90 degree.

waynegm commented 6 years ago

Why not just rotate the image offline and send it? Otherwise have a look at the available Leaflet Plugins maybe there is one that does what you want.

ankit-vaghela commented 6 years ago

I try that. I rotate image to 90 degree but issue is my marker get change. Because when I use first time I use image at 0 degree. And I want to fit image in map overlay so I need to rotate it 90 degree. So I think I need to rotate map to 90 degree. Is there any way that I can rotate leaflet map to 90 degree ?

waynegm commented 6 years ago

Could you swap the x and y coordinates of the markers (may need a sign change as well depending on if the rotation is clockwise or not) then they would plot correctly.

ankit-vaghela commented 6 years ago

I am sending sample code on your email. I think then you can get me. Thanks