map组件 markers属性动态,在真机有时不能显示markers
发布于 5 年前 作者 junhe 2382 次浏览 来自 问答

<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 回复

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

回到顶部