summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-10-14 14:38:17 +0200
committerKonstantin Käfer <mail@kkaefer.com>2019-10-14 18:46:12 +0200
commit8206ce0e024a082f6979ce66f65909cb451e9d71 (patch)
tree70221509adc3a5a7ad68dcea1f4642c92e77a895 /scripts
parente4e2a78033f25fd966fa9cbbd2babb7e7b499e18 (diff)
downloadqtlocation-mapboxgl-8206ce0e024a082f6979ce66f65909cb451e9d71.tar.gz
[core] map image type to string until we have a dedicated implementation
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/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 1f26e6fd86..0aedba909b 100755
--- a/scripts/generate-style-code.js
+++ b/scripts/generate-style-code.js
@@ -36,6 +36,7 @@ global.expressionType = function (property) {
case 'enum':
return 'NumberType';
case 'string':
+ case 'image': // TODO: replace once we implement image expressions
return 'StringType';
case 'color':
return `ColorType`;
@@ -68,6 +69,7 @@ global.evaluatedType = function (property) {
case 'formatted':
return 'expression::Formatted';
case 'string':
+ case 'image': // TODO: replace once we implement image expressions
return 'std::string';
case 'enum':
return (isLightProperty(property) ? 'Light' : '') + `${camelize(property.name)}Type`;
@@ -166,6 +168,7 @@ global.defaultValue = function (property) {
}
case 'formatted':
case 'string':
+ case 'image': // TODO: replace once we implement image expressions
return JSON.stringify(property.default || "");
case 'enum':
if (property.default === undefined) {