simplegeo / polymaps

Polymaps is a free JavaScript library for making dynamic, interactive maps in modern web browsers.
http://polymaps.org/
Other
1.6k stars 213 forks source link

Does polymaps only support coordinates in lat/long pairs? #52

Closed stodge closed 13 years ago

stodge commented 13 years ago

Does polymaps only support coordinates in lat/long pairs? My dataset isn't lat/longs - it's basic X,Y originating at 0,0. Thanks

mbostock commented 13 years ago

In Polymaps (and Modest Maps) terminology, locations are latitude-longitude pairs, and coordinates are x-y-z triples. So, if you have data that's already in Cartesian coordinates and does not need to be projected, you can use the coordinate-point mapping to figure out where to position them on screen.

That said, the GeoJSON layer currently only supports location data, and you can't customize the projection (spherical mercator). So you may need to provide your own layer implementation, instead of using the built-in po.geoJson.