diff options
author | Josh Erb <josh.erb@mapbox.com> | 2018-10-30 18:03:56 -0400 |
---|---|---|
committer | Josh Erb <josh.erb@mapbox.com> | 2018-11-12 14:45:30 -0800 |
commit | 271b78c1309dd9391e9fc315e9d9873381f5999d (patch) | |
tree | 9c195e582180898f977eb7e4eb6a22a1178f4444 /platform/darwin/scripts/generate-style-code.js | |
parent | a3945bf84004ece5116861266a73a60d67beebbe (diff) | |
download | qtlocation-mapboxgl-271b78c1309dd9391e9fc315e9d9873381f5999d.tar.gz |
[ios][documentation] link API documentation to ios-sdk/examplesupstream/je-ios-example-links
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']), |