I am testing Lizmap on a project where I display a high density of points from a point layer.

Anyone knows a way to cluster the points in lizmap or qgis server?

The idea is to end up with some clusters similar to this:

https://www.mapbox.com/mapbox.js/example/v1.0.0/leaflet-markercluster/ http://trac.osgeo.org/mapserver/attachment/ticket/3700/cluster.png

  • Are you using WMS or WFS like in the example? – Nicolas Boisteault Sep 20 '16 at 11:09

Lizmap is based on OpenLayers 2 so if you want to cluster points from a WFS, you'll have to use OpenLayers.Strategy.Cluster

You can extend lizmap with javascript and change the way your WFS layer is displayed. Take a look at this example to understand how to use clustering with OpenLayers 2.


With the QGIS-WPS4server , you can use scripts, models, etc that create cluster from QGIS Desktop on QGIS server. So after that i suppose you have to link this to a button in the lizmap client or something else.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.