src/model/map/GaoDeMap.ts
@@ -140,6 +140,7 @@ }); const markerList = convertData.map((item) => { const label = new AMap.LabelMarker(item); if (markerOpt.click) { label.on('click', (e) => markerOpt.click(e, label)); } @@ -148,5 +149,6 @@ layer.add(markerList); this.map.add(layer); } }