Skip to content

Commit

Permalink
feat: nvue MapContext 增加 setLocMarkerIcon 方法
Browse files Browse the repository at this point in the history
  • Loading branch information
dcloudhdx committed Nov 3, 2022
1 parent 7ef5d2c commit e8cad05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/service/api/context/create-map-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const methods = ['getCenterLocation',
'initMarkerCluster',
'addMarkers',
'removeMarkers',
'moveAlong',
'moveAlong',
'setLocMarkerIcon',
'openMapApp']

export class MapContext {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e8cad05

Please sign in to comment.