antvis / L7

🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis engine.
https://l7.antv.antgroup.com
MIT License
3.67k stars 636 forks source link

水波散点图 当地图缩放时 点位偏移 #2588

Closed guzicheng90 closed 3 months ago

guzicheng90 commented 3 months ago

官方示例“水波散点图” 在当地图缩放时 同一个点位会出现偏移 image image

github-actions[bot] commented 3 months ago

hi @guzicheng90, welcome!

github-actions[bot] commented 3 months ago

Hi @guzicheng90, Please star this repo if you find it useful! Thanks :star:! 你好~ @guzicheng90 🌟 如果这个仓库对你有帮助,可以给我们点个star支持一下~你的支持对我们来说是最大的鼓励,感谢你的支持与点赞 🌟

lvisei commented 3 months ago

看下是不是像数单位,地图缩小的情况下,圆还是那么大,看上去会有有偏移

guzicheng90 commented 3 months ago

我有相同猜测 但这里似乎没有设置渲染方式的地方?
const pointLayer = new PointLayer({}) .source(data, { parser: { type: 'csv', x: 'Longitude', y: 'Latitude', }, }) .shape('circle') .active(true) .animate(true) .size(40) .color('#ffa842') .style({ offsets: [40, 40], });

lvisei commented 3 months ago

style 上

guzicheng90 commented 3 months ago

啊 我把offsets:[40,40]去掉就正常了 谢谢