Hi tobias maybe you can try to turn on transparency in your mapfile, try to overwrite the default png driver with this<div><br><div><div>OUTPUTFORMAT</div><div>    NAME &quot;png&quot;</div><div>    MIMETYPE &quot;image/png&quot;</div>
<div>    DRIVER &quot;GD/PNG&quot;</div><div>    EXTENSION &quot;png&quot;</div><div>    IMAGEMODE RGBA</div><div>    TRANSPARENT ON</div><div>    FORMATOPTION          &quot;INTERLACE=OFF&quot;   #for tilecache, metaTile On</div>
<div>END</div><br><div class="gmail_quote">2010/1/20 Tobias Weiß <span dir="ltr">&lt;<a href="mailto:tobias.weiss@pik-potsdam.de">tobias.weiss@pik-potsdam.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">






<div bgcolor="#ffffff" text="#000000">
<font face="Tahoma">Hello Tilecachers,<br>
<br>
I am new to this list. I am developing map applications using Google
Maps, OpenlLayers &amp; MapServer. Now I want to improve performance
and installed Tilecache that runs fine under mod_python. I can render
tiles successfully but can´t get them transparent. I have searched
through the list but couldn´t find a solution to my problem. Don´t know
if this maybe derives from the fact that I use type=MapServer instead
of type=WMS in my tilecache.cfg to request a layer. As far as I read
the other posts, getting transparent tiles works by appending
&quot;transparent=true&quot; to the WMS url but this doesn´t seem to work with
type=MapServer. <br>
<br>
Ok, this is my code:<br>
<br>
#######<br>
<br>
JavaScript:<br>
<br>
new
OpenLayers.Layer.WMS(&quot;name&quot;,&quot;<a href="http:/localhost/cgi-bin/tilecache/tilecache.py" target="_blank">http:/localhost/cgi-bin/tilecache/tilecache.py</a>,<br>
                                                                       
                                    {<br>
                                                                       
                                    maxExtent:new
OpenLayers.Bounds(-198,-115.542749339137,198,109.146905833277),<br>
                                                                       
                                    maxResolution:156543.0339,<br>
                                                                       
                                    layers:&quot;worldtest&quot;,<br>
                                                                       
                                    format: &#39;image/png&#39;,<br>
                                                                       
                                    transparent:true<br>
                                                                       
                                    });<br>
<br>
#########<br>
<br>
tilecache.cfg<br>
<br>
[worldtest]<br>
layers = country<br>
spherical_mercator = yes<br>
extension = png<br>
mapfile = /mymaps/world_test.map<br>
transparent = true<br>
data_extent = -198.0,-115.542749339,198.0,109.146905833<br>
type = MapServer<br>
metatile = no<br>
srs = EPSG:4326<br>
metabuffer =
10,10                                                               <br>
bbox = -198.0,-115.542749339,198.0,109.146905833<br>
metasize = 5,5<br>
extent_type=loose<br>
<br>
# Some extracts from my world_test.map<br>
<br>
WEB<br>
    LOG world_test.log<br>
    IMAGEPATH &#39;&#39;<br>
    IMAGEURL &#39;&#39;<br>
METADATA<br>
     WMS_ONLINERESOURCE &#39;<a href="http://?map=world_test.map" target="_blank">http://?map=world_test.map</a>&#39;<br>
     WMS_SRS &#39;EPSG:4326 EPSG:900313&#39;<br>
     WMS_ACCESSCONSTRAINTS &#39;none&#39;<br>
     WMS_TITLE &#39;WMSTitel&#39;<br>
     WMS_FEATURE_INFO_MIME_TYPE &#39;text/html&#39;<br>
     WMS_ABSTRACT &#39;WMSmetatext&#39;<br>
END  #METADATA<br>
<br>
This code is working fine, just transparency is missing. A single tiles
url is e.g the following:<br>
<a href="http://localhost/cgi-bin/tilecache/tilecache.py?MAXEXTENT=left-bottom%3D%28-198%2C-115.542749339137%29%20right-top%3D%28198%2C109.146905833277%29&amp;MAXRESOLUTION=156543.0339&amp;LAYERS=worldtest&amp;FORMAT=image%2Fpng&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A900913&amp;BBOX=-0.003589194267988205,-0.003589194267988205,10018754.166010806,10018754.166010806&amp;WIDTH=256&amp;HEIGHT=256" target="_blank">http://localhost/cgi-bin/tilecache/tilecache.py?MAXEXTENT=left-bottom%3D%28-198%2C-115.542749339137%29%20right-top%3D%28198%2C109.146905833277%29&amp;MAXRESOLUTION=156543.0339&amp;LAYERS=worldtest&amp;FORMAT=image%2Fpng&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A900913&amp;BBOX=-0.003589194267988205,-0.003589194267988205,10018754.166010806,100187
54.166010806&amp;WIDTH=256&amp;HEIGHT=256</a><br>
<br>
I read somewhere that </font>MapServer needs to be configured to work
as a Web Map Service (WMS) provider in order to work with Tilecache. I
checked my MapServer and as far as I see it supports WMS.<br>
<br>
I there something wrong in my tilecache.cfg?<br>
<br>
Best, <br>
Tobias<br>
<font face="Tahoma"><br>
<br>
</font>
</div>

<br>_______________________________________________<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>
<br></blockquote></div><br></div></div>