diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-03-07 18:52:00 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-03-21 14:59:48 +0200 |
commit | 296038107799f8bddc2bc9533ac97211d1e7f6bb (patch) | |
tree | 4a7d17688ac809d7b23de85e74f56683598f35c4 /scripts | |
parent | 9616f8911d8b0407f2e2a6aa283d4e0e0f2ea64a (diff) | |
download | qtlocation-mapboxgl-296038107799f8bddc2bc9533ac97211d1e7f6bb.tar.gz |
[core] Enable 'text-radial-offset' property
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/generate-style-code.js | 4 | ||||
-rw-r--r-- | scripts/style-spec.js | 4 |
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 |