Tuesday, May 26, 2015

The blog has moved!

After four years hosted at blogger, I decided to move the blog to its own domain:

http://geoexamples.com is here!

The new blog uses Jekyll, so the interactive will work much better.

If you are using the feedburner rss, the feed will continue at the same place, and the old posts won't be erased.

Tuesday, May 12, 2015

d3-composite-projections

Some countries have regions sparse around the globe, which adds difficulties when drawing maps for them.
D3 already had the albersUsa projection that solved this problem by creating a composed projection, moving Alaska and Hawaii close to the main part of the USA.
But the other countries didn't have a projectino like this. That's why I made this library.

It adds the composite projection for:
With a function that draws a border between the composition zones by returning an SVG path.

There is an example for each region, linked in the list above.

The library web page explains the usage and  installation/testing

If you are going to use it, need more regions/countries or find an error, please leave a comment here.