Skip to content

Animate to center with altitude #2724

@HWAZWD

Description

@HWAZWD

Can I animate to a position with lng、lat、altitude?
I tried this:

map.animateTo(
          {
            center: [targetCenter.x, targetCenter.y, altitude],
            zoom: 24,
            pitch: 80
          },
          { duration: 2000 }
        )

but after animation, once left mouse down, the center will be reset,and cause a slight jump。

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions