[OpenLayers-Users] OpenLayers sending wrong url to TileCache?

Christopher Schmidt crschmidt at metacarta.com
Thu Feb 12 18:50:08 EST 2009


On Thu, Feb 12, 2009 at 03:33:56PM -0800, rtaitmilne wrote:
> The first 3 URL's that OpenLayers requests all get the same image: (from
> FireBug's net monitor)
> http://localhost/cgi-bin/tilecache.cgi/1.0.0/segment/00/000/000/000/000/000/002.png
> http://localhost/cgi-bin/tilecache.cgi/1.0.0/segment/00/000/000/001/000/000/002.png
> http://localhost/cgi-bin/tilecache.cgi/1.0.0/segment/00/000/000/002/000/000/002.png

Use Layer.WMS or Layer.TMS instead of Layer.TileCache. Layer.TileCache
is " Used to requests tiles cached by TileCache in a web accessible
cache.  This means that you have to pre-populate your cache before this
layer can be used.  It is meant only to read tiles created by TileCache,
and not to make calls to TileCache for tile creation."
--http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/TileCache-js.html


-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list