maptalks / maptalks/maptalks.js

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

Open
#2,428 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.