[Users] layer using tilecache or wms depending on scale

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Fri Jan 25 19:02:46 CET 2013


I get the idea, brilliant!

Many merci!
Steve





Julien-Samuel Lacroix <jlacroix at mapgears.com>@geoext.org 
Envoyé par : users-bounces at geoext.org
2013-01-25 10:42

A
users at geoext.org
cc

Objet
Re: [Users] layer using tilecache or  wms depending on scale








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/
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20130125/48374d00/attachment-0001.htm 


More information about the Users mailing list