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

查看:17
本文介绍了使用传单 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/示例/拖动旋转和缩放.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.

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

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