diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-05-24 23:27:19 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-05-27 21:42:38 -0700 |
commit | ff0cc1c9ef4b1a8e2f6014fd9ef8cd7a3800e5f0 (patch) | |
tree | 492225217f9bd8a05192b7e36e36f9b1823dab64 /platform/darwin/src/MGLFeature.h | |
parent | c6683ee1d3baebf46f3397e7ed2e44e8a23dc8ed (diff) | |
download | qtlocation-mapboxgl-ff0cc1c9ef4b1a8e2f6014fd9ef8cd7a3800e5f0.tar.gz |
[ios, osx] Streamlined conversion to MGLFeature
Made writability of MGLFeature properties private, to avoid having to awkwardly explain that changes to the properties don’t change the map (maybe someday they will). This allows the identifier and attributes to be set in only one place, avoiding copy-pasta.
Diffstat (limited to 'platform/darwin/src/MGLFeature.h')
-rw-r--r-- | platform/darwin/src/MGLFeature.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/platform/darwin/src/MGLFeature.h b/platform/darwin/src/MGLFeature.h index 389b8ab67f..b593ff70e4 100644 --- a/platform/darwin/src/MGLFeature.h +++ b/platform/darwin/src/MGLFeature.h @@ -89,10 +89,6 @@ NS_ASSUME_NONNULL_BEGIN <a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>. */ @interface MGLPointFeature : MGLPointAnnotation <MGLFeature> - -@property (nonatomic, copy, nullable, readwrite) id identifier; -@property (nonatomic, copy, readwrite) NS_DICTIONARY_OF(NSString *, id) *attributes; - @end /** @@ -100,10 +96,6 @@ NS_ASSUME_NONNULL_BEGIN <a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>. */ @interface MGLPolylineFeature : MGLPolyline <MGLFeature> - -@property (nonatomic, copy, nullable, readwrite) id identifier; -@property (nonatomic, copy, readwrite) NS_DICTIONARY_OF(NSString *, id) *attributes; - @end /** @@ -111,10 +103,6 @@ NS_ASSUME_NONNULL_BEGIN <a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>. */ @interface MGLPolygonFeature : MGLPolygon <MGLFeature> - -@property (nonatomic, copy, nullable, readwrite) id identifier; -@property (nonatomic, copy, readwrite) NS_DICTIONARY_OF(NSString *, id) *attributes; - @end /** @@ -122,10 +110,6 @@ NS_ASSUME_NONNULL_BEGIN <a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>. */ @interface MGLMultiPointFeature : MGLMultiPoint <MGLFeature> - -@property (nonatomic, copy, nullable, readwrite) id identifier; -@property (nonatomic, copy, readwrite) NS_DICTIONARY_OF(NSString *, id) *attributes; - @end /** @@ -133,10 +117,6 @@ NS_ASSUME_NONNULL_BEGIN <a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>. */ @interface MGLMultiPolylineFeature : MGLMultiPolyline <MGLFeature> - -@property (nonatomic, copy, nullable, readwrite) id identifier; -@property (nonatomic, copy, readwrite) NS_DICTIONARY_OF(NSString *, id) *attributes; - @end /** @@ -144,10 +124,6 @@ NS_ASSUME_NONNULL_BEGIN <a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>. */ @interface MGLMultiPolygonFeature : MGLMultiPolygon <MGLFeature> - -@property (nonatomic, copy, nullable, readwrite) id identifier; -@property (nonatomic, copy, readwrite) NS_DICTIONARY_OF(NSString *, id) *attributes; - @end /** @@ -155,10 +131,6 @@ NS_ASSUME_NONNULL_BEGIN <a href="https://www.mapbox.com/mapbox-gl-style-spec/#sources">tile source</a>. */ @interface MGLShapeCollectionFeature : MGLShapeCollection <MGLFeature> - -@property (nonatomic, copy, nullable, readwrite) id identifier; -@property (nonatomic, copy, readwrite) NS_DICTIONARY_OF(NSString *, id) *attributes; - @end NS_ASSUME_NONNULL_END |