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.js44
1 files changed, 22 insertions, 22 deletions
diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js
index 22d1486dd6..e9599b18b8 100644
--- a/platform/darwin/scripts/generate-style-code.js
+++ b/platform/darwin/scripts/generate-style-code.js
@@ -280,29 +280,29 @@ 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' +
- '- `MGLStyleConstantValue`\n';
- if (property["property-function"]) {
- 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:\n' +
- ' - `MGLInterpolationModeExponential`\n' +
- ' - `MGLInterpolationModeInterval`\n';
+ doc += '\n\nYou can set this property to an instance of:\n\n' +
+ '* `MGLStyleConstantValue`\n';
+ if (property["property-function"]) {
+ 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 {
- doc += '- `MGLCameraStyleFunction` with an interpolation mode of `MGLInterpolationModeInterval`\n';
+ if (property.function === "interpolated") {
+ doc += '* `MGLCameraStyleFunction` with an interpolation mode of:\n' +
+ ' * `MGLInterpolationModeExponential`\n' +
+ ' * `MGLInterpolationModeInterval`\n';
+ } else {
+ doc += '* `MGLCameraStyleFunction` with an interpolation mode of `MGLInterpolationModeInterval`\n';
+ }
}
}
return doc;