<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="MSHTML 6.00.2900.3314" name="GENERATOR">
</head>
<body>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span class="016100909-18032009">Thanks for your answer.</span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span class="016100909-18032009"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span class="016100909-18032009">I already searched in the way of WFS, but wanted it first to work with a simple KML. As searching in the mailinglist and other resources didn't give a solution,
 I will have to move to a WFS solution.</span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span class="016100909-18032009">BBOX strategy will not work on KML so that is nog the right way to go.</span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span class="016100909-18032009"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span class="016100909-18032009">Maybe there might be an idea to leave out the clusterfeatures that are out of view when using strategy cluster? Some sort of BBOX idea within the clustering,
 but then for not attaching all the available features in&nbsp;a KML&nbsp;to the layer, when features are out of view.(out of viewport bbox).
</span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span class="016100909-18032009"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span class="016100909-18032009">Greets</span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span class="016100909-18032009"><br>
Gerben</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"></font>&nbsp;</div>
<br>
<div class="OutlookMessageHeader" lang="nl" dir="ltr" align="left">
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>Van:</b> Ivan Grcic [mailto:igrcic@gmail.com] <br>
<b>Verzonden:</b> Tuesday, March 17, 2009 5:07 PM<br>
<b>Aan:</b> Tiemens, Gerben<br>
<b>CC:</b> users@openlayers.org<br>
<b>Onderwerp:</b> Re: [OpenLayers-Users] Strategy cluster and slow map behavior.<br>
</font><br>
</div>
<div></div>
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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"></font>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2">Hello OpenLayers List users,</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2">I'm implementing the cluster strategy and im facing a problem.&nbsp;I have a 500 features on the map from a KML file, with google layer as baselayer.&nbsp;
</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2">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 face="Arial" color="#0000ff" size="2">When clustering is off, the map acts fast again, even it has more features on it.</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2">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 face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2">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 face="Arial" color="#0000ff" size="2">The javascript is on&nbsp; <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 face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2">Does anyone have an idea why clustering is slowing down on the zoomed in map?</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2">Is this a bug or issue to resolve?</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2">Maybe you see a flaw in my code.</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<ol>
<li><span><font face="Arial" color="#0000ff" size="2">Steps to reproduce:&nbsp;&nbsp; </font>
</span></li><li><span><font face="Arial" color="#0000ff" size="2">Zoom in on the map. </font>
</span></li><li><span><font face="Arial" color="#0000ff" size="2">When zoomed in to lets say the Netherlands, its slowed down to seconds,
</font></span></li><li><span><font face="Arial" color="#0000ff" size="2">when zooming further, each step takes longer.</font></span></li></ol>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2">My first insights are:&nbsp; 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.&nbsp; But thats not satisfying, since loading
 all features at once and then zooming in is faster.</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" color="#0000ff" size="2">Greetings</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2"><br>
Gerben</font></span></div>
<p><font face="Times New Roman"></font>&nbsp;</p>
<br>
<font face="Verdana" color="gray" size="1">&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>
<br>
<font face="Verdana" color="Gray" size="1">&lt;&lt; Please read our E-mail Disclaimer at the Grontmij Corporate website &gt;&gt;<br>
</font>
</body>
</html>