<br><font size=2 face="sans-serif">good point!</font>
<br>
<br><font size=2 face="sans-serif">Here is what doesn't work</font>
<br><font size=2 face="sans-serif">var wms = new OpenLayers.Layer.TileCache(
label, "http://10.2.192.128/tilecache/dataWms", theme, {REPROJECT:
'false',format:"image/gif",</font>
<br><font size=2 face="sans-serif"> transparent:
"true",</font>
<br><font size=2 face="sans-serif"> maxExtent:
new OpenLayers.Bounds(-338000.384, -21722.336, -168667.136, 371610.912),</font>
<br><font size=2 face="sans-serif"> maxResolution:
110.2430556,</font>
<br><font size=2 face="sans-serif"> opacity:
opacity[area+'-'+theme]</font>
<br><font size=2 face="sans-serif">} );
</font>
<br>
<br><font size=2 face="sans-serif">wms.addOptions({isBaseLayer: false,
displayInLayerSwitcher: false});</font>
<br><font size=2 face="sans-serif">wms.setVisibility(true);</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Christopher Schmidt <crschmidt@metacarta.com>@openlayers.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : users-bounces@openlayers.org</font>
<p><font size=1 face="sans-serif">17/03/2009 09:51 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">Steve.Toutant@inspq.qc.ca</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">users@openlayers.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [OpenLayers-Users] OpenLayers.Layer.TileCache
as overlay</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>On Tue, Mar 17, 2009 at 09:15:20AM -0400, Steve.Toutant@inspq.qc.ca
wrote:<br>
> Hi,<br>
> I need to use tilecache as a non base layer.<br>
> This work well<br>
> var wms = new OpenLayers.Layer.WMS( label, <br>
> 'http://10.2.192.128/tilecache/tilecache.cgi?',<br>
> {<br>
> LAYERS: theme, <br>
> REPROJECT: 'false' ,<br>
> transparent: "true"<br>
> },<br>
> {<br>
> maxExtent: new OpenLayers.Bounds(-338000.384, -21722.336, -168667.136,
<br>
> 371610.912),<br>
> maxResolution: 110.2430556,<br>
> opacity: opacity[area+'-'+theme]<br>
> }<br>
> );<br>
> <br>
> Is it possible to use OpenLayers.Layer.TileCache instead of <br>
> OpenLayers.Layer.WMS for an overlay layer.<br>
<br>
You shared what does work, but not what doesn't. Please, in the future,<br>
share waht doesn't. <br>
<br>
Using Layer.TileCache as an overlay should be possible. Simply set the<br>
isBaseLayer property to false as a noption.<br>
<br>
> I tried but can not make it work<br>
> thanks<br>
> steve<br>
> _______________________________________________<br>
> Users mailing list<br>
> Users@openlayers.org<br>
> http://openlayers.org/mailman/listinfo/users<br>
<br>
<br>
-- <br>
Christopher Schmidt<br>
MetaCarta<br>
_______________________________________________<br>
Users mailing list<br>
Users@openlayers.org<br>
http://openlayers.org/mailman/listinfo/users<br>
</font></tt>
<br>
<br>
<br>