Skip to content

Map viewport resets after marker data changes #4993

Description

@zstoyanova9

Description

After the user pans the Map to a different location, updating the marker-layer data changes the viewport and returns the Map toward its initially configured center.

Steps To Reproduce

  1. Open the following StackBlitz example - https://stackblitz.com/edit/qdmvbkwu-rot9yuti
  2. Pan the Map to a different location.
  3. Click the Add marker button to add marker data.
  4. Observe that the Map location changes unexpectedly.

Screenshots or video

No response

Actual Behavior

Updating marker data causes the Map to return toward its initially configured center.

Expected Behavior

Updating marker data should preserve the center and zoom selected by the user interaction.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions