From e8cad05c4e00d08072e45dd0f2bb7d9b3caf81c7 Mon Sep 17 00:00:00 2001 From: hdx Date: Thu, 3 Nov 2022 15:35:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20nvue=20MapContext=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20setLocMarkerIcon=20=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/service/api/context/create-map-context.js | 3 ++- .../app-plus-nvue/service/api/context/operate-map-player.js | 3 +++ 2 files 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 0f7f0bdb9..b377d4b9a 100644 --- a/src/core/service/api/context/create-map-context.js +++ b/src/core/service/api/context/create-map-context.js @@ -32,7 +32,8 @@ const methods = ['getCenterLocation', 'initMarkerCluster', 'addMarkers', 'removeMarkers', - 'moveAlong', + 'moveAlong', + 'setLocMarkerIcon', 'openMapApp'] export class MapContext { diff --git a/src/platforms/app-plus-nvue/service/api/context/operate-map-player.js b/src/platforms/app-plus-nvue/service/api/context/operate-map-player.js index e66bad204..41d8dfc66 100644 --- a/src/platforms/app-plus-nvue/service/api/context/operate-map-player.js +++ b/src/platforms/app-plus-nvue/service/api/context/operate-map-player.js @@ -49,6 +49,9 @@ const METHODS = { }, moveAlong (ctx, args) { return invokeVmMethod(ctx, 'moveAlong', args) + }, + setLocMarkerIcon (ctx, args) { + return invokeVmMethod(ctx, 'setLocMarkerIcon', args) }, openMapApp (ctx, args) { return invokeVmMethod(ctx, 'openMapApp', args) -- GitLab