🐛 [BUG]leaflet的地图缩放后,绘制异常
wch360119203 opened this issue · comments
Celery Warlock commented
代码:https://codesandbox.io/s/priceless-cache-sc6w8j?file=/index.js
leaflet的地图缩放后,拖拽顶点,顶点和鼠标的位置不一致
🐛 Bug description [Please make everyone to understand it]
Please provide a link by forking these links L7 Draw or GitHub repo, a minimal reproduction.
- Required Link to minimal reproduction:
📷 Step to reproduce
🏞 Expected result
🚑 Any additional [like screenshots]
- L7Draw Version:3.0.14
- Platform:chrome117
heiyexing commented
该问题是由于 @antv/l7-leaflet 里 scene.setMapStatus 方法以及地图事件经纬度偏差导致的,你可以选择使用 leaflet 生态的绘制库,或者贡献代码完善 @antv/l7-leaflet 结合 @antv/l7-draw 场景下的使用。