提交 5de87940 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

fix(h5 map): 修复高德地图更新 marker callout 报错问题

上级 7d082eab
......@@ -47,7 +47,9 @@ export function createCallout (maps) {
}
function removeAMapText () {
this.option.map.remove(this.Text)
if (this.Text) {
this.option.map.remove(this.Text)
}
}
class Callout {
......@@ -118,7 +120,6 @@ export function createCallout (maps) {
}
if (ISAMAP) {
if (this.visible) {
this.removeAMapText()
this.createAMapText()
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册