summaryrefslogtreecommitdiff
path: root/platform/darwin/scripts/generate-style-code.js
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/scripts/generate-style-code.js')
-rw-r--r--platform/darwin/scripts/generate-style-code.js21
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';
}