map组件 markers属性动态,在真机有时不能显示markers

发布于 7 年前作者 junhe2502 次浏览最后编辑 7 年前来自 ask

<map

           id=“mainMap”  

           scale=“13”

           latitude=“{{latitude}}”

           longitude=“{{longitude}}”

           bindcontroltap=“controltap”

           bindmarkertap=“markertap”

           bindcallouttap=“markertap”

           markers=“{{markers}}”

           bindregionchange=“regionchange”

           show-location

           style=“height:{{mapHeight}}px”

           bindtap=‘mapTap’

           >

 

切换城市,重新获取数据,更新this.data.markers数据,就会出现map上的marker丢失,这个在iphone上发生的概率更大,

开发工具上重来都没有丢失过

求解决方案

1 回复
jie56
jie561 楼5 年前

我的在电脑上可以,但是手机上不行