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

.flyTo() 在經度大于 180° 時飛行效果不對 #2428

Open
heangfat opened this issue Sep 24, 2024 · 0 comments
Open

.flyTo() 在經度大于 180° 時飛行效果不對 #2428

heangfat opened this issue Sep 24, 2024 · 0 comments
Assignees

Comments

@heangfat
Copy link
Contributor

Issue description

map.flyTo() 在經度大于 180° 時,會先移到該經度減 360° 處,然後飛往該經度。即使起點與終點相同亦如此。

map.animateTo() 問題類似。

Please provide a reproduction code

map.flyTo({zoom:7, center:[105,37]}, {duration:2000});
map.flyTo({zoom:5, center:[280,44]}, {duration:2000});
map.flyTo({zoom:5, center:[280,44]}, {duration:2000});// 同前點
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

2 participants