var MAX = 10;
var markers = [];
var pt = null;
var i = 0;
for (; i < MAX; i++) {
pt = new BMap.Point(Math.random() * 40 + 85, Math.random() * 30 + 21);
markers.push(new BMap.Marker(pt));
}
console.log(markers)
//最简单的用法,生成一个marker数组,然后调用markerClusterer类即可。
var markerClusterer = new BMapLib.MarkerClusterer(this.map, { markers: markers });
Uncaught TypeError: Cannot read properties of undefined (reading 'style')
at BMapLib.TextIconOverlay.e._updateCss (TextIconOverlay_min.js:1:7224)