summaryrefslogtreecommitdiff
path: root/scripts/generate-style-code.js
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-06 12:45:40 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-06 12:45:40 -0700
commit47d6903f4e41cc3d4a0bacc1c1938ef8ede642ca (patch)
tree09cf7d0199999880c032162b9a749caca1aa0ecf /scripts/generate-style-code.js
parent313d9ce09c53d3d946a7150b7998f1b081612ff9 (diff)
downloadqtlocation-mapboxgl-47d6903f4e41cc3d4a0bacc1c1938ef8ede642ca.tar.gz
[core] Revert line-round-limit default to 1 (#5260)
Refs #5258, #5234.
Diffstat (limited to 'scripts/generate-style-code.js')
-rw-r--r--scripts/generate-style-code.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js
index 0f2dcdc42c..6379598446 100644
--- a/scripts/generate-style-code.js
+++ b/scripts/generate-style-code.js
@@ -46,6 +46,11 @@ global.propertyType = function (property) {
}
global.defaultValue = function (property) {
+ // https://github.com/mapbox/mapbox-gl-native/issues/5258
+ if (property.name === 'line-round-limit') {
+ return 1;
+ }
+
switch (property.type) {
case 'number':
return property.default;