Transparent Mapbox Globe

Mapbox recently released a new version of the GL JS library, including a globe projection.

The globe looks amazing, out of the box, but wouldn't it be cool to have the option to make it hollow and see the other side?

The main points about the transparent globe above are:

Admittedly, it's not a perfect solution. Because both maps bend outward toward the user, I find that the illusion works better some times more than others, depending on if I'm concentrating on that or not. The illusion also suffers when zoomed in, likely something to do with the perspective. In my example, I fade the flipped map when the user zooms in.

Code: here

Try it out in the live example: here (note: pinch interactions are disabled on touch devices. To zoom in, one finger double tap, to zoom out two finger double tap.)

Shout out to the staff at Sparkgeo for CSS guidance and alpha testing.

Get in touch with me on Twitter if you want to talk about it!