diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2018-02-07 12:07:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-07 12:07:31 -0800 |
commit | 6c5e4575907c9c7ff73d327114f0c105e6684a4d (patch) | |
tree | 01564fefd1c3747ac176c0704d4ff56732ef9b14 /platform/macos | |
parent | e03f7a4d1f067cd01eb3022811eddb0b1892801b (diff) | |
download | qtlocation-mapboxgl-6c5e4575907c9c7ff73d327114f0c105e6684a4d.tar.gz |
Add options for Custom Geometry Source types to enable clipping and wrapping geometry (#11041)
Diffstat (limited to 'platform/macos')
-rw-r--r-- | platform/macos/app/MapDocument.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/macos/app/MapDocument.m b/platform/macos/app/MapDocument.m index 602ed1aa41..e23927c5a7 100644 --- a/platform/macos/app/MapDocument.m +++ b/platform/macos/app/MapDocument.m @@ -727,7 +727,11 @@ NS_ARRAY_OF(id <MGLAnnotation>) *MBXFlattenedShapes(NS_ARRAY_OF(id <MGLAnnotatio } MGLComputedShapeSource *source = [[MGLComputedShapeSource alloc] initWithIdentifier:@"graticule" - options:@{MGLShapeSourceOptionMaximumZoomLevel:@14}]; + options:@{MGLShapeSourceOptionMaximumZoomLevel:@14 + , MGLShapeSourceOptionWrapCoordinates: @YES + , MGLShapeSourceOptionClipCoordinates: @YES + }]; + source.dataSource = self; [self.mapView.style addSource:source]; MGLLineStyleLayer *lineLayer = [[MGLLineStyleLayer alloc] initWithIdentifier:@"graticule.lines" |