summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVladimir Agafonkin <agafonkin@gmail.com>2017-12-08 22:28:03 +0200
committerVladimir Agafonkin <agafonkin@gmail.com>2018-02-15 00:40:26 +0200
commitb2c7becf19533ee186fab85ad1ce10aabfcb55ff (patch)
tree48ef3f6987c0dc8f419c8be62ea0f101452a08b2 /scripts
parent8a283b030629abb00367929d047731c3974bc3d6 (diff)
downloadqtlocation-mapboxgl-b2c7becf19533ee186fab85ad1ce10aabfcb55ff.tar.gz
[core] add heatmap layer
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-shaders.js3
-rwxr-xr-xscripts/generate-style-code.js2
-rw-r--r--scripts/style-spec.js2
3 files changed, 2 insertions, 5 deletions
diff --git a/scripts/generate-shaders.js b/scripts/generate-shaders.js
index 46c097d51a..b1eeffb8a0 100755
--- a/scripts/generate-shaders.js
+++ b/scripts/generate-shaders.js
@@ -7,9 +7,6 @@ const outputPath = 'src/mbgl/shaders';
var shaders = require('../mapbox-gl-js/src/shaders');
-delete shaders.heatmap;
-delete shaders.heatmapTexture;
-
require('./style-code');
writeIfModified(path.join(outputPath, 'preludes.hpp'), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.
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..196adc0b32 100644
--- a/scripts/style-spec.js
+++ b/scripts/style-spec.js
@@ -1,5 +1,3 @@
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;