summaryrefslogtreecommitdiff
path: root/scripts/generate-style-code.js
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-01-05 14:37:28 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-01-10 11:15:49 -0800
commit7ca62ec602f6141d67559698a3d04e035e916437 (patch)
treea125bdaac1cce6cca783defc08fd014eeb0a8b7e /scripts/generate-style-code.js
parent9f89832827ddf9fab6fa1ef35e2cd497d468a4a8 (diff)
downloadqtlocation-mapboxgl-7ca62ec602f6141d67559698a3d04e035e916437.tar.gz
[build] Special case heatmap-color so it doesn't crash `make style-code`
Diffstat (limited to 'scripts/generate-style-code.js')
-rw-r--r--scripts/generate-style-code.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js
index 443f0c7cc9..dbca4216ad 100644
--- a/scripts/generate-style-code.js
+++ b/scripts/generate-style-code.js
@@ -111,6 +111,10 @@ global.defaultValue = function (property) {
return '{}';
}
+ if (property.name === 'heatmap-color') {
+ return '{}';
+ }
+
switch (property.type) {
case 'number':
return property.default;