2

I'm looking to create a heatmap using OpenLayers, which is possible using the ol.layer.Heatmap class. However, I want to limit the visualisation of the heatmap effect to span just the underlying vector polygons (so not a true heatmap).

So in the end the heatmap should only visible as overlay on existing vector features. The reason I want to do this is that I want to give the polygons a weighted gradient, which depends on the weight of the individual vertices of the polygon. There will only be one polygon at a time (in a pop-up), so the heatmap effect will be isolated automatically to just one polygon, it just needs to be clipped. Does anyone know if this can be realized in OpenLayers?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.