Hi everybody,

I`m having problems getting the cluster strategy to work. It simply makes no
difference in terms of appearance if I add it to the VectorLayer or not.

This is my code for the layer:
                vectorLayer = new OpenLayers.Layer.Vector("Vektorlayer",{
                        strategies: [
                                new OpenLayers.Strategy.Cluster({distance:20})
                        ],
                        styleMap: vectorStyle2, maxResolution: 19});

The reason why I want to add it is that I have 480 Features alltogether on
my map and even when zooming into some areas there are still around 150
features left in the bbox causing InternetExplorer to slow down (don´t know
if it´s the same case with Firefox, but I gotta use IE to use
ADODB-Connection to an Access Database in the Intranet).

Those features are created and added step by step with an addVector-method I
have implemented that reads out the coordinates and attributes of the
database for a single feature and then jumps to the next entry and repeats
the procedure till all features have been added.

greets and thx in advance
Max Stephan


-- 
View this message in context: 
http://n2.nabble.com/Cluster-strategy-not-working-tp3533851p3533851.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to