[Users] layer using tilecache or wms depending on scale
Julien-Samuel Lacroix
jlacroix at mapgears.com
Fri Jan 25 16:42:44 CET 2013
Hi,
You will need two layers one for the WMS and one for the TileCache. Each
of them will have a minscale/maxscale and displayInLayerSwitcher: false.
You will then have a third (dummy) layer with displayInLayerSwitcher set
to true. Now add a event to control your WMS and TileCache layer. When
the Dummy layer visibility change, turn on/off the visibility of both
the WMS and TileCache layers.
Best regards,
Julien
On 13-01-24 11:33 AM, Steve.Toutant at inspq.qc.ca wrote:
> I use a tilecache layer defined from zoom 20 to 10
>
> I really need to call the tiles using OpenLayers.Layer.TileCache, not
> the tilecache script in a OpenLayers.Layer.WMS("WMS
> layer","localhost/cgi-bin/tilecache ..........)
>
> Means I need to call OpenLayers.Layer.TileCache from zoom 1 to 10
>
> and OpenLayers.Layer.WMS(mapserver wms layer) from zoom 11 to 20
>
> Is it possible using a single node? Maybe using minscale and maxscale in
> the mapfile?
>
> I could not make it work
>
> thanks
>
> steve
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
--
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/
More information about the Users
mailing list