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

fix: v3 nvue map API translateMarker 无效的问题

上级 1b84793c
...@@ -18,7 +18,7 @@ UniServiceJSBridge.subscribe('onMapMethodCallback', ({ ...@@ -18,7 +18,7 @@ UniServiceJSBridge.subscribe('onMapMethodCallback', ({
callback.invoke(callbackId, data) callback.invoke(callbackId, data)
}) })
const methods = ['getCenterLocation', 'translateMarker', 'getScale', 'getRegion'] const methods = ['getCenterLocation', 'getScale', 'getRegion']
export class MapContext { export class MapContext {
constructor (id, pageVm) { constructor (id, pageVm) {
...@@ -32,6 +32,10 @@ export class MapContext { ...@@ -32,6 +32,10 @@ export class MapContext {
includePoints (args) { includePoints (args) {
operateMapPlayer(this.id, this.pageVm, 'includePoints', args) operateMapPlayer(this.id, this.pageVm, 'includePoints', args)
}
translateMarker (args) {
operateMapPlayer(this.id, this.pageVm, 'translateMarker', args)
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册