<!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.5726" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=073222013-18032009><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 class=073222013-18032009><FONT face=Arial 
color=#0000ff size=2>but most systems have a handler that generates kml based on 
parameters.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> users-bounces@openlayers.org 
[mailto:users-bounces@openlayers.org] <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> users@openlayers.org<BR><B>Subject:</B> Re: 
[OpenLayers-Users] Strategy cluster and slow map behavior.<BR></FONT><BR></DIV>
<DIV></DIV>
<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><SPAN><FONT face=Arial color=#0000ff size=2>Zoom in on the map. 
    </FONT></SPAN>
    <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><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>