Search code examples
openlayersvisualization

Visualization of polygon data using OpenLayers


I have 3.7 million small polygons and I want to create a heat map from it. Since it has a lot of points, reading from a JavaScript array and drawing on map is not possible. Is there any efficient way to do it?

Thanks.


Solution

  • IMHO, 3.7 million polygons look a bit heavy for the Javascript. A good way is generating the heatmap on the server. If you are using Geoserver you can follow the rendering transfomations example from the official documentation. Remember that using Rendering Transformations requires the WPS extension to be installed (but not need to be enabled).

    After configuring the heatmap representation, the OpenLayers client just consume that layer.