Skip to content

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

Open
@heangfat

Description

@heangfat

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});// 同前點

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions