效果截图展示:
高德地图点聚合功能代码如下:
js:聚合功能
/* 聚合功能 */
var sts = [
{
url:
"http://isdapp.shandong.gov.cn/ceshicomp/resources/lnzbslc/dbx5x.png",
size: new AMap.Size(32, 32),
offset: new AMap.Pixel(-16, -16),
textColor: "#fff",
},
];
new AMap.MarkerClusterer(that.map, that.markerss, {
styles: sts,
gridSize: 60,
});
版权声明:本文为qq_39891453原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。