summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVladimir Agafonkin <agafonkin@gmail.com>2017-12-08 22:28:03 +0200
committerMinh Nguyễn <mxn@1ec5.org>2018-02-06 08:57:41 -0800
commit4b52b9d4231e887304b46a4ffe61cbf2aab8f56f (patch)
treed3d4ff5a774a0710113c5238c149b52c14efbc0b /scripts
parentf7cae4c3e49282417d87a98a64bc94b12993855d (diff)
downloadqtlocation-mapboxgl-4b52b9d4231e887304b46a4ffe61cbf2aab8f56f.tar.gz
[core] add heatmap layer
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-style-code.js2
-rw-r--r--scripts/style-spec.js4
2 files changed, 2 insertions, 4 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js
index ff40244f98..6ddb787f19 100755
--- a/scripts/generate-style-code.js
+++ b/scripts/generate-style-code.js
@@ -97,6 +97,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)}>`;
}
diff --git a/scripts/style-spec.js b/scripts/style-spec.js
index 00daee70d0..8a9c9d4144 100644
--- a/scripts/style-spec.js
+++ b/scripts/style-spec.js
@@ -1,5 +1 @@
var spec = module.exports = require('../mapbox-gl-js/src/style-spec/reference/v8');
-
-// Make temporary modifications here when Native doesn't have all features that JS has.
-
-delete spec.layer.type.values.heatmap;