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

animateTo support reverse Rotation direction #2414

Merged
merged 4 commits into from
Oct 14, 2024
Merged

Conversation

deyihu
Copy link
Collaborator

@deyihu deyihu commented Sep 4, 2024

fix #851

   map.setView({
                bearing: -178
 })
map.animateTo(
                {
                    bearing: 177,

                    // callName: "setAzimuthalAngle",
                }, {
                duration: 1000,
                counterclockwise: true
            },
                frame => {
                    console.log(frame);
                }
)

@fuzhenn
Copy link
Member

fuzhenn commented Sep 19, 2024

感觉可以把reverse: true 改成 counterclockwise: true,意义会更明确。

@deyihu
Copy link
Collaborator Author

deyihu commented Sep 24, 2024

@fuzhenn 已经改好

@deyihu deyihu requested a review from fuzhenn September 24, 2024 01:42
@fuzhenn fuzhenn merged commit 8eb9ac4 into maptalks:master Oct 14, 2024
1 check passed
@deyihu deyihu deleted the 851 branch October 14, 2024 07:47
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

Successfully merging this pull request may close these issues.

AnimationTo can create bearing changes of almost a full circle when changing around 180 and -180 degrees.
2 participants