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-29 16:18:41 +0200
commit2b9a52f5e4cfd1a90c96b307ea218c720df10436 (patch)
treee38d567a8e6738673af617673a4465e59eba2c09 /scripts
parenta6d8742e637a53eea90c2d0da049e684804928d3 (diff)
downloadqtlocation-mapboxgl-2b9a52f5e4cfd1a90c96b307ea218c720df10436.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