If you want OpenLayers to pull TileCache cached tiles only (ie, don't generate new tiles), use <a href="http://dev.openlayers.org/releases/OpenLayers-2.7/doc/apidocs/files/OpenLayers/Layer/TileCache-js.html">OpenLayers.Layer.TileCache</a>. <br>
<br>But yes, you will have to seed the cache first.<br><br><div class="gmail_quote">2008/11/12 crinolium <span dir="ltr"><<a href="mailto:wengerter@gmail.com">wengerter@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello,<br>
<br>
can somebody tell me how to use TileCache as a TMS-server?<br>
<br>
I want to create a cache of a WMS-server and then use this cache with<br>
TileCache as a TMS-server.<br>
<br>
How can I switch between TileCache- and TMS-server? I know how to use<br>
TileCache with a TileCache-layer and now I want to use it with a TMS-layer.<br>
Is the functionality the same and I only have to switch between this two<br>
formats? Or have I to fill the cache first and after that I can use the<br>
TMS-Layer?<br>
Does it work with the normal tilecache.cfg-file?<br>
<br>
I tried it like this:<br>
new OpenLayers.Layer.TMS("TMS",<br>
"<a href="http://localhost/tilecache-2.04/tilecache.cgi" target="_blank">http://localhost/tilecache-2.04/tilecache.cgi</a>?", {type: 'jpg', layername:<br>
'tk'});<br>
I only get pink tiles. Because the tiles aren't there.<br>
<br>
I hope someone can clean that stuff up for me.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/How-to-use-TileCache-as-a-TMS-server--tp20442152p20442152.html" target="_blank">http://www.nabble.com/How-to-use-TileCache-as-a-TMS-server--tp20442152p20442152.html</a><br>
Sent from the TileCache mailing list archive at Nabble.com.<br>
<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>
</font></blockquote></div><br>