summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadia Barbosa <nadiabarbosa@me.com>2019-05-17 14:59:39 -0700
committerNadia Barbosa <nadiabarbosa@me.com>2019-05-17 14:59:39 -0700
commit62984d668f9594cf727eb92087bbdf0a440a44f3 (patch)
tree0989fe58b9e8832a33505b6d886a57c62d2b049f
parent3be40ad51a8045366d0f3a91b7f74426400ca1a8 (diff)
downloadqtlocation-mapboxgl-upstream/nb-style-inits.tar.gz
Edit MGLStyle.URL propertyupstream/nb-style-inits
-rw-r--r--platform/darwin/src/MGLStyle.h2
-rw-r--r--platform/darwin/src/MGLStyle.mm2
2 files changed, 1 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLStyle.h b/platform/darwin/src/MGLStyle.h
index 5396a60eb4..93d6721b66 100644
--- a/platform/darwin/src/MGLStyle.h
+++ b/platform/darwin/src/MGLStyle.h
@@ -283,7 +283,7 @@ MGL_EXPORT
The <a href="https://docs.mapbox.com/help/glossary/style-url/">style URL</a> associated
with the style.
*/
-@property (readonly, strong, nullable) NSURL *URL;
+@property (nonatomic, strong, nullable) NSURL *URL;
#pragma mark Managing Sources
diff --git a/platform/darwin/src/MGLStyle.mm b/platform/darwin/src/MGLStyle.mm
index 2208547190..2764b3997a 100644
--- a/platform/darwin/src/MGLStyle.mm
+++ b/platform/darwin/src/MGLStyle.mm
@@ -83,7 +83,6 @@ const MGLExceptionName MGLRedundantSourceIdentifierException = @"MGLRedundantSou
@property (nonatomic, readonly, weak) MGLMapView *mapView;
@property (nonatomic, readonly) mbgl::style::Style *rawStyle;
-@property (readwrite, strong, nullable) NSURL *URL;
@property (nonatomic, readwrite, strong) NSMutableDictionary<NSString *, MGLOpenGLStyleLayer *> *openGLLayers;
@property (nonatomic) NSMutableDictionary<NSString *, NSDictionary<NSObject *, MGLTextLanguage *> *> *localizedLayersByIdentifier;
@@ -98,7 +97,6 @@ const MGLExceptionName MGLRedundantSourceIdentifierException = @"MGLRedundantSou
[self commonInit];
self.URL = styleURL;
- _URL = styleURL;
}
return self;