提交 9492f385 编写于 作者: d-u-a's avatar d-u-a

fix: v3 vue map 组件无法清空 marker 属性的Bug

上级 e47003ab
......@@ -177,7 +177,7 @@ export default {
})
},
markers (val) {
this.map && this._addMarkers(val)
this.map && this._addMarkers(val, true)
},
polyline (val) {
this.map && this._addMapLines(val)
......@@ -318,6 +318,7 @@ export default {
if (this.map) {
if (clear) {
this.map.clearOverlays()
this.map.__markers__ = {}
}
markers.forEach(marker => {
this._addMarker(this.map, marker)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册