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

How are you doing ? I am Mehul Nahar working on a project which is similar to I have used Polymaps platform, where I have used cloudmade API for the base map.

My problem -

I am unable to implement the Geojson file, in fact I am still unable to plot Lat&long. I was wondering if you guys could help me on this. If you can give me a right direction to work on and also if you have some sample code which you could share with will be real helpful.

Look forward to hearing from you.

share|improve this question
up vote 4 down vote accepted

The best place to look for D3 and Polymaps inspiration are the github gists Mike Bostock (author of both D3 and Polymaps) makes, as shown on A list of all of them to date (and updated with ones he posts in the future):

Searching for "polymaps" and maybe "geojson" in that view should give you some examples, and clicking on the #XXXX link on top of one you like takes you to the source code of its parts.

For a non-polymaps (D3-only) rendition of some geoJSON, you could peek at bl.ock #1392560 (adopted from his SVG Open 2011 keynote presentation, IIRC - just tweak the number in the bl.ocks URL)

…or maybe the slightly tweaked version of it that lets you drag and drop geojson files onto the page to draw their polygons on the globe, bl.ock #1431429.

For a set of test geojson files to play with, try the public domain ones in the repository.

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.