[core, ios, macos, android, node] Heatmap layer (#11046)
Co-Authored-By: Konstantin Käfer <mail@kkaefer.com> Co-Authored-By: Anand Thakker <anandthakker@users.noreply.github.com> Co-Authored-By: Minh Nguyễn <1ec5@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1fdec7a5c1
commit
82de856c94
@@ -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.
|
||||
|
||||
@@ -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)}>`;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user