Hi Tiemens,<br><br>the problem is that the more you zoom in, more and more clusters are created. So at the first several levels, you only have several clusters, thats why it takes relativly small amount of time. The more you zoom in, it takes lots of time to calculate clusters.<br>
<br>This is happening because you are working with all the features all the time, regardless of the bbox of the map (not good solution if you have more then 50-100 features)<br><br>I suggest: using BBOX strategy that filters out the features depending on map extents, together with wfs protocol. Then it should work pretty fast.<br>
<br>HINT: check ratio parametar and <a href="http://trac.openlayers.org/ticket/1830">http://trac.openlayers.org/ticket/1830</a><br><br>Cheers<br><br><br><div class="gmail_quote">2009/3/17 Tiemens, Gerben <span dir="ltr">&lt;<a href="mailto:Gerben.Tiemens@grontmij.nl">Gerben.Tiemens@grontmij.nl</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"></font> </div>
<div><span><font color="#0000ff" size="2" face="Arial">Hello OpenLayers List users,</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">I&#39;m implementing the cluster strategy and im facing a problem. I have a 500 features on the map from a KML file, with google layer as baselayer. 
</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">With clustering on the KML layer, the map acts really slow. When zooming in, the map acts slower and slower. Every zoom step, the next zoomstep will be slower.</font></span></div>

<div><span><font color="#0000ff" size="2" face="Arial">When clustering is off, the map acts fast again, even it has more features on it.</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">I turned of the special styling, but even that does not help in this case. The map keeps acting slow with each zoom action.</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">My site is:
<a href="http://www.getiem.nl/mineralmap/mineralmap.html" target="_blank">http://www.getiem.nl/mineralmap/mineralmap.html</a></font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">The javascript is on 
<a href="http://www.getiem.nl/mineralmap/strahlen.js" target="_blank">http://www.getiem.nl/mineralmap/strahlen.js</a></font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">Does anyone have an idea why clustering is slowing down on the zoomed in map?</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">Is this a bug or issue to resolve?</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">Maybe you see a flaw in my code.</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<ol>
<li><span><font color="#0000ff" size="2" face="Arial">Steps to reproduce:  
</font></span></li><li><span><font color="#0000ff" size="2" face="Arial">Zoom in on the map.
</font></span></li><li><span><font color="#0000ff" size="2" face="Arial">When zoomed in to lets say the Netherlands, its slowed down to seconds,
</font></span></li><li><span><font color="#0000ff" size="2" face="Arial">when zooming further, each step takes longer.</font></span></li></ol>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">My first insights are:  all features are drawn in memory (also features outside map), and thats why it is taking longer when zoomed in: it draws all 500 features.  But thats not
 satisfying, since loading all features at once and then zooming in is faster.</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">Greetings</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"><br>
Gerben</font></span></div>

<p><font face="Times New Roman"> </font></p>
<br>
<font color="Gray" size="1" face="Verdana">&lt;&lt; Please read our E-mail Disclaimer at the Grontmij Corporate website &gt;&gt;<br>
</font>
</div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Ivan Grcic<br>