[Openstreetmap-dev] Overview of the workings of the 'slippy map'

Mikel Maron mikel_maron at yahoo.com
Sun Jan 8 15:34:37 GMT 2006

Hi Nick,

Sure, I can do. Here's the basic usage, as a start.

Adjusting he OSM slippy map to use the Freemap tiles is as simple as replacing one line of javascript. 
In svn, /ruby/editing-interface/index.rhtml, replace the value of tileURL with the url for Freemap.

When the slippy map requests tiles it appends
"&WIDTH="+(this.tilewidth)+"&HEIGHT="+(this.tileheight)+"&BBOX="+lt+","+tp+","+rt+","+bt;to tileURL. "BBOX" is specified as west,south,east,north

So as long as Freemap can respond to that request, everything should work ok.


----- Original Message ----
From: Nick Whitelegg <Nick.Whitelegg at solent.ac.uk>
To: openstreetmap-dev at vr.ucl.ac.uk
Sent: Sunday, January 08, 2006 3:20:11 PM
Subject: [Openstreetmap-dev] Overview of the workings of the 'slippy map'

Hello everyone,

Is anyone in a position to give me an overview of the workings of the
'slippy map'? I would like, on the dev server, to try and combine my
Freemap rendering code with the slippy map. I realise of course I could sit
down and look at the code myself, but time is tight for me ATM and if
anyone is well-versed in the code it would probably speed up things....

In particular, it seems to require a WMS/WFS XML feed. The Freemap code
does not provide this - you just tell Freemap your bounding box and it
returns the map as a PNG image. In more detail, Freemap contacts OSM and
renders the XML returned using the GD library.

Could I easily make use of the slippy map code with my existing Freemap



Openstreetmap-dev mailing list
Openstreetmap-dev at vr.ucl.ac.uk

More information about the dev mailing list