[OpenLayers-Users] Cluster-Strategy: how to uncluster?

Heidt, Christopher M. CHRISTOPHER.M.HEIDT at saic.com
Sat Sep 5 18:55:25 EDT 2009


Take a look at the threshold property:
http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Strategy/Cluster-js.html#OpenLayers.Strategy.Cluster.threshold
I think its what your looking for.

also i recommend taking a look at the src for the cluster strategy, it'll give you alot on insight into what is actually happening.
clusterStrategy.features holds your original features, armed with that knowledge it's then pretty easy to implement a toggle to flip in and old of cluster mode.



-----Original Message-----
From: users-bounces at openlayers.org on behalf of Gerrit
Sent: Sat 9/5/2009 4:05 AM
To: users at openlayers.org
Subject: [OpenLayers-Users] Cluster-Strategy: how to uncluster?
 
Hi.

I have a couple of point-features on a map and defined a cluster
strategy on the vectorlayer.
When I reach the highest zoom level, some points are still clustered due
to proximity.
On the highest level however I do not want any clustering at all.
How can I achieve this?

I tried clusterStrategy.deactivate(), but for it to take effect, I need
to remove all features from the layer and repopulate it.
I tried map.frefresh() and clusterlayer.redraw(), but to no effect.

Any suggestions?

Thanks,

Gerrit
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090905/781f56a1/attachment.html


More information about the Users mailing list