markmarkoh / datamaps

Customizable SVG map visualizations for the web in a single Javascript file using D3.js
http://datamaps.github.io
MIT License
3.78k stars 1.01k forks source link

Which projection is supported? #130

Closed Tropicalista closed 10 years ago

Tropicalista commented 10 years ago

I see in example that this map tool uses a mercator projection. What are other projections available?

markmarkoh commented 10 years ago

By default it supports all the d3 projections:

https://github.com/mbostock/d3/wiki/Geo-Projections

Although if you added the d3 script for extra projections, all of these would be made available:

https://github.com/d3/d3-geo-projection/

markmarkoh commented 10 years ago

It's important to note that in some instances you'll need to override setProjection in DataMaps to handle the scaling/zooming.

mercator and equirectangular work out of the box, and now on master orthographic works great too