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.

iOS: Zooming out beyond ~z10 with tracking mode enabled will force zoom in, reset tracking #1256

Closed

Description

@friedbunny

When any MGLUserTrackingMode is enabled and the user zooms out beyond round(self.zoomLevel) >= 10, we force the map to zoom to "near accuracy confidence" — usually about z18.

The eventual call to [MGLMapView setCenterCoordinate:zoomLevel:animated:] also mistakenly resets the tracking mode.

Activity

  1. friedbunny commented on Apr 11, 2015

    @friedbunny
    ContributorAuthor

    Lies! 💔

    // assumes we won't disrupt tracking mode
    [self zoomToSouthWestCoordinate:desiredSouthWest northEastCoordinate:desiredNorthEast animated:YES];
    - (void)zoomToSouthWestCoordinate:(CLLocationCoordinate2D)southWestCoordinate northEastCoordinate:(CLLocationCoordinate2D)northEastCoordinate animated:(BOOL)animated
    {
        // NOTE: does not disrupt tracking mode
    ...
  2. added
    iOS
    on Apr 25, 2015
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

    bugiOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions