I have a setup with mapnik, tilecache and OpenLayers on Ubuntu that I can't get to work quite right. I'm mailing this list because I'm pretty sure it's an issue with my OpenLayers configuration. My tilecache config looks like this:<br>
<br>[cache]<br>type=Disk<br>base=/tmp/tilecache<br><br>[osm]<br>type=Mapnik<br>mapfile=/path/to/osm.xml<br>spherical_mercator=true<br>levels=19<br><br>And my javascript:<br><br>options = {<br> maxResolution:156543.0339,<br>
units:'m',<br> projection: new OpenLayers.Projection("EPSG:900913"),<br> displayProjection: new OpenLayers.Projection("EPSG:4326"),<br> maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),<br>
restrictedExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),<br> numZoomLevels: 19<br>};<br><br>map = new OpenLayers.Map('map', options);<br><br>layer = new OpenLayers.Layer.TMS("osm", "/tilecache/",<br>
{serviceVersion: "1.0.1", layername: "osm", type: "png", sphericalMercator: true});<br><br>map.addLayer(layer);<br><br>I'd appreciate any thoughts about what I am/may be doing wrong. Thanks!<br>