<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, &quot;http://10.2.192.128/tilecache/dataWms&quot;, theme, {REPROJECT:
'false',format:&quot;image/gif&quot;,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; transparent:
&quot;true&quot;,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; maxExtent:
new OpenLayers.Bounds(-338000.384, -21722.336, -168667.136, 371610.912),</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; maxResolution:
110.2430556,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; opacity:
opacity[area+'-'+theme]</font>
<br><font size=2 face="sans-serif">} ); &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;</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 &lt;crschmidt@metacarta.com&gt;@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>
&gt; Hi,<br>
&gt; I need to use tilecache as a non base layer.<br>
&gt; This work well<br>
&gt; &nbsp;var wms = new OpenLayers.Layer.WMS( label, <br>
&gt; &nbsp; 'http://10.2.192.128/tilecache/tilecache.cgi?',<br>
&gt; &nbsp; {<br>
&gt; &nbsp; LAYERS: theme, <br>
&gt; &nbsp; REPROJECT: 'false' &nbsp;,<br>
&gt; transparent: &quot;true&quot;<br>
&gt; },<br>
&gt; {<br>
&gt; maxExtent: new OpenLayers.Bounds(-338000.384, -21722.336, -168667.136,
<br>
&gt; 371610.912),<br>
&gt; maxResolution: 110.2430556,<br>
&gt; opacity: opacity[area+'-'+theme]<br>
&gt; }<br>
&gt; );<br>
&gt; <br>
&gt; Is it possible to use OpenLayers.Layer.TileCache instead of <br>
&gt; 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>
&gt; I tried but can not make it work<br>
&gt; thanks<br>
&gt; steve<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; Users@openlayers.org<br>
&gt; 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>