diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2019-05-03 09:02:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-03 09:02:03 -0700 |
commit | e69efb996d32c86f00b08878a61c6f0a47c81932 (patch) | |
tree | f2b3ed87ac11f2e7ea7cd6f46739b466ee7e02e3 /platform/ios/src/MGLMapView.h | |
parent | 359f2bb743c91406b054ce1af5c98b1a242f4e86 (diff) | |
download | qtlocation-mapboxgl-e69efb996d32c86f00b08878a61c6f0a47c81932.tar.gz |
[ios] Interpret negative direction as unchanged when setting visible coordinates (#14575)
* [ios] Fixed negative direction when setting visible coordinates
* [ios] Document behavior of negative direction
Diffstat (limited to 'platform/ios/src/MGLMapView.h')
-rw-r--r-- | platform/ios/src/MGLMapView.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h index 607a197840..63bd28fc0c 100644 --- a/platform/ios/src/MGLMapView.h +++ b/platform/ios/src/MGLMapView.h @@ -744,7 +744,7 @@ MGL_EXPORT @param centerCoordinate The new center coordinate for the map. @param zoomLevel The new zoom level for the map. @param direction The new direction for the map, measured in degrees relative to - true north. + true north. A negative value leaves the map’s direction unchanged. @param animated Specify `YES` if you want the map view to animate scrolling, zooming, and rotating to the new location or `NO` if you want the map to display the new location immediately. @@ -761,7 +761,7 @@ MGL_EXPORT @param centerCoordinate The new center coordinate for the map. @param zoomLevel The new zoom level for the map. @param direction The new direction for the map, measured in degrees relative to - true north. + true north. A negative value leaves the map’s direction unchanged. @param animated Specify `YES` if you want the map view to animate scrolling, zooming, and rotating to the new location or `NO` if you want the map to display the new location immediately. @@ -942,7 +942,8 @@ MGL_EXPORT @param insets The minimum padding (in screen points) that will be visible around the given coordinate bounds. @param direction The direction to rotate the map to, measured in degrees - relative to true north. + relative to true north. A negative value leaves the map’s direction + unchanged. @param duration The duration to animate the change in seconds. @param function The timing function to animate the change. @param completion The block executed after the animation finishes. |