i've been searching for a way to cluster polygons using openlayers 3 but no luck. i've read that clustering only works with points so i'm thinking about editing the ol.source.cluster . so had anyone done it, or got any other solutions?
Kind regards
i've been searching for a way to cluster polygons using openlayers 3 but no luck. i've read that clustering only works with points so i'm thinking about editing the ol.source.cluster . so had anyone done it, or got any other solutions?
Kind regards
As of openlayers 3.15.0, it is possible to cluster all geometry types using an optional function,
geometryFunction
. From http://openlayers.org/en/v3.15.0/apidoc/ol.source.Cluster.html: