summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2019-03-21 13:48:43 -0700
committerJason Wray <jason@mapbox.com>2019-03-21 13:50:45 -0700
commit27859d42eda359fc17e1b9e17d3601db47be87ee (patch)
tree3a6ee0bad8e779ce0ac1d2f6e4ad7a7cbeb4eca9
parent2a0f607c8ddd42f9d540226bff03fe3df882c733 (diff)
downloadqtlocation-mapboxgl-upstream/friedbunny-copyedits-changelog-4.10.0-beta.1.tar.gz
[ios] Nitpicky style edits of recent changesupstream/friedbunny-copyedits-changelog-4.10.0-beta.1
-rw-r--r--platform/ios/src/MGLMapView.h27
-rw-r--r--platform/ios/src/MGLMapView.mm6
2 files changed, 18 insertions, 15 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h
index 1ef64a587b..589b7b547b 100644
--- a/platform/ios/src/MGLMapView.h
+++ b/platform/ios/src/MGLMapView.h
@@ -414,12 +414,12 @@ MGL_EXPORT IB_DESIGNABLE
/**
A Boolean value indicating whether the map should prefetch tiles.
- When this property is set to YES, the map view prefetches loads tiles designed for a
- low zoom level and displays them until receiving more detailed tiles for the current
- zoom level. The prefetched tiles typically contain simplified versions of each shape,
- improving the map view’s perceived performance.
+ When this property is set to `YES`, the map view prefetches tiles designed for
+ a low zoom level and displays them until receiving more detailed tiles for the
+ current zoom level. The prefetched tiles typically contain simplified versions
+ of each shape, improving the map view’s perceived performance.
- The default value of this property is YES.
+ The default value of this property is `YES`.
*/
@property (nonatomic, assign) BOOL prefetchesTiles;
@@ -434,17 +434,18 @@ MGL_EXPORT IB_DESIGNABLE
#pragma mark Displaying the User’s Location
/**
- The object that this map view uses to start and stop the delivery of location-related
- updates.
+ The object that this map view uses to start and stop the delivery of
+ location-related updates.
- To receive the current user location, implement the `-[MGLMapViewDelegate mapView:didUpdateUserLocation:]`
- and `-[MGLMapViewDelegate mapView:didFailToLocateUserWithError:]` methods.
+ To receive the current user location, implement the
+ `-[MGLMapViewDelegate mapView:didUpdateUserLocation:]` and
+ `-[MGLMapViewDelegate mapView:didFailToLocateUserWithError:]` methods.
- If setting this property to `nil` or if no custom manager is provided this property
- is set to the default location manager.
+ If setting this property to `nil` or if no custom manager is provided this
+ property is set to the default location manager.
- `MGLMapView` uses a default location manager. If you want to substitute your own
- location manager, you should do so by setting this property before setting
+ `MGLMapView` uses a default location manager. If you want to substitute your
+ own location manager, you should do so by setting this property before setting
`showsUserLocation` to `YES`. To restore the default location manager,
set this property to `nil`.
*/
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 94d56dfff9..793d95fffe 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -2564,11 +2564,13 @@ public:
}
}
-- (void)setPrefetchesTiles:(BOOL)prefetchesTiles{
+- (void)setPrefetchesTiles:(BOOL)prefetchesTiles
+{
_mbglMap->setPrefetchZoomDelta(prefetchesTiles ? mbgl::util::DEFAULT_PREFETCH_ZOOM_DELTA : 0);
}
-- (BOOL)prefetchesTiles{
+- (BOOL)prefetchesTiles
+{
return _mbglMap->getPrefetchZoomDelta() > 0 ? YES : NO;
}