Yeah I agree, the re-configuration of the protocol could go in a separate, custom strategy.
Cheers, Eric 2009/1/8, Andreas Hocevar <[email protected]>: > On Thu, Jan 8, 2009 at 6:42 PM, Alexandre Dube <[email protected]> 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. > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
