[OpenLayers-Users] tile images and leading zeros

Christopher Schmidt crschmidt at metacarta.com
Tue Feb 26 13:08:36 EST 2008


On Tue, Feb 26, 2008 at 05:32:49PM +0000, Xin wrote:
> Hi,
> 
> I am trying to use OpenLayers with image times generated from
> generate_tiles.py (mapnik folder of openstreetmap).
> 
> With my setup, OL is looking for the following files:
> http://localhost:3000/tiles/basic/00/000/000/000/000/000/000.png
> http://localhost:3000/tiles/basic/00/000/000/001/000/000/000.png
> 
> My tiles are:
> http://localhost:3000/tiles/basic/0/0/0.png
> etc.
> 
> There are two problems here:
> 1) OL is looking a deeper directory structural than I've got
> 2) OL is looking for files with leading zeros

Why are you using OpenLayers.Layer.TileCache? Use TMS; speciically, you
probably want something like
http://trac.openlayers.org/wiki/UsingCustomTiles or the
Spherical-mercator example.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list