-
Notifications
You must be signed in to change notification settings - Fork 634
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
geojson位置偏移 #1890
Comments
hi @wy2123726, welcome! |
Hi @wy2123726, Please star this repo if you find it useful! Thanks ⭐! |
Hello @wy2123726. Please provide a online reproduction by forking codesandbox of @antv/l7 demo template Issues labeled by 你好 @wy2123726, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 @antv/l7 demo 模板 3 天内未跟进此 issue 将会被自动关闭。 |
比如: const scene = new Scene({ // 标准的geojson数据 scene.on('loaded', () => {
}) 地图会出现一个红点,我如何不改变data值,只操作L7让这个红点往右偏移0.1°? |
更新一下经纬度,setdata 更新图层 |
就是说还是得对data进行操作,并不能用L7的API函数进行操作,因为这是一个简单的例子,如果是大量数据的整体偏移,如果遍历data会造成浏览器卡顿,L7有没有API函数进行偏移操作并且不卡顿? |
只能通过更新数据,然后setData https://l7.antv.antgroup.com/api/source/source#setdata |
请问L7如何对已经写好了的geojson数据进行位置偏移的操作?
The text was updated successfully, but these errors were encountered: