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

[ios] Support for a customizable zoom gesture centering strategy. #5302

Merged
merged 2 commits into from
Jun 10, 2016

Commits on Jun 9, 2016

  1. [ios] Support for a customizable zoom gesture centering strategy.

    We introduce a new MGLZoomGestureCentering enum and corresponding zoomGestureCentering property on MGLMapView.
    
    Currently, Mapbox automatically adjusts the center of the map relative to the user's gesture location, but for some applications (e.g Uber, Lyft) it is preferable to keep the map center "locked" in response to zoom gestures.
    
    Exisiting code will retain its current behavior without modification and will implicitly use the default value of MGLZoomGestureCenteringFollowsTouch. New code can specify MGLZoomGestureCenteringLockedInPlace to get the new "locked" behavior.
    revetkn committed Jun 9, 2016
    Configuration menu
    Copy the full SHA
    38e51a9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a496b0f View commit details
    Browse the repository at this point in the history