summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-03-07 18:34:45 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-03-29 16:18:41 +0200
commita6d8742e637a53eea90c2d0da049e684804928d3 (patch)
tree132a089ef42b4cc4e1b93b109b0a46850ddbde7e /scripts
parent4adfc5d3237bbca5c07898104267b17309f24ff3 (diff)
downloadqtlocation-mapboxgl-a6d8742e637a53eea90c2d0da049e684804928d3.tar.gz
[core] Enable text-variable-anchor property
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-style-code.js2
-rw-r--r--scripts/style-spec.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js
index 72f4857a96..2622ae5ef6 100755
--- a/scripts/generate-style-code.js
+++ b/scripts/generate-style-code.js
@@ -72,7 +72,7 @@ global.evaluatedType = function (property) {
if (property.length) {
return `std::array<${evaluatedType({type: property.value})}, ${property.length}>`;
} else {
- return `std::vector<${evaluatedType({type: property.value})}>`;
+ return `std::vector<${evaluatedType({type: property.value, name: property.name})}>`;
}
default: throw new Error(`unknown type for ${property.name}`)
}
diff --git a/scripts/style-spec.js b/scripts/style-spec.js
index 4bbd453a86..695b5b7a59 100644
--- a/scripts/style-spec.js
+++ b/scripts/style-spec.js
@@ -5,7 +5,6 @@ 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-variable-anchor'];
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" } \ No newline at end of file
+spec.layout_symbol['text-offset'].requires.splice(1, 1); // { "!": "text-radial-offset" }