[OpenLayers-Dev] Problem with cluster strategy
jerome.freyre at hispeed.ch
Wed Nov 26 09:53:49 EST 2008
Ok for the sample but the main goal of my post was a suggestion to display
correctly the cluster on a map.
I think that the sample is not a correct representation of the reality.
The addition of a function that get the max value present permit to display
correctly the cluster and have a radius that correspond to the reality.
In the sample formula, if you have a cluster that aggregate 100 features and
an other that aggregate 20 feature they will be displayed with the same
With my function the radius will be correctly adapted and we have a correct
representation of the reality
Ivan Grcic-2 wrote:
> HI Jerome,
> Function Math.min(feature.attributes.count, 7) + 3 was just a sample
> in the demo. You can use whatever function you need, just take care to
> make it as simple as possible, because it runs trought it for every
> feature in cluster.
> Cheers, Ivan
> Ivan Grcic
> Dev mailing list
> Dev at openlayers.org
View this message in context: http://www.nabble.com/Problem-with-cluster-strategy-tp20701364p20702430.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
More information about the Dev