Skip to content

Map#getCenter returns incorrect result after invalidateSize({pan: false}) #1919

Closed
@jfirebaugh

Description

If the map is resized and invalidateSize({pan: false}) is called, then getCenter() still returns this._initialCenter, which is not correct -- the resize has effectively changed the center without "moving" the map.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions