<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta content="MSHTML 6.00.2800.1615" name="GENERATOR">
<style title="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body ocsi="x">
<div dir="ltr"><font face="Tahoma" color="#000000" size="2">Thats right, </font></div>
<div dir="ltr"><font face="tahoma" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="tahoma" size="2">But I wanted it to work on a webserver without any rights to run a mapping server.&nbsp;(only&nbsp;clientside code allowed).&nbsp;I know how to do it on Mapserver or Geoserver ;)</font></div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr"><font face="times new roman">It would be nice if the GML layer as an option only binds the vectors that are in view. Like the wfs, but then on file based sources. And then requests every time a new set of vectors to bind on zoom or moving.</font></div>
<div dir="ltr"><font face="times new roman"></font>&nbsp;</div>
<div dir="ltr"><font face="times new roman"></font>&nbsp;</div>
<div dir="ltr"><font face="times new roman">Greets</font></div>
<div dir="ltr"><font face="times new roman">Gerben</font></div>
<div dir="ltr"><font face="tahoma" size="2"></font>&nbsp;</div>
<div id="divRpF222789" style="DIRECTION: ltr">
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>Van:</b> users-bounces@openlayers.org [users-bounces@openlayers.org] namens Ivan Grcic [igrcic@gmail.com]<br>
<b>Verzonden:</b> woensdag 18 maart 2009 16:40<br>
<b>Aan:</b> Heidt, Christopher M.<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>
<div>I guess it shouldnt be too hard to do it with geoserver<br>
<br>
cheers<br>
<br>
<div class="gmail_quote">2009/3/18 Heidt, Christopher M. <span dir="ltr">&lt;<a href="mailto:CHRISTOPHER.M.HEIDT@saic.com">CHRISTOPHER.M.HEIDT@saic.com</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"><span><font face="Arial" color="#0000ff" size="2">If&nbsp;your just pointing directly to a large kml file then you are right,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">but most systems have a handler that generates kml based on parameters.</font></span></div>
<br>
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:users-bounces@openlayers.org">
users-bounces@openlayers.org</a> [mailto:<a href="mailto:users-bounces@openlayers.org">users-bounces@openlayers.org</a>]
<b>On Behalf Of </b>Tiemens, Gerben<br>
<b>Sent:</b> Wednesday, March 18, 2009 5:15 AM<br>
<b>To:</b> Ivan Grcic<br>
<b>Cc:</b> <a href="mailto:users@openlayers.org">users@openlayers.org</a><br>
<b>Subject:</b> Re: [OpenLayers-Users] Strategy cluster and slow map behavior.<br>
</font><br>
</div>
<div>
<div></div>
<div class="h5">
<div></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span>Thanks for your answer.</span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span>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>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></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span>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></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span>Greets</span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span><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 lang="nl" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>Van:</b> Ivan Grcic [mailto:<a href="mailto:igrcic@gmail.com">igrcic@gmail.com</a>]
<br>
<b>Verzonden:</b> Tuesday, March 17, 2009 5:07 PM<br>
<b>Aan:</b> Tiemens, Gerben<br>
<b>CC:</b> <a href="mailto:users@openlayers.org">users@openlayers.org</a><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" target="_blank">
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></div>
</div>
</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>
</div>
<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>