diff options
author | Jason Wray <jason@mapbox.com> | 2017-02-08 18:00:23 -0500 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2017-02-08 21:11:43 -0800 |
commit | 0e803186272f9febc84ea9c9e0fdc1b44d637d03 (patch) | |
tree | 26fb8dd14416319b3c5cde11c465d23aad6ead42 /platform/darwin/scripts/generate-style-code.js | |
parent | a383edaae8ec05a3b385b19576c7a9358672662b (diff) | |
download | qtlocation-mapboxgl-0e803186272f9febc84ea9c9e0fdc1b44d637d03.tar.gz |
[ios, macos] Add more bullets to style property docs
Diffstat (limited to 'platform/darwin/scripts/generate-style-code.js')
-rw-r--r-- | platform/darwin/scripts/generate-style-code.js | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js index efa7fe2d3c..22d1486dd6 100644 --- a/platform/darwin/scripts/generate-style-code.js +++ b/platform/darwin/scripts/generate-style-code.js @@ -281,15 +281,26 @@ global.propertyDoc = function (propertyName, property, layerType, kind) { doc += `\n\nThis attribute corresponds to the <a href="https://www.mapbox.com/mapbox-gl-style-spec/#${anchor}"><code>${property.original}</code></a> layout property in the Mapbox Style Specification.`; } } - doc += '`\n\nThis property can be set to one of the following values:\n\n' + + doc += '\n\nThis property can be set to one of the following values:\n\n' + '- `MGLStyleConstantValue`\n'; if (property["property-function"]) { - doc += '- `MGLCameraStyleFunction` with an interpolation mode of `MGLInterpolationModeExponential` or `MGLInterpolationModeInterval`\n' + - '- `MGLSourceStyleFunction` with an interpolation mode of `MGLInterpolationModeExponential`, `MGLInterpolationModeInterval`, `MGLInterpolationModeCategorical`, or `MGLInterpolationModeIdentity`\n' + - '- `MGLCompositeStyleFunction` with an interpolation mode of `MGLInterpolationModeExponential`, `MGLInterpolationModeInterval` or `MGLInterpolationModeCategorical`\n'; + doc += '- `MGLCameraStyleFunction` with an interpolation mode of:\n' + + ' - `MGLInterpolationModeExponential`\n' + + ' - `MGLInterpolationModeInterval`\n' + + '- `MGLSourceStyleFunction` with an interpolation mode of:\n' + + ' - `MGLInterpolationModeExponential`\n' + + ' - `MGLInterpolationModeInterval`\n' + + ' - `MGLInterpolationModeCategorical`\n' + + ' - `MGLInterpolationModeIdentity`\n' + + '- `MGLCompositeStyleFunction` with an interpolation mode of:\n' + + ' - `MGLInterpolationModeExponential`\n' + + ' - `MGLInterpolationModeInterval`\n' + + ' - `MGLInterpolationModeCategorical`\n'; } else { if (property.function === "interpolated") { - doc += '- `MGLCameraStyleFunction` with an interpolation mode of `MGLInterpolationModeExponential` or `MGLInterpolationModeInterval`\n'; + doc += '- `MGLCameraStyleFunction` with an interpolation mode of:\n' + + ' - `MGLInterpolationModeExponential`\n' + + ' - `MGLInterpolationModeInterval`\n'; } else { doc += '- `MGLCameraStyleFunction` with an interpolation mode of `MGLInterpolationModeInterval`\n'; } |