Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
guzicheng90 opened this issue Aug 12, 2024 · 6 comments
Closed

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

guzicheng90 opened this issue Aug 12, 2024 · 6 comments
Assignees

Comments

@guzicheng90
Copy link

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

Copy link
Contributor

hi @guzicheng90, welcome!

Copy link
Contributor

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

@lvisei
Copy link
Member

lvisei commented Aug 12, 2024

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

@guzicheng90
Copy link
Author

我有相同猜测 但这里似乎没有设置渲染方式的地方?
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
Copy link
Member

lvisei commented Aug 12, 2024

style 上

@guzicheng90
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants