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