summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-07-04 23:12:58 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-07-05 15:11:14 +0300
commit514485502db8ecacf2b11abad4599d7af09b0cf8 (patch)
tree21a76d2fda8b5ec5e19624f5eedf609a545b59b4 /scripts
parent32dce870d756063167e000302afb553714f1f0cb (diff)
downloadqtlocation-mapboxgl-514485502db8ecacf2b11abad4599d7af09b0cf8.tar.gz
Rename `HeatmapColorPropertyValue` to `ColorRampPropertyValue`
Based on patch from @lbud (Lauren Budorick). Give `HeatmapColorPropertyValue` a more generic name, since the same value type will be used for both `heatmap-color` and `line-gradient` properties.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-style-code.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js
index 0059863e05..c92d25b7ef 100755
--- a/scripts/generate-style-code.js
+++ b/scripts/generate-style-code.js
@@ -100,7 +100,7 @@ global.propertyValueType = function (property) {
case 'cross-faded-data-driven':
return `DataDrivenPropertyValue<${evaluatedType(property)}>`;
case 'color-ramp':
- return `HeatmapColorPropertyValue`;
+ return `ColorRampPropertyValue`;
default:
return `PropertyValue<${evaluatedType(property)}>`;
}