是我的问题,已解决了,丢了一个偏移
map添加Marks和poygon都是GCJ-02坐标系但位置却错位?map分开添加poygon和marks标注,都是GCJ-02,poygon的位置正确,但是用于标注的点的坐标作为marks标注的位置时就向西北方向偏移了,都是直接把geojson转成需要的格式往方法里塞。
2022-08-11补充一下现象,在真机上没有问题,在开发者工具上有问题
map组件enableSatellite设置为true出现渲染错误?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)
2022-05-24