summaryrefslogtreecommitdiff
path: root/platform/macos/app
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2018-02-07 12:42:21 -0800
committerMinh Nguyễn <mxn@1ec5.org>2018-02-07 12:42:21 -0800
commit2ed069cb0a4e057d0a6135530e073d7094e6c4ee (patch)
tree12f2fb7ed3caf5a2fab6ecf884be0a647c06ac3c /platform/macos/app
parent6c5e4575907c9c7ff73d327114f0c105e6684a4d (diff)
downloadqtlocation-mapboxgl-2ed069cb0a4e057d0a6135530e073d7094e6c4ee.tar.gz
[ios, macos] Copyedited computed source wrapping optionsupstream/1ec5-custom-wrap-docs
Renamed MGLShapeSourceOptionWrapCoordinates to MGLShapeSourceOptionWrapsCoordinates and MGLShapeSourceOptionClipCoordinates to MGLShapeSourceOptionClipsCoordinates. Copyedited their documentation comments.
Diffstat (limited to 'platform/macos/app')
-rw-r--r--platform/macos/app/MapDocument.m10
1 files changed, 6 insertions, 4 deletions
diff --git a/platform/macos/app/MapDocument.m b/platform/macos/app/MapDocument.m
index e23927c5a7..7d39f93347 100644
--- a/platform/macos/app/MapDocument.m
+++ b/platform/macos/app/MapDocument.m
@@ -726,11 +726,13 @@ NS_ARRAY_OF(id <MGLAnnotation>) *MBXFlattenedShapes(NS_ARRAY_OF(id <MGLAnnotatio
[self.undoManager setActionName:@"Add Graticule"];
}
+ NSDictionary *sourceOptions = @{
+ MGLShapeSourceOptionMaximumZoomLevel:@14,
+ MGLShapeSourceOptionWrapsCoordinates: @YES,
+ MGLShapeSourceOptionClipsCoordinates: @YES,
+ };
MGLComputedShapeSource *source = [[MGLComputedShapeSource alloc] initWithIdentifier:@"graticule"
- options:@{MGLShapeSourceOptionMaximumZoomLevel:@14
- , MGLShapeSourceOptionWrapCoordinates: @YES
- , MGLShapeSourceOptionClipCoordinates: @YES
- }];
+ options:sourceOptions];
source.dataSource = self;
[self.mapView.style addSource:source];