Open Tianyazz opened 5 years ago
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)) })
没人解答吗
安卓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)) })