提交 f8b0d34c 编写于 作者: X xiaoyucoding

fix: 修复 H5 平台 map 组件 controls 点击无效的问题

上级 c40dda36
......@@ -630,6 +630,7 @@ export default {
circles.splice(0, circles.length)
},
createControls () {
var _self = this
var map = this._map
var controls = this.controlsSync
this.removeControls()
......@@ -658,7 +659,7 @@ export default {
img.src = this.$getRealPath(option.iconPath)
img.onclick = function ($event) {
if (option.clickable) {
this.$trigger('controltap', $event, {
_self.$trigger('controltap', $event, {
controlId: option.id
})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册