map组件在部分机型上无法显示
< map id = "myMap" style = "width: 100%; height: 100%;" latitude = "{{latitude}}" longitude = "{{longitude}}" markers = "{{markers}}" covers = "{{covers}}" controls = "{{controls}}" show-location ></ map > |
Page({ data: { CustomBar: app.globalData.CustomBar, StatusBar: app.globalData.StatusBar, top: app.globalData.CustomBar+ 40 , isShow: true , currentTab: 0 , list: [], latitude: 28.866000 , longitude: 105.401560 , markers: [{ id: 1 , latitude: 28.866000 , longitude: 105.401560 , name: '华阳街道' }], covers: [{ latitude: 28.866000 , longitude: 105.401560 , iconPath: '/images/location.png' }, { latitude: 28.866000 , longitude: 105.401560 , iconPath: '/images/location.png' }], controls: [{ id: 1 , position: { left: 0 , top: 300 - 50 , width: 50 , height: 50 }, clickable: true }] }, |
测试用小米8,小米9都不能正常显示map组件。小米8有时候又会显示出来一次,关闭之后再点就显示不出来了。iphone7,iphone8和部分安卓手机均显示正常