[OpenLayers-Users] Layer.Vector with multiple data sources
Eric Lemoine
eric.c2c at gmail.com
Fri Jan 9 09:29:33 EST 2009
On Fri, Jan 9, 2009 at 2:37 PM, Alexandre Dube <adube at mapgears.com> wrote:
> I just read an other interesting thread Andreas Hocevar posted :
> <<
>
> You can make the BBOX strategy aggressive by instantiating your BBOX
> strategy like this:
>
> new OpenLayers.Strategy.BBOX(invalidBounds: function(){return true;});
>
> This will cause features to be fetched also if you zoom in.
>
>>>
>
> That's a behavior I should keep in mind while creating the separate
> strategy, but I'm not sure about one thing : would the new strategy require
> a BBOX or Fixed one ?
Yes.
> The main idea of the custom strategy is to change the
> params of the layer while zooming and depending on the zoom level, but while
> we zoom in, the layer doesn't fetch new features by default, it keeps old
> ones. So the above Andreas idea could do the trick, but it's applied to the
> BBOX strategy.
>
> So my final question is : should I have in mind that my custom strategy
> would be dependent ?
It's a custom strategy, so you can live with it working only with the
bbox strategy, can't you?
--
Eric
More information about the Users
mailing list