mirror of https://gitee.com/antv-l7/antv-l7
Merge pull request #392 from godblesshugh/master
fix(component): remove all markers from clusterMarkers in MarkerLayer.clear()
This commit is contained in:
commit
7e93570b07
|
@ -112,8 +112,12 @@ export default class MarkerLayer extends EventEmitter {
|
|||
this.markers.forEach((marker: IMarker) => {
|
||||
marker.remove();
|
||||
});
|
||||
this.clusterMarkers.forEach((clusterMarker: IMarker) => {
|
||||
clusterMarker.remove();
|
||||
});
|
||||
this.mapsService.off('camerachange', this.update);
|
||||
this.markers = [];
|
||||
this.clusterMarkers = [];
|
||||
}
|
||||
|
||||
public destroy() {
|
||||
|
|
Loading…
Reference in New Issue