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"><<a href="mailto:ivan.grcic@geofoto.hr">ivan.grcic@geofoto.hr</a>></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 <<a href="mailto:ivan.grcic@geofoto.hr">ivan.grcic@geofoto.hr</a>> wrote:<br>
> Hi, i just saw that by default bbox has a ratio parameter:2 Creating<br>
> bbox strategy with lower value did a lot of improvement for me, since<br>
> it fetches much less data (filtering it)<br>
> The improvement is off course noticable more on larger scales (zoomed out)<br>
><br>
> new OpenLayers.Strategy.BBOX({ratio:1.4}<br>
><br>
> Regards, Ivan<br>
><br>
> On Thu, Nov 13, 2008 at 12:04 AM, Christopher Schmidt<br>
> <<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>> wrote:<br>
>> On Wed, Nov 12, 2008 at 11:20:00PM +0100, Ivan Grcic wrote:<br>
>>> This post continues on previous discussion opened under name "bbox<br>
>>> strategy and zooming"<br>
>>><br>
>>> OK, I made a little mess here :) Im pretty new with this, so I still<br>
>>> dont know really well how things function.<br>
>>><br>
>>> > Tim says<br>
>>> > Keep in mind that the cluster strategy doesn't know anything about bbox, and vice-versa.<br>
>>> So what bbox does, is fetching the data, and cluster is then, well<br>
>>> clustering that data? (without getting any new data, cuz thats bbox'es<br>
>>> work)<br>
>>> So on layer pan/zoom, first bbox is activated to fetch, and then<br>
>>> cluster to process. Did i get it right?<br>
>>><br>
>>> Well knowing that, then thers not so much to say about Cluster<br>
>>> strategy. Its allready doing its job pretty well.<br>
>>><br>
>>> Its only about making bbox more efficient, cuz of reasons that<br>
>>> Tim/Christopher said:<br>
>>><br>
>>> Tim said:<br>
>>> > I want to have maxfeatures, and more aggressive invalidation because of it.<br>
>>><br>
>>> Christopher said (thats my case btw)<br>
>>> > Someone else might have a specific need to make the strategy more<br>
>>> > aggressive because the server returns more detailed data based on the<br>
>>> > extent of the request (I don't know, just making things up here).<br>
>><br>
>> These are actually reversed -- I'm Tim above, and Tim is Me.<br>
>><br>
>> Regards,<br>
>> --<br>
>> Christopher Schmidt<br>
>> MetaCarta<br>
>><br>
><br>
><br>
><br>
> --<br>
> Ivan Grcic<br>
><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: <a href="http://avlee.cnblogs.com">avlee.cnblogs.com</a><br>Site: <a href="http://www.mapboost.org.cn">www.mapboost.org.cn</a><br>