leafletView = new PruneClusterForLeaflet();
$.each(data, function (index, item) {
var m = new PruneCluster.Marker(item.x, item.y, item);
leafletView.RegisterMarker(m);
});
map.addLayer(leafletView);
data //数据源
item.x,item.y //经纬度
map //leaflet地图对象
Leaflet.PruneCluster 聚合.
于 2018-12-26 14:34:20 首次发布