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

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Tue Mar 17 09:57:55 EDT 2009


good point!

Here is what doesn't work
var wms = new OpenLayers.Layer.TileCache( label, 
"http://10.2.192.128/tilecache/dataWms", theme, {REPROJECT: 
'false',format:"image/gif",
        transparent: "true",
        maxExtent: new OpenLayers.Bounds(-338000.384, -21722.336, 
-168667.136, 371610.912),
        maxResolution: 110.2430556,
        opacity: opacity[area+'-'+theme]
} ); 

wms.addOptions({isBaseLayer: false, displayInLayerSwitcher: false});
wms.setVisibility(true);





Christopher Schmidt <crschmidt at metacarta.com>@openlayers.org 
Envoyé par : users-bounces at openlayers.org
17/03/2009 09:51 AM

A
Steve.Toutant at inspq.qc.ca
cc
users at openlayers.org
Objet
Re: [OpenLayers-Users] OpenLayers.Layer.TileCache as overlay








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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090317/c7dca64c/attachment.html


More information about the Users mailing list