|
@ -132,7 +132,7 @@ export class MarkerCluster { |
|
|
} |
|
|
} |
|
|
removeData(_id, _data) { |
|
|
removeData(_id, _data) { |
|
|
if (!_data) return; |
|
|
if (!_data) return; |
|
|
if (!Array.isArray(data)) data = [_data]; |
|
|
if (!Array.isArray(_data)) _data = [_data]; |
|
|
const _vpmIndex = Vue.prototype.mapInsOpenLayers.findIndex(_id); |
|
|
const _vpmIndex = Vue.prototype.mapInsOpenLayers.findIndex(_id); |
|
|
if(_vpmIndex !== -1){ |
|
|
if(_vpmIndex !== -1){ |
|
|
Vue.prototype.mapInsOpenLayers.splice(_vpmIndex) |
|
|
Vue.prototype.mapInsOpenLayers.splice(_vpmIndex) |
|
|