[OpenLayers-Users] OpenLayers.Layer.TileCache as overlay

Christopher Schmidt crschmidt at metacarta.com
Tue Mar 17 09:51:38 EDT 2009


On Tue, Mar 17, 2009 at 09:15:20AM -0400, Steve.Toutant at inspq.qc.ca wrote:
> Hi,
> I need to use tilecache as a non base layer.
> This work well
>  var wms = new OpenLayers.Layer.WMS( label, 
>   'http://10.2.192.128/tilecache/tilecache.cgi?',
>   {
>   LAYERS: theme, 
>   REPROJECT: 'false'  ,
> transparent: "true"
> },
> {
> maxExtent: new OpenLayers.Bounds(-338000.384, -21722.336, -168667.136, 
> 371610.912),
> maxResolution: 110.2430556,
> opacity: opacity[area+'-'+theme]
> }
> );
> 
> Is it possible to use OpenLayers.Layer.TileCache instead of 
> OpenLayers.Layer.WMS for an overlay layer.

You shared what does work, but not what doesn't. Please, in the future,
share waht doesn't. 

Using Layer.TileCache as an overlay should be possible. Simply set the
isBaseLayer property to false as a noption.

> I tried but can not make it work
> thanks
> steve
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list