[OpenLayers-Users] Layer.Vector with multiple data sources

Alexandre Dube adube at mapgears.com
Thu Jan 8 13:38:14 EST 2009


Andreas Hocevar wrote:
> 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.
>
>   

Understood.  I'll try to write a new strategy then.  Thanks a lot for 
the tips.

-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Users mailing list