summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-03-07 18:52:00 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-03-21 14:59:48 +0200
commit296038107799f8bddc2bc9533ac97211d1e7f6bb (patch)
tree4a7d17688ac809d7b23de85e74f56683598f35c4 /scripts
parent9616f8911d8b0407f2e2a6aa283d4e0e0f2ea64a (diff)
downloadqtlocation-mapboxgl-296038107799f8bddc2bc9533ac97211d1e7f6bb.tar.gz
[core] Enable 'text-radial-offset' property
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-style-code.js4
-rw-r--r--scripts/style-spec.js4
2 files changed, 5 insertions, 3 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js
index 2622ae5ef6..5145755cec 100755
--- a/scripts/generate-style-code.js
+++ b/scripts/generate-style-code.js
@@ -153,7 +153,11 @@ global.defaultValue = function (property) {
switch (property.type) {
case 'number':
+ if (property.default === undefined) {
+ return 0;
+ } else {
return property.default;
+ }
case 'formatted':
case 'string':
return JSON.stringify(property.default || "");
diff --git a/scripts/style-spec.js b/scripts/style-spec.js
index 695b5b7a59..bcfb7e5c17 100644
--- a/scripts/style-spec.js
+++ b/scripts/style-spec.js
@@ -5,6 +5,4 @@ delete spec.layout_symbol['symbol-sort-key'];
delete spec.layout_symbol['symbol-z-order'].values['auto'];
spec.layout_symbol['symbol-z-order'].default = 'viewport-y';
-delete spec.layout_symbol['text-radial-offset'];
-delete spec.layout_symbol['text-justify'].values['auto'];
-spec.layout_symbol['text-offset'].requires.splice(1, 1); // { "!": "text-radial-offset" }
+delete spec.layout_symbol['text-justify'].values['auto']; \ No newline at end of file