Rotating a map using leaflet js library

落花浮王杯 提交于 2019-11-30 05:41:05

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/22875857/rotating-a-map-using-leaflet-js-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!