summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLauren Budorick <lauren@mapbox.com>2017-08-28 13:32:56 -0700
committerGitHub <noreply@github.com>2017-08-28 13:32:56 -0700
commit2de89a99bc86776c8cadedc0ae9b344fb78b8217 (patch)
treee930ceb8436646e0d6747f2b3e805bd640f2a436 /scripts
parentc6ab20e5c69c3705422e49c3511faf3e5ab79b05 (diff)
downloadqtlocation-mapboxgl-2de89a99bc86776c8cadedc0ae9b344fb78b8217.tar.gz
Implement icon-anchor property
Diffstat (limited to 'scripts')
-rw-r--r--scripts/generate-style-code.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js
index b1d0ed28ec..fe9a1a906b 100644
--- a/scripts/generate-style-code.js
+++ b/scripts/generate-style-code.js
@@ -29,6 +29,9 @@ global.evaluatedType = function (property) {
if (/-(rotation|pitch|illumination)-alignment$/.test(property.name)) {
return 'AlignmentType';
}
+ if (/^(text|icon)-anchor$/.test(property.name)) {
+ return 'SymbolAnchorType';
+ }
if (/position/.test(property.name)) {
return 'Position';
}