使用Leaflet JS库旋转地图 [英] Rotating a map using leaflet js library

查看:766
本文介绍了使用Leaflet JS库旋转地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个地图旋转功能,就像openLayers 3中提供的功能一样(请参见下面的示例):

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

是否可以使用leafletjs库,或者使用自定义插件来执行相同的操作?

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

推荐答案

Leaflet当前不支持地图旋转,因为它的所有浏览器均不支持它.插件也不支持此功能,因为旋转逻辑需要在Leaflet核心中实现.

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.

这篇关于使用Leaflet JS库旋转地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆