5月23日-5月24日,23日没有问题,24日一看我地图就出来问题,检查后发现是map组件setting配置项配置enableSatellite为true就会报渲染错误
setting
{
showLocation: true,
showScale: false,
enableZoom: true,
enableScroll: true,
enableSatellite: true
},
报错情况(key我最后几位就藏起来了)
[渲染层错误] TypeError: Cannot read property 'updateMapAppNum' of undefined
at e.value (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-*****&callback=__map_jssdk_init:17:162027)
at l.enableSatelliteChanged (http://127.0.0.1:35428/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1653355802976&v=2.24.2:2:1345266)
at http://127.0.0.1:35428/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1653355802976&v=2.24.2:2:1354881
at Array.forEach (<anonymous>)
at l._ready (http://127.0.0.1:35428/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1653355802976&v=2.24.2:2:1354852)
at l.initMap (http://127.0.0.1:35428/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1653355802976&v=2.24.2:2:1323500)
at l.attached (http://127.0.0.1:35428/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1653355802976&v=2.24.2:2:1320887)
at a.safeCallback (http://127.0.0.1:35428/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1653355802976&v=2.24.2:2:361951)
at a.call (http://127.0.0.1:35428/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1653355802976&v=2.24.2:2:361736)
at t (http://127.0.0.1:35428/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1653355802976&v=2.24.2:2:379284)(env: Windows,mp,1.05.2204250; lib: 2.24.2)
已恢复请查看一下
我没有设置setting 都报这个错
我也遇见了,昨天还是好的。今天就突然报错了
补充一下现象,在真机上没有问题,在开发者工具上有问题