[OpenLayers-Users] Change layer after zooming?

Eric Lemoine eric.c2c at gmail.com
Fri Jan 30 00:40:55 EST 2009


Hi

One way to do that is to have two OpenLayers layers with disjoint
resolution sets. To configure a layer with resolutions you pass its
constructor a config object including a "resolutions" option
referencing an array of resolutions.

Hope this helps,

Eric

2009/1/30, Ivo Brodien <philotas at cs.tu-berlin.de>:
> Hello,
>
> i was wondering how I could change the behaviour so that after the
> user zooms a different layer is requested from the WMS.
>
> I could not find the code, could anyone point me to it please?
>
> so for zoom level 18 want to have:
>
> http://localhost:8080/geoserver/wms?layers=level18.....
>
> and for level 4:
>
> http://localhost:8080/geoserver/wms?layers=level4.....
>
>
> Thanks!
> Ivo
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list