[OSM-talk] Mapnik+OSM and TileCache

Christopher Schmidt crschmidt at metacarta.com
Sun Nov 26 19:43:08 GMT 2006


On Sun, Nov 26, 2006 at 06:17:01PM +0100, Dutch wrote:
> Thats bloody damn sweet Christopher.. Now just get it in Mercator and
> we have a slippy map..
> I perused the areas where I have uploaded data and tagged ways, it is
> great seeing ones work visualized like a map that works, even at high
> zooms.
> 
> http://labs.metacarta.com/wms-c/demo.html?lat=55.67364&lon=12.56564&zoom=13&layers=00B00000F

http://labs.metacarta.com/wms-c/osm.html (Mercator)

Steve: If you want to use this on the OSM slippy map, you'd need to make
two changes:
 
Change:

layer = new OpenLayers.Layer.LikeGoogle( "OSM",
"http://artem.dev.openstreetmap.org/osm_tiles/", {type:'png'} );

to:

layer = new OpenLayers.Layer.WMS( "OSM",
    "http://labs.metacarta.com/wms-c/Basic.py?", {layers:'osm-merc'});

Change the maxResolution from: 156543 to: 156543.03390625

(I'd also divide the 156543.03390625 by 4, since that seems closer to
the old base.) 

Regards,
-- 
Christopher Schmidt
MetaCarta




More information about the talk mailing list