summaryrefslogtreecommitdiff
path: root/scripts/generate-style-code.js
diff options
context:
space:
mode:
authorLangston Smith <langston.smith@mapbox.com>2017-10-10 17:04:11 -0700
committerLangston Smith <langston.smith@mapbox.com>2017-10-10 17:04:11 -0700
commita829c2de392b8f826e939f1a5061c111630f48e0 (patch)
tree7b0c7e2a033c3ad5489648568eb8f2fcbfcac74f /scripts/generate-style-code.js
parent4d56366824b51095911dc591c664b963bc04634f (diff)
parent98a47884f06a8f165a2c15a54f82b356c8ef23d8 (diff)
downloadqtlocation-mapboxgl-a829c2de392b8f826e939f1a5061c111630f48e0.tar.gz
Merge branch 'master' into ls-readme-updates
Diffstat (limited to 'scripts/generate-style-code.js')
-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';
}