summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLStyleLayer.h
diff options
context:
space:
mode:
authorJordan Kiley <jmkiley@users.noreply.github.com>2017-01-17 20:54:36 -0800
committerGitHub <noreply@github.com>2017-01-17 20:54:36 -0800
commite38216d25444fd426921c372898c425d6030355e (patch)
tree962ef4d491da7e247a83f8490ef29f76ac0654a6 /platform/darwin/src/MGLStyleLayer.h
parentd829570cca4e2df98902236cb6d3e62dabddf487 (diff)
downloadqtlocation-mapboxgl-e38216d25444fd426921c372898c425d6030355e.tar.gz
Typo fixes, added line to MGLStyleLayer initializer description (#7759)
* Typo fixes in MGLMapCamera.h and MGLMapView.h * Added line to MGLStyleLayer initializer description * Edited line in MGLShapeCollection.h
Diffstat (limited to 'platform/darwin/src/MGLStyleLayer.h')
-rw-r--r--platform/darwin/src/MGLStyleLayer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLStyleLayer.h b/platform/darwin/src/MGLStyleLayer.h
index 4032be9297..a91ac11c2d 100644
--- a/platform/darwin/src/MGLStyleLayer.h
+++ b/platform/darwin/src/MGLStyleLayer.h
@@ -27,9 +27,14 @@ NS_ASSUME_NONNULL_BEGIN
/**
Returns a style layer object initialized with the given identifier.
+ The default implementation of this initializer in MGLStyleLayer creates an
+ invalid style layer. Call this initializer on `MGLBackgroundStyleLayer` or one of
+ the concrete subclasses of `MGLForegroundStyleLayer` to create a valid style
+ layer.
+
After initializing and configuring the style layer, add it to a map view’s
style using the `-[MGLStyle addLayer:]` or
- `-[MGLStyle insertLayer:belowLayer:]` method.
+ `-[MGLStyle insertLayer:belowLayer:]` method.
@param identifier A string that uniquely identifies the layer in the style to
which it is added.