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/scripts/generate-style-code.js | |
parent | bf8b24fa8d30df374ee36be781b6a572036187b9 (diff) | |
download | qtlocation-mapboxgl-b891a8d6b0dc9e92a283756448b4671bef3da71f.tar.gz |
[ios][documentation] link API documentation to ios-sdk/examples
Diffstat (limited to 'platform/darwin/scripts/generate-style-code.js')
-rwxr-xr-x | platform/darwin/scripts/generate-style-code.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js index c4c28c7946..a372943060 100755 --- a/platform/darwin/scripts/generate-style-code.js +++ b/platform/darwin/scripts/generate-style-code.js @@ -360,6 +360,10 @@ global.propertyDoc = function (propertyName, property, layerType, kind) { return doc; }; +global.propertyExample = function (property) { + return property.examples; +}; + global.isDataDriven = function (property) { return property['property-type'] === 'data-driven' || property['property-type'] === 'cross-faded-data-driven'; }; @@ -696,6 +700,7 @@ const layers = _(spec.layer.type.values).map((value, layerType) => { return { doc: spec.layer.type.values[layerType].doc, + examples: spec.layer.type.values[layerType].examples, type: layerType, layoutProperties: _.sortBy(layoutProperties, ['name']), paintProperties: _.sortBy(paintProperties, ['name']), |