ElemeFE / vue-amap

🌍 基于 Vue 2.x 和高德地图的地图组件
https://elemefe.github.io/vue-amap/
MIT License
3.34k stars 582 forks source link

安卓6.0系统地图渲染不出来 #552

Open Tianyazz opened 5 years ago

Tianyazz commented 5 years ago

安卓6.0系统地图渲染不出来

VueAMap 版本 0.5.10

OS/Browsers version

Vue 版本 2.6.10

预期 在安卓手机上显示正常

实际 在安卓手机上地图渲染不出来,调试发现地啊哟用lazyAMapApiLoaderInstance.load()方法进入了catch();err:{isTrusted: true}

我的代码

Vue.use(VueAMap) VueAMap.initAMapApiLoader({ key: 'f9d9f24bf4e654467bd1c9284df2c664', plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.Geolocation'], uiVersion: '1.0.11', v: '1.4.4' }) lazyAMapApiLoaderInstance.load().then(() => { localStorage.removeItem('_AMap_raster') Vue.use(VueAMap) }) .catch((err) => { alert(JSON.stringify(err)) })

Tianyazz commented 5 years ago

没人解答吗