maptalks / maptalks/maptalks.js
.flyTo() 在經度大于 180° 時飛行效果不對
Open
@fuzhenn is already working on this.
Since Oct 16, 2024.
- Dominant language
- HTML
- Stars
- 4.5k
- Forks
- 511
- Avg merge
- 3d 58m
- Merged PRs (30d)
- 1
Description
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});// 同前點
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.