diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-10-14 14:38:17 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-10-14 18:46:12 +0200 |
commit | 8206ce0e024a082f6979ce66f65909cb451e9d71 (patch) | |
tree | 70221509adc3a5a7ad68dcea1f4642c92e77a895 /scripts | |
parent | e4e2a78033f25fd966fa9cbbd2babb7e7b499e18 (diff) | |
download | qtlocation-mapboxgl-8206ce0e024a082f6979ce66f65909cb451e9d71.tar.gz |
[core] map image type to string until we have a dedicated implementation
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/generate-style-code.js | 3 |
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) { |