diff options
author | Josh Erb <josh.erb@mapbox.com> | 2018-10-30 18:03:56 -0400 |
---|---|---|
committer | Josh Erb <josherb4@gmail.com> | 2018-11-13 11:39:39 -0800 |
commit | b891a8d6b0dc9e92a283756448b4671bef3da71f (patch) | |
tree | 23f717df2919ad7f6d1ef78054476575829f7021 /platform/darwin/src/MGLShapeSource.h | |
parent | bf8b24fa8d30df374ee36be781b6a572036187b9 (diff) | |
download | qtlocation-mapboxgl-b891a8d6b0dc9e92a283756448b4671bef3da71f.tar.gz |
[ios][documentation] link API documentation to ios-sdk/examples
Diffstat (limited to 'platform/darwin/src/MGLShapeSource.h')
-rw-r--r-- | platform/darwin/src/MGLShapeSource.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLShapeSource.h b/platform/darwin/src/MGLShapeSource.h index c80c329cbc..edf8c0a174 100644 --- a/platform/darwin/src/MGLShapeSource.h +++ b/platform/darwin/src/MGLShapeSource.h @@ -23,6 +23,9 @@ typedef NSString *MGLShapeSourceOption NS_STRING_ENUM; This option only affects point features within an `MGLShapeSource` object; it is ignored when creating an `MGLComputedShapeSource` object. + + #### Related examples + See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/clustering/">Cluster point data</a> and <a href="https://www.mapbox.com/ios-sdk/maps/examples/clustering-with-images/">Use images to cluster point data</a> examples to learn how to cluster point data with this `MGLShapeSourceOption`. */ FOUNDATION_EXTERN MGL_EXPORT const MGLShapeSourceOption MGLShapeSourceOptionClustered; @@ -142,6 +145,9 @@ FOUNDATION_EXTERN MGL_EXPORT const MGLShapeSourceOption MGLShapeSourceOptionLine let source = MGLShapeSource(identifier: "lines", features: [polyline], options: nil) mapView.style?.addSource(source) ``` + + #### Related examples + See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/clustering/">Cluster point data</a>, <a href="https://www.mapbox.com/ios-sdk/maps/examples/clustering-with-images/">Use images to cluster point data</a>, and <a href="https://www.mapbox.com/ios-sdk/maps/examples/live-data/">Add live data</a> examples to learn how to add data to your map using this `MGLSource` object. */ MGL_EXPORT @interface MGLShapeSource : MGLSource @@ -165,6 +171,11 @@ MGL_EXPORT current application’s resource bundle. @param options An `NSDictionary` of options for this source. @return An initialized shape source. + + #### Related examples + See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/live-data/"> + Add live data</a> example to learn how to add live data to your map by + updating the an `MGLShapeSource` object's `URL` property. */ - (instancetype)initWithIdentifier:(NSString *)identifier URL:(NSURL *)url options:(nullable NSDictionary<MGLShapeSourceOption, id> *)options NS_DESIGNATED_INITIALIZER; @@ -194,6 +205,11 @@ MGL_EXPORT @param shape A concrete subclass of `MGLShape` @param options An `NSDictionary` of options for this source. @return An initialized shape source. + + #### Related examples + See the <a href="https://www.mapbox.com/ios-sdk/maps/examples/runtime-animate-line/"> + Animate a line</a> example to learn how to animate line data by continously + updating an `MGLShapeSource`'s `shape` attribute. */ - (instancetype)initWithIdentifier:(NSString *)identifier shape:(nullable MGLShape *)shape options:(nullable NSDictionary<MGLShapeSourceOption, id> *)options NS_DESIGNATED_INITIALIZER; |