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/MGLStyleLayer.h.ejs | |
parent | bf8b24fa8d30df374ee36be781b6a572036187b9 (diff) | |
download | qtlocation-mapboxgl-b891a8d6b0dc9e92a283756448b4671bef3da71f.tar.gz |
[ios][documentation] link API documentation to ios-sdk/examples
Diffstat (limited to 'platform/darwin/src/MGLStyleLayer.h.ejs')
-rw-r--r-- | platform/darwin/src/MGLStyleLayer.h.ejs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLStyleLayer.h.ejs b/platform/darwin/src/MGLStyleLayer.h.ejs index 05f450a4f8..9435e0d2ff 100644 --- a/platform/darwin/src/MGLStyleLayer.h.ejs +++ b/platform/darwin/src/MGLStyleLayer.h.ejs @@ -1,6 +1,7 @@ <% const doc = locals.doc; const type = locals.type; + const examples = locals.examples; const layoutProperties = locals.layoutProperties; const paintProperties = locals.paintProperties; const enumProperties = locals.enumProperties; @@ -68,6 +69,11 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(property.name) %>) { otherwise, find it using the `MGLStyle.layers` property. You can also create a new <%- type %> style layer and add it to the style using a method such as `-[MGLStyle addLayer:]`. +<% if (examples) { -%> + + #### Related examples +<%- examples.wrap(80, 1) %> +<% } -%> ### Example @@ -118,6 +124,11 @@ which it is added. <% for (const property of layoutProperties) { -%> /** <%- propertyDoc(property.name, property, type, 'layout').wrap(80, 1) %> +<% if (property.examples) { -%> + + #### Related examples +<%- propertyExample(property).wrap(80, 1) %> +<% } -%> */ @property (nonatomic<% if (!property.required) { %>, null_resettable<% } if (property.getter) { %>, getter=<%- objCGetter(property) -%><% } %>) NSExpression *<%- camelizeWithLeadingLowercase(property.name) %>; @@ -133,6 +144,11 @@ which it is added. <% for (const property of paintProperties) { -%> /** <%- propertyDoc(property.name, property, type, 'paint').wrap(80, 1) %> +<% if (property.examples) { -%> + + #### Related examples +<%- propertyExample(property).wrap(80, 1) %> +<% } -%> */ @property (nonatomic<% if (!property.required) { %>, null_resettable<% } if (property.getter) { %>, getter=<%- objCGetter(property) -%><% } %>) NSExpression *<%- camelizeWithLeadingLowercase(property.name) %>; |