Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

MGLMapView setCenterCoordinate:zoomLevel:animated doesn't stop any running animations #2204

Closed

Description

@tomtaylor

When doing the following:

  • setCenterCoordinate:zoomLevel:animated is called, with a true animation flag
  • while the animation is executing, setCenterCoordinate:zoomLevel:animated is called again, with a false animation flag

The MGLMapView ends up at the first location, ignoring the second call. I can see the mapViewRegionIsChanging callback announce the second location once, as expected, but then it continues to announce the remaining regions changes for the animation.

Perhaps related, if an MGLMapView is already set to the exact region the user is animating to, the mapViewRegionIsChanging callback is fired a number of times, announcing the current position, without the map region actually changing.

Activity

  1. added
    iOS
    on Aug 29, 2015
  2. incanus commented on Sep 23, 2015

    @incanus
    Contributor

    @tomtaylor Is this still an issue with the latest release and the camera API?

  3. tomtaylor commented on Sep 23, 2015

    @tomtaylor
    Author

    (Ignore previous messages) This looks fixed to me, thanks a lot.

  4. self-assigned this
    on Nov 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugiOS

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions