From 9492f38596c1d8d8b2e10f0a3efdb5e1a2722fdd Mon Sep 17 00:00:00 2001 From: handongxun Date: Mon, 16 Mar 2020 19:12:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20v3=20vue=20map=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=B8=85=E7=A9=BA=20marker=20=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/app-plus/view/components/map/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platforms/app-plus/view/components/map/index.vue b/src/platforms/app-plus/view/components/map/index.vue index 7b5d9bea6..d244ab430 100644 --- a/src/platforms/app-plus/view/components/map/index.vue +++ b/src/platforms/app-plus/view/components/map/index.vue @@ -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) -- GitLab