Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rotating a map using leaflet js library

I need a map rotation feature just like the one available from openLayers 3 (check example below):

http://ol3js.org/en/master/examples/drag-rotate-and-zoom.html

Is there a way to do the same thing using the leafletjs library, or perhaps, using a custom plugin?

like image 277
Paulo Avatar asked Apr 05 '14 02:04

Paulo


1 Answers

Leaflet doesn't currently support map rotation, because it wouldn't be supported by its full range of browsers. This also isn't supported by plugins, since rotation logic would need to be implemented in Leaflet core.

like image 56
tmcw Avatar answered Sep 25 '22 10:09

tmcw