[OpenLayers-Users] Layer.Vector with multiple data sources
Andreas Hocevar
ahocevar at opengeo.org
Thu Jan 8 13:04:58 EST 2009
On Thu, Jan 8, 2009 at 6:42 PM, Alexandre Dube <adube at mapgears.com> wrote:
> Andreas Hocevar wrote:
>> Alexandre Dube wrote:
>> It should be easy to customize the strategy you are using (I assume
>> Fixed or BBOX) to change the url and/or params of the protocol on the
>> zoomend event (similar to the moveend event handler in the BBOX
>> strategy). This strategy would then have to know the urls/params for
>> each zoom level, and you would just interact with one vector layer.
>>
> Exactly. It's a common practice on the web to have data normalized by
> scales, so it would be quite useful to have such an upgrade.
>
> So, you would modify both BBOX and Fixed ? Do others have opinions
> about it ?
No, I'd encourage you to do this on the application level because it
is less than 10 lines of code. If this is to become part of
OpenLayers, it should be a separate strategy (a layer can have
multiple strategies).
Regards,
Andreas.
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list