Orthographic to Equirectangular.
Projections transition.

Challenge accepted!

Some time ago I saw cool infographic commercial on TV: rotating globe was unreelling to flat map. Of course it was cartoon, but I knew that it was possible to make the same and even better for web. Challenge was accepted. I decided to use D3.js for this map experiment. Why D3.js? Because Mike Bostock has lots of examples which you can use as little blocks for your visualization. So if you never heared about d3.js - now it's good time to begin explore this cool library.

From simple to complex

First attempt. Globe rotating all the time if mouse not over maparea, when mouseover event fires - transition begins. Transition is simple path to path (shortest trek).

If you play a while with this example, you will notice that map looks different each time. It is because we cut our globe at different meridian each time. So to get familiar view (antimeridian cutting) we should rotate globe to zero meridian before transition.

Second attempt. Now globe rotating manually via drag event and map always cut along antimeridian

Now it's better, our transition looks cool but weird. So our next step will be about making unreel/reel transition.

Real unreel

Luckily I found proper example in Mike's gallery: Orthographic to Equirectangular. It really helped me. With minor changes we can make it work in both sides. This minor change is clip fixing - we need to add clipAngle interpolation for map to globe transition. Third attempt. Globe unreeling after click on land and reel back after double click on any country.

Now all is working and looks quite nice!

Further improvements

Finally I decided to make canvas implementation, it is quite simple. Click on canvas to unreel/reel. That's it!

You can see some artefacts during reeling back to globe, I guess it is because of clipping, if you have any ideas how to fix it, let me know.

You can make your visualization more "shiny" by adding different cool effects, gradients, shadows and etc. Here some examples for inspiration:

That's all, I hope you found interesting this map experiment. You can fork all varaiants at once on GitHub.