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

 

转载自:https://blog.csdn.net/itas109/article/details/70054588

You may also like...