aboutsummaryrefslogtreecommitdiffstats
path: root/generate-elm.js
diff options
context:
space:
mode:
authorJakub Hampl <kopomir@gmail.com>2019-05-20 15:11:57 +0100
committerJakub Hampl <kopomir@gmail.com>2019-05-20 15:11:57 +0100
commitcdb097cb83548fee0778d4040dd35fc2dd0f3464 (patch)
treeebc7e1b18b8af4c1ac8cae015991664df9bc0632 /generate-elm.js
parent707ee1c39efa6e49fa5b0869af79bb241c2e0216 (diff)
Upgrades to mapbox 544.1.0
Diffstat (limited to 'generate-elm.js')
-rw-r--r--generate-elm.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/generate-elm.js b/generate-elm.js
index 1d1a712..181c4c1 100644
--- a/generate-elm.js
+++ b/generate-elm.js
@@ -59,7 +59,7 @@ Paint properties are applied later in the rendering process. Changes to a paint
${Object.keys(docs)
.map(
(section) =>
- `- [${section} Attributes](#${section.toLowerCase()}-attibutes)`
+ `- [${section} Attributes](#${section.toLowerCase()}-attributes)`
)
.join("\n")}
@@ -297,6 +297,7 @@ function generateElmProperty(name, prop, layerType, position) {
throw "Constant property type not supported";
const elmName = camelCase(name);
const exprKind =
+ prop["sdk-support"] &&
prop["sdk-support"]["data-driven styling"] &&
prop["sdk-support"]["data-driven styling"].js
? "any"