On Wed, 2008-11-05 at 15:19 -0700, Tim Schaub wrote:

> My suggestion to a similar inquiry [1] was to add a threshold property 
> to the cluster strategy.  If a cluster contains fewer features than the 
> threshold, the original features are added to the layer instead of a 
> cluster.
> 
> You can find a ticket with a patch for this here:
> http://trac.openlayers.org/ticket/1815
> 
> Note that you can also listen for "featureadded" on the layer and 
> manipulate the cluster to your heart's content.
> 
> layer.events.on({
>      "featureadded": function(event) {
>          var feature = event.feature;
>          if(feature.cluster) {
>           feature.attributes.foo = "I'm a cluster";
>          }
>      }
> });
> 
> Tim

Hi Tim,

Thanks for the link to the patch. This is exactly what I needed.

Didrik

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to