I've used this code to set the format based on what the browser supports:<br><br> formatHack = OpenLayers.Util.alphaHack() ? 'image/gif' : 'image/png';<br><br> layer = new OpenLayers.Layer.WMS(<br>
"Route",<br> [<br> "<a href="http://tiles.blah.org/tilecache.fcgi?">http://tiles.blah.org/tilecache.fcgi?</a>",<br> ],<br>
{<br> layers: 'route',<br> format: formatHack,<br> transparent: 'true'<br> },<br>
{<br> isBaseLayer: false<br> }<br> );<br><br><br><div class="gmail_quote">On Sat, Mar 15, 2008 at 1:44 PM, Martijn van Oosterhout <<a href="mailto:kleptog@gmail.com">kleptog@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Thu, Mar 13, 2008 at 8:36 PM, Pedro Mendes <<a href="mailto:mendes@gaveta.net">mendes@gaveta.net</a>> wrote:<br>
> hereīs the prob:<br>
><br>
> i have a wms layer (acessing geoserver) configured this way:<br>
> extension=png, metaTile=true, metaSize=20,20 and size=256,256(default)<br>
><br>
> works great, but for known reasons (png extension) i canīt get transparent<br>
> maps in IE6 (which is an obligation)<br>
<br>
</div>AIUI IE does not support transparent PNGs...<br>
<div class="Ih2E3d"><br>
> so replace config with:<br>
> extension=gif, metaTile=true, metaSize=20,20 and size=256,256(default)<br>
><br>
> the layer is giving me outputs message like: invalid subsample x size. i<br>
> know this message is throwned from geoserver.<br>
<br>
</div>Can't help you here...<br>
<br>
Have a nice day,<br>
<font color="#888888">--<br>
Martijn van Oosterhout <<a href="mailto:kleptog@gmail.com">kleptog@gmail.com</a>> <a href="http://svana.org/kleptog/" target="_blank">http://svana.org/kleptog/</a><br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
</div></div></blockquote></div><br>