[OpenLayers-Users] Refresh vectorLayer after de/activate clusterStrategy

Heidt, Christopher M. CHRISTOPHER.M.HEIDT at saic.com
Wed Jun 3 15:36:38 EDT 2009


I use a clusterStrategy by default, but I have a button that lets the
user toggle it off.
Is there a way to refresh the layer so that it can redraw with/without
clusters?

I've tried:
[JS]
if(pressed){
	clusterStrategy.activate();	
}
else{
	clusterStrategy.deactivate();
}
clusterStrategy.clearCache();
vectorLayer.redraw();
[/JS]

But that was not helpful.



More information about the Users mailing list