【发布时间】:2015-08-06 08:07:42
【问题描述】:
我正在密切关注https://switch2osm.org/using-tiles/getting-started-with-leaflet 的示例,同时添加更多有用的功能。除了使用来自https://github.com/Leaflet/Leaflet.markercluster 的插件对标记进行额外的聚类之外,一切都是开箱即用的。我想换行
var plotmark = new L.Marker(plotll);
与
var plotmark = new L.MarkerClusterGroup(plotll);
虽然这会在 Leaflet.js 中触发错误。有什么想法吗?
【问题讨论】:
标签: javascript leaflet openlayers gis