From 68fcbf0a7274516555bcc44f932c8bbe8f1eb073 Mon Sep 17 00:00:00 2001 From: Jordan Kiley Date: Tue, 20 Mar 2018 10:33:44 -0700 Subject: [ios, macos] Document to use subclasses of MGLFeature to access attributes (#11462) --- platform/darwin/src/MGLPolyline.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'platform/darwin/src/MGLPolyline.h') diff --git a/platform/darwin/src/MGLPolyline.h b/platform/darwin/src/MGLPolyline.h index e46baa91cc..1ed3dd0b9f 100644 --- a/platform/darwin/src/MGLPolyline.h +++ b/platform/darwin/src/MGLPolyline.h @@ -18,7 +18,8 @@ NS_ASSUME_NONNULL_BEGIN You can add polyline shapes to the map by adding them to an `MGLShapeSource` object. Configure the appearance of an `MGLShapeSource`’s or `MGLVectorSource`’s polylines collectively using an `MGLLineStyleLayer` or - `MGLSymbolStyleLayer` object. + `MGLSymbolStyleLayer` object. To access a polyline’s attributes, use an + `MGLPolylineFeature` object. Alternatively, you can add a polyline overlay directly to a map view using the `-[MGLMapView addAnnotation:]` or `-[MGLMapView addOverlay:]` method. Configure -- cgit v1.2.1 From a877b6dbe8ff576f82ab9222f418da51591dd423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Fri, 30 Mar 2018 05:43:56 -0700 Subject: [ios, macos] Renamed MGLVectorSource to MGLVectorTileSource --- platform/darwin/src/MGLPolyline.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'platform/darwin/src/MGLPolyline.h') diff --git a/platform/darwin/src/MGLPolyline.h b/platform/darwin/src/MGLPolyline.h index 1ed3dd0b9f..b1fca5bf28 100644 --- a/platform/darwin/src/MGLPolyline.h +++ b/platform/darwin/src/MGLPolyline.h @@ -17,7 +17,7 @@ NS_ASSUME_NONNULL_BEGIN You can add polyline shapes to the map by adding them to an `MGLShapeSource` object. Configure the appearance of an `MGLShapeSource`’s or - `MGLVectorSource`’s polylines collectively using an `MGLLineStyleLayer` or + `MGLVectorTileSource`’s polylines collectively using an `MGLLineStyleLayer` or `MGLSymbolStyleLayer` object. To access a polyline’s attributes, use an `MGLPolylineFeature` object. @@ -75,8 +75,8 @@ MGL_EXPORT You can add multipolyline shapes to the map by adding them to an `MGLShapeSource` object. Configure the appearance of an `MGLShapeSource`’s or - `MGLVectorSource`’s multipolylines collectively using an `MGLLineStyleLayer` or - `MGLSymbolStyleLayer` object. + `MGLVectorTileSource`’s multipolylines collectively using an + `MGLLineStyleLayer` or `MGLSymbolStyleLayer` object. You cannot add an `MGLMultiPolyline` object directly to a map view using `-[MGLMapView addAnnotation:]` or `-[MGLMapView addOverlay:]`. However, you can -- cgit v1.2.1