leaflet知识整理

如需转载请标明出处:http://blog.csdn.net/itas109 

QQ技术交流群:129518033

一.Leaflet插件

1.marker移动

可以让marker自由移动,适合地图中GPS移动

https://github.com/ewoken/Leaflet.MovingMarker

2.地图全屏

https://github.com/Leaflet/Leaflet.fullscreen

3.marker加入小图标

https://github.com/lvoogdt/Leaflet.awesome-markers

4.鼠标右键菜单

点击鼠标右键弹出菜单进行相应操作

https://github.com/aratcliffe/Leaflet.contextmenu

5.波动的小图标

在导航/定位中可以用这种图标

https://github.com/mapshakers/leaflet-icon-pulse

6.搜索定位插件

https://github.com/stefanocudini/leaflet-search

7.地图加载等待

https://github.com/makinacorpus/Leaflet.Spin

8.动态图层选择

https://github.com/aebadirad/Leaflet.AutoLayers

9.地图切换

https://github.com/consbio/Leaflet.Basemaps

10.侧边栏

https://github.com/turbo87/leaflet-sidebar/

11.小地图导航

https://github.com/Norkart/Leaflet-MiniMap

12.前进后退插件

https://github.com/davidchouse/Leaflet.NavBar

13.放大镜

https://github.com/bbecquet/Leaflet.MagnifyingGlass

14.测量工具

支持汉化

var measureControl = new L.Control.Measure({ 
				localization: 'cn', 
				primaryLengthUnit: 'meters', 
				secondaryLengthUnit: 'kilometers',
				primaryAreaUnit: 'sqmeters', 
				secondaryAreaUnit: 'hectares',
			});
			measureControl.addTo(map);

https://github.com/ljagis/leaflet-measure

16.鼠标位置

https://github.com/ardhi/Leaflet.MousePosition

17.按钮

https://github.com/CliffCloud/Leaflet.EasyButton

18.提示信息

https://github.com/tinuzz/leaflet-messagebox

19.弹出框

https://github.com/mapshakers/leaflet-control-window

20.侧边栏菜单

https://github.com/unbam/Leaflet.SlideMenu

21.打印

https://github.com/rowanwins/leaflet-easyPrint

22.Echart

https://github.com/wandergis/leaflet-echarts

23.图层要素编辑

https://github.com/kklimczak/Leaflet.Pin

24.矢量绘制和编辑控件 

23的控件基于此控件

https://github.com/Leaflet/Leaflet.draw

25.标签聚合

https://github.com/Leaflet/Leaflet.markercluster

26.地图放缩限制

https://github.com/Zverik/Leaflet.LimitZoom

二.地图相关

三.其他

1.坐标转换

百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换的工具模块

https://github.com/wandergis/coordtransform

参考:

http://leafletjs.com/plugins.html

http://www.cnblogs.com/Ironman-Jason/p/5979915.html

https://segmentfault.com/a/1190000000489985

觉得文章对你有帮助,可以扫描二维码捐赠给博主,谢谢!

 如需转载请标明出处:http://blog.csdn.net/itas109 

QQ技术交流群:129518033

评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

itas109

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值