One Earth, two views: map and globe in JSXGraph

We are mathematicians, not geographers. JSXGraph was developed for interactive geometry, plotting functions, and drag-and-drop visualizations, not for coastlines or rotating globes. But at heart, a map projection is just a way of mapping the surface of a sphere onto a plane, and a globe is a sphere viewed through a camera lens. That's right up our alley. So we ventured into cartography.

We came back with two new elements. geomap spreads the world out on a flat sheet; globe3d keeps it on the sphere. They are different classes, but they answer the same questions, so the same layers and drawable elements work on both. And everything you know from JSXGraph still applies: points, dragging, events, boards. For us, the Earth is simply one more thing to construct.

If you know your way around maps and spot something we got wrong, we would love to hear from you.