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 <[email protected]>@openlayers.org
Envoyé par : [email protected]
17/03/2009 09:51 AM
A
[email protected]
cc
[email protected]
Objet
Re: [OpenLayers-Users] OpenLayers.Layer.TileCache as overlay
On Tue, Mar 17, 2009 at 09:15:20AM -0400, [email protected] 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
> [email protected]
> http://openlayers.org/mailman/listinfo/users
--
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users