From 371a210be877e21ad6564f739d1c5f3ef7f3c532 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Wed, 27 Jan 2016 11:34:12 -0800 Subject: [ios] getters, setters for minZoom, maxZoom adds: minimumZoomLevel setMinimumZoomLevel maximumZoomLevel setMaximumZoomLevel --- include/mbgl/ios/MGLMapView.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'include/mbgl/ios/MGLMapView.h') diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h index b27db4976a..bd4b048d64 100644 --- a/include/mbgl/ios/MGLMapView.h +++ b/include/mbgl/ios/MGLMapView.h @@ -463,6 +463,30 @@ IB_DESIGNABLE */ - (void)setZoomLevel:(double)zoomLevel animated:(BOOL)animated; +/** + * The minimum zoom level at which the map can be shown. + * + * Depending on the map view’s aspect ratio, the map view may be prevented + * from reaching the minimum zoom level, in order to keep the map from + * repeating within the current viewport. + * + * If the value of this property is greater than that of the + * maximumZoomLevel property, the behavior is undefined. + * + * The default minimumZoomLevel is 0. + */ +@property (nonatomic) double minimumZoomLevel; + +/** + * The maximum zoom level the map can be shown at. + * + * If the value of this property is smaller than that of the + * minimumZoomLevel property, the behavior is undefined. + * + * The default maximumZoomLevel is 20. + */ +@property (nonatomic) double maximumZoomLevel; + /** The heading of the map, measured in degrees clockwise from true north. -- cgit v1.2.1