diff options
author | Mark Allen <mark.a.allen@gmail.com> | 2016-06-09 20:05:15 -0400 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-06-09 17:05:15 -0700 |
commit | b915f05a069d4658cc11d91a4bae2ef52c5fcbf1 (patch) | |
tree | 358d1d9a82c27c81b0ebce732be0c08447b2c00b /.mason | |
parent | 511801c17ab2dd47b11a84c6c23ed564dad04c29 (diff) | |
download | qtlocation-mapboxgl-b915f05a069d4658cc11d91a4bae2ef52c5fcbf1.tar.gz |
[ios] Support for a customizable zoom gesture centering strategy. (#5302)
* [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.
* [ios] Added -anchorPointForGesture: to MGLMapView
Diffstat (limited to '.mason')
0 files changed, 0 insertions, 0 deletions