Merge pull request #10484 from fredj/heatmap_gradient_update

Use a function to get the value of the gradient
This commit is contained in:
Frédéric Junod
2020-01-06 11:06:43 +01:00
committed by GitHub

View File

@@ -294,7 +294,9 @@ class Heatmap extends VectorLayer {
gl_FragColor.rgb *= gl_FragColor.a;
}`,
uniforms: {
u_gradientTexture: this.gradient_
u_gradientTexture: function() {
return this.gradient_;
}.bind(this)
}
}
]