Wow, that worked! I can't believe it. I can swear I tried that combination yesterday.<br><br>It works now when I use TMS with the OSM getURL. If I omit this function, it looks for these images:<br><br><span class="objectBox objectBox-text"><a href="http://localhost:8080/1.0.0/google-tiles/1.0.0/undefined/5/19/16.png">http://localhost:8080/1.0.0/google-tiles/1.0.0/undefined/5/19/16.png</a><br>
<br>undefined seems to be the layer name. Having looked at the OL source code, I can find a way to set this. How can I set the layer name?<br><br>Thanks for your help again.<br><br>Xin<br></span><br><div><span class="gmail_quote">On 27/03/2008, <b class="gmail_sendername">Christopher Schmidt</b> <<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Mar 27, 2008 at 05:38:29PM +0000, Xin wrote:<br> > I am having problems getting OpenLayers to use tilecache and Mapnik.<br> ><br> > The image /1.0.0/google-tiles/5/17/18.png from Tilecache, is different to<br>
> the image /5/17/18.png generated from generate_tiles.py.<br> ><br> > Is the way generate_tiles.py saves tiles compatible with Tilecache?<br> <br> <br>I'm assuming that you're getting something that's 'flipped' over the<br>
equator. It's likely that you want the "tms_type=google" option on your<br> TileCache layer if you *really* want the 'identical' tile IDs...<br> <br><br> <br> > My map is in Google projection.<br>
><br> > My OpenLayers Tilecache layer:<br> <br> <br>1. Don't use a TileCache layer unless you're pre-generating *all* of the<br> images you could possibly use: use a TMS layer.<br> 2. If you *do* use a TMS layer, you don't have to add tms_type=google,<br>
you can simply not override getURL and it should work fine.<br> 3. If you do chose to go with the non-standard "google" tile scheme,<br> you can still use a tms layer with a getTileURL function, and be<br> inline with all other OSM usage.<br>
<br> <br> Regards,<br> <br>--<br> Christopher Schmidt<br> MetaCarta<br> </blockquote></div><br>