diff --git a/platform/darwin/src/MGLShapeSource.mm b/platform/darwin/src/MGLShapeSource.mm index a4a100aaa2..7b19f1a99f 100644 --- a/platform/darwin/src/MGLShapeSource.mm +++ b/platform/darwin/src/MGLShapeSource.mm @@ -27,7 +27,7 @@ const MGLShapeSourceOption MGLShapeSourceOptionSimplificationTolerance = @"MGLShapeSourceOptionSimplificationTolerance"; const MGLShapeSourceOption MGLShapeSourceOptionLineDistanceMetrics = @"MGLShapeSourceOptionLineDistanceMetrics"; -mbgl::style::GeoJSONOptions MGLGeoJSONOptionsFromDictionary(NSDictionary *options) { +mbgl::Immutable MGLGeoJSONOptionsFromDictionary(NSDictionary *options) { auto geoJSONOptions = mbgl::style::GeoJSONOptions(); if (NSNumber *value = options[MGLShapeSourceOptionMinimumZoomLevel]) { @@ -145,7 +145,7 @@ geoJSONOptions.lineMetrics = value.boolValue; } - return geoJSONOptions; + return mbgl::makeMutable(std::move(geoJSONOptions)); } @interface MGLShapeSource () diff --git a/platform/darwin/src/MGLShapeSource_Private.h b/platform/darwin/src/MGLShapeSource_Private.h index c7eaf3d0a8..fd288ef687 100644 --- a/platform/darwin/src/MGLShapeSource_Private.h +++ b/platform/darwin/src/MGLShapeSource_Private.h @@ -1,5 +1,6 @@ #import "MGLFoundation.h" #import "MGLShapeSource.h" +#include NS_ASSUME_NONNULL_BEGIN @@ -10,7 +11,7 @@ namespace mbgl { } MGL_EXPORT -mbgl::style::GeoJSONOptions MGLGeoJSONOptionsFromDictionary(NSDictionary *options); +mbgl::Immutable MGLGeoJSONOptionsFromDictionary(NSDictionary *options); @interface MGLShapeSource (Private) diff --git a/vendor/mapbox-gl-native b/vendor/mapbox-gl-native index 3600dd8a1a..1ac3e9e9c2 160000 --- a/vendor/mapbox-gl-native +++ b/vendor/mapbox-gl-native @@ -1 +1 @@ -Subproject commit 3600dd8a1a4d91290d752d699ed964eab03bb1a5 +Subproject commit 1ac3e9e9c2a8bfc731e3bba978a28562c3f083e5