leaflet聚合图功能(附源码下载)
前言 leaflet 入门开发系列环境知识点了解: leaflet api文档介绍 ,详细介绍 leaflet 每个类的函数以及属性等等 leaflet 在线例子 leaflet 插件 ,leaflet 的插件库,非常有用 内容概览 leaflet聚合图功能 源代码demo下载 效果图如下: 本篇主要参考leaflet官网聚合效果插件Leaflet.markercluster: https://github.com/Leaflet/Leaflet.markercluster 这个聚合插件具体使用看github地址,那里有详细说明以及例子。 模拟数据geojson格式如下: var geojson = {"type":"FeatureCollection", "features" : [ { "type":"Feature","geometry":{"type":"Point","coordinates":[113.16305738210656,23.13667404697526]},"properties":{"Name_CHN":"赤岗塔","StationNum":1,"Status":1 }}, { "type":"Feature","geometry":{"type":"Point","coordinates":[113.18383377370634,23