Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a simple way to render OSM data (let's start with just streets and names for a single metro area) client side as nodes and edges like the new iD editor?

I'm comfortable with d3 but am having trouble seeing exactly how they're pulling it off.

share|improve this question
Are you thinking of or or do you want to render locally on your own server? – Mapperz May 15 '13 at 13:38

The Id editor is basically calling the OpenStreetMap API, and requesting the data in osm's xml format.

It basically makes a request like:,ymin,xmax,yamx

Once the data is received by the client, it is rendered using the connection.loadTiles function in id.js. The deployment code is hard to read, but you should have a look at the source code, available here:

Using Firebug, and the Javascript debugger, it is pretty easy to figure out what is happening.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.