summaryrefslogtreecommitdiff
path: root/scripts/generate-style-code.js
diff options
context:
space:
mode:
authorVladimir Agafonkin <agafonkin@gmail.com>2017-12-08 22:28:03 +0200
committerVladimir Agafonkin <agafonkin@gmail.com>2018-01-25 15:56:38 +0200
commit416654c5e55ad2d0c8f14e4886cf6e4ce499cc08 (patch)
treeb6ba7aca474805d4b4d261e4b18b5df61487cdd7 /scripts/generate-style-code.js
parentf26c5ef2f066b9174499e0b2c29ef732920a067b (diff)
downloadqtlocation-mapboxgl-upstream/heatmap-rebased.tar.gz
[core] add heatmap layerupstream/heatmap-rebased
Diffstat (limited to 'scripts/generate-style-code.js')
-rw-r--r--scripts/generate-style-code.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js
index 443f0c7cc9..8db9d0309a 100644
--- a/scripts/generate-style-code.js
+++ b/scripts/generate-style-code.js
@@ -96,6 +96,8 @@ global.paintPropertyType = function (property, type) {
global.propertyValueType = function (property) {
if (isDataDriven(property)) {
return `DataDrivenPropertyValue<${evaluatedType(property)}>`;
+ } else if (property.name === 'heatmap-color') {
+ return `HeatmapColorPropertyValue`;
} else {
return `PropertyValue<${evaluatedType(property)}>`;
}