实验点聚合时报错:
cluster = new AMap.MarkerClusterer(map, markers, {
gridSize: 80,
renderClusterMarker: _renderClusterMarker
});
改为:
map.plugin(["AMap.MarkerCluster"],function() {
cluster = new AMap.MarkerClusterer(map, markers, {
gridSize: 80,
renderClusterMarker: _renderClusterMarker
});
})
map.plugin 代表高德地图插件