From bbf1952148264c3be71bc9e9c0af56598038a222 Mon Sep 17 00:00:00 2001 From: handongxun Date: Tue, 3 Mar 2020 14:48:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20v3=20nvue=20map=20API=20translateMarker?= =?UTF-8?q?=20=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/service/api/context/create-map-context.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/service/api/context/create-map-context.js b/src/core/service/api/context/create-map-context.js index 6d7b4d819..74dfd64ca 100644 --- a/src/core/service/api/context/create-map-context.js +++ b/src/core/service/api/context/create-map-context.js @@ -18,7 +18,7 @@ UniServiceJSBridge.subscribe('onMapMethodCallback', ({ callback.invoke(callbackId, data) }) -const methods = ['getCenterLocation', 'translateMarker', 'getScale', 'getRegion'] +const methods = ['getCenterLocation', 'getScale', 'getRegion'] export class MapContext { constructor (id, pageVm) { @@ -32,6 +32,10 @@ export class MapContext { includePoints (args) { operateMapPlayer(this.id, this.pageVm, 'includePoints', args) + } + + translateMarker (args) { + operateMapPlayer(this.id, this.pageVm, 'translateMarker', args) } } -- GitLab