For large data, may be you can change the ratio depend on the map zoom level.<br><br><div class="gmail_quote">On Thu, Nov 13, 2008 at 7:37 PM, Ivan Grcic <span dir="ltr">&lt;<a href="mailto:ivan.grcic@geofoto.hr">ivan.grcic@geofoto.hr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">...and now when i lowered the ratio on bbox strategy, i can see big<br>
difference in refreshing the data (discarding old ones, fetchin new<br>
ones)<br>
Before i didnt see it because it was always fetching data for much bigger area.<br>
<br>
So now I can say that bbox strategy works pretty well for me!<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Nov 13, 2008 at 12:32 PM, Ivan Grcic &lt;<a href="mailto:ivan.grcic@geofoto.hr">ivan.grcic@geofoto.hr</a>&gt; wrote:<br>
&gt; Hi, i just saw that by default bbox has a ratio parameter:2 Creating<br>
&gt; bbox strategy with lower value did a lot of improvement for me, since<br>
&gt; it fetches much less data (filtering it)<br>
&gt; The improvement is off course noticable more on larger scales (zoomed out)<br>
&gt;<br>
&gt; new OpenLayers.Strategy.BBOX({ratio:1.4}<br>
&gt;<br>
&gt; Regards, Ivan<br>
&gt;<br>
&gt; On Thu, Nov 13, 2008 at 12:04 AM, Christopher Schmidt<br>
&gt; &lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt; wrote:<br>
&gt;&gt; On Wed, Nov 12, 2008 at 11:20:00PM +0100, Ivan Grcic wrote:<br>
&gt;&gt;&gt; This post continues on previous discussion opened under name &quot;bbox<br>
&gt;&gt;&gt; strategy and zooming&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; OK, I made a little mess here :) Im pretty new with this, so I still<br>
&gt;&gt;&gt; dont know really well how things function.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt; Tim says<br>
&gt;&gt;&gt; &gt; Keep in mind that the cluster strategy doesn&#39;t know anything about bbox, and vice-versa.<br>
&gt;&gt;&gt; So what &nbsp;bbox does, is fetching the data, and cluster is then, well<br>
&gt;&gt;&gt; clustering that data? (without getting any new data, cuz thats bbox&#39;es<br>
&gt;&gt;&gt; work)<br>
&gt;&gt;&gt; So on layer pan/zoom, first bbox is activated to fetch, and then<br>
&gt;&gt;&gt; cluster to process. Did i get it right?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Well knowing that, then thers not so much to say about Cluster<br>
&gt;&gt;&gt; strategy. Its allready doing its job pretty well.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Its only about making bbox more efficient, cuz of reasons that<br>
&gt;&gt;&gt; Tim/Christopher said:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Tim said:<br>
&gt;&gt;&gt; &gt; I want to have maxfeatures, and more aggressive invalidation because of it.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Christopher said (thats my case btw)<br>
&gt;&gt;&gt; &gt; Someone else might have a specific need to make the strategy more<br>
&gt;&gt;&gt; &gt; aggressive because the server returns more detailed data based on the<br>
&gt;&gt;&gt; &gt; extent of the request (I don&#39;t know, just making things up here).<br>
&gt;&gt;<br>
&gt;&gt; These are actually reversed -- I&#39;m Tim above, and Tim is Me.<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; --<br>
&gt;&gt; Christopher Schmidt<br>
&gt;&gt; MetaCarta<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Ivan Grcic<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Ivan Grcic<br>
_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Li XinGang<br>EMail: <a href="mailto:slinavlee@gmail.com">slinavlee@gmail.com</a><br>Blog: &nbsp; <a href="http://avlee.cnblogs.com">avlee.cnblogs.com</a><br>Site: &nbsp; &nbsp;<a href="http://www.mapboost.org.cn">www.mapboost.org.cn</a><br>