There's been talk on the Fedi about why online maps like OSM and Google use the Mercator projection, and I think it needs a bit of clarification. (Do NOT snitch tag.)
Online maps are _mostly_ used at small scales, of a district or a city. At these scales, the earth is approximately flat, so users expect a map that is _conformal_, one that preserves angles and shapes.
Online maps are continuously zoomable from continents down to your house. They usually aren't rendered on your browser straight from vectors, but are batch-rendered offline into square tile images. If you're on a slowish Internet connection, you can see them loading individually.
As you zoom an online map, tiles get replaced with higher-resolution ones, and as you scroll, tiles get filled in to fill the gaps. You could theoretically scroll and zoom forever, so the map needs to not have a magically special reference latitude or longitude. These constrains mean that the map needs to be _equatorial_, so that no point gets special treatment, and _cylindrical_, so that meridians are vertical and lines of latitude are horizontal.
And which is the map projection that is all of equatorial, cylindrical and conformal? Mercator!
Elena ``of Valhalla'' likes this.
reshared this
Deborah Pickett
in reply to Deborah Pickett • • •Mercator's world map of 1569 was useful to navigators at the time because it is conformal (preserving angles) even over long distances. You could draw a line between source and destination, read off the constant bearing, and point your ship in that direction for days or weeks, and you'd arrive at your destination. This line is called a "rhumb line", or (and I love this word) a "loxodrome".
Rhumb lines are absolutely not the shortest route between two points. That would be a great circle route, but computing a great circle requires spherical trigonometry, which is something that navigators were loath to mess with (as your bearing changes over the course of traversing a great circle, so it requires constant attention). Great circles have certainly been used by navigators for a long time, particularly in aviation where carrying your fuel is a factor. Now of course, ubiquitous computing and GPS makes great circles easy, and rhumb lines are just a historical curiosity.
But because of the properties of Mercator being coincidentally convenient for online maps, we find ourselves back in the 16th Century with a default projection that is frankly bad at large scales.
#Maps #Cartography
rag. Gustavino Bevilacqua reshared this.
Deborah Pickett
in reply to Deborah Pickett • • •One fun fact about Mercator is that it's often misrepresented as the map projection you'd get if you wrapped a cylinder of paper around the equator and shone a light out from the centre of the earth. But that gives you a different projection, the central cylindrical projection, which is not conformal and has ridiculous amounts of distortion away from the equator (y = tan θ).
Mercator doesn't correspond to any physical projection; it's computed mathematically so that the projected y coordinate ensures that every point from there back to the equator is conformal. This requires calculus, where y is the definite integral of the stretch factor 1/cos(θ), giving y = ln (tan [θ/2 + π/4]).
en.wikipedia.org/wiki/Mercator…
#Maps #Cartography
cylindrical map projection invented by Gerardus Mercator in 1569
Contributors to Wikimedia projects (Wikimedia Foundation, Inc.)Javier Jimenez Shaw
in reply to Deborah Pickett • • •Sensitive content
I found this graphical representation of the Mercator projection... but didn't confirm it.
It is like inflating the globe inside the cylinder:
personal.math.ubc.ca/~israel/m…
Deborah Pickett
in reply to Javier Jimenez Shaw • • •Bruce Heerssen :guillotine:
in reply to Deborah Pickett • • •Deborah Pickett
in reply to Bruce Heerssen :guillotine: • • •Bruce Heerssen :guillotine:
in reply to Deborah Pickett • • •Deborah Pickett
in reply to Deborah Pickett • • •Interestingly, I see that Apple Maps (on iOS and macOS) wraps its tiles onto a sphere, and plots place names and other text live and undistorted onto the viewport. Google and OSM web are the old guard, steadfast in using Mercator.
Edit: And Google Maps has a checkbox to enable sphere projection too, TIL.
Christopher Owen
in reply to Deborah Pickett • • •Deborah Pickett
in reply to Christopher Owen • • •Christopher Owen
in reply to Deborah Pickett • • •Elena ``of Valhalla''
in reply to Deborah Pickett • •@Deborah Pickett I think that marble ( marble.kde.org/ ) wraps pre-rendered tiles from various sources onto a sphere without rendering the names separately and at times the effects are interesting, but then that's what you get when you use tiles that were supposed to be used for small scales
(it also offers vector maps rendered on the fly, and stuff like historical maps)
like this
Deborah Pickett, Fergus Murray e Eugene Alvin Villar 🇵🇭 like this.
Deborah Pickett
in reply to Elena ``of Valhalla'' • • •Elena ``of Valhalla''
in reply to Deborah Pickett • •Deborah Pickett likes this.
Russ Garrett
in reply to Deborah Pickett • • •Open Infrastructure Map
openinframap.orgDeborah Pickett reshared this.
Sven Geggus
in reply to Deborah Pickett • • •media.ccc.de/v/fossgis2025-580…
Lebewohl Web Mercator
media.ccc.degunstick
in reply to Deborah Pickett • • •Marcos Dione
in reply to Deborah Pickett • • •OSM's demo site does not, but the data allows anybody to do it. One of many examples:
osmapp.org/#2.22/-5.9900/-157.…
OsmAPP
OsmAPPCanageek
in reply to Deborah Pickett • • •Deborah Pickett
in reply to Canageek • • •sabik
in reply to Deborah Pickett • • •I wonder what Google Earth did — I think that wasn't Mercator?
#Maps #Cartography #OpenStreetMap
Deborah Pickett
in reply to sabik • • •dr 🛠️🛰️📡🎧:blobfoxcomputer:
in reply to Deborah Pickett • • •I think this logic has to be backwards. We don't use Mercator because the tiles are square. The tiles are square because we are using Mercator.
Streetview has to do spherical manipulations in the browser in realtime, so why couldn't Maps do the same?
Deborah Pickett
in reply to dr 🛠️🛰️📡🎧:blobfoxcomputer: • • •@davidr Remember that Google Maps dates from 2004, which was long before browsers had the ability to do those kinds of transforms. Almost all the work was done ahead of time, server-side. At the time, Mercator was the only projection that ticked all the boxes. The text on maps like road names was also baked into the tiles, so stretching them client-side would make for some unpleasant distortions.
But I agree,: if you invented a mapping application now, you might make different compromises, and you might come up with something closer to Google Earth where we don't pretend the world is an infinite plane for the sake of simpler programming.
Joel Michael
in reply to Deborah Pickett • • •Deborah Pickett
in reply to Joel Michael • • •Diane
in reply to Deborah Pickett • • •KDE Marble has a neat feature where as you zoom out you can see the globe start to curve, and if you go out far enough you can see the globe, but when zoomed into human moving around a city scale it certainly looks like squares.
marble.kde.org/index.php
I haven't seen many other map programs do that and some times it's a useful feature.
Marble - find your way and explore the world
marble.kde.orgDeborah Pickett
in reply to Diane • • •Alan Grant
in reply to Deborah Pickett • • •I think osmapp.org does something similar, if I've understood correctly, but without curving text.
osmapp.org/ @alienghic
OsmAPP
OsmAPPDeborah Pickett
Unknown parent • • •Deborah Pickett
Unknown parent • • •Google Maps has a new "Globe" format for viewing
Luís Antônio Costa (Showmetech)NiceMicro
in reply to Deborah Pickett • • •Elena ``of Valhalla'' likes this.
Steven Feldman
in reply to Deborah Pickett • • •Cartographic projections: deforming the Earth to represent it
Miguel García Álvarez (A Cartographer's Tale)Alejandro_P
in reply to Deborah Pickett • • •Paul Norman
in reply to Deborah Pickett • • •Yep - people talk about Mercator like it's the wrong projection. It's not only the right projection, but given the constraints, it's the only projection when you add north-up to what you listed.
We're starting to see globes at low zooms, but that technology didn't exist at the start of online maps. It still doesn't change high zooms, and all conformal maps look the same up close.
Javier Jimenez Shaw
in reply to Deborah Pickett • • •I will talk about the Mercator projection in FOSS4G Europe in one week!
I have the impression you are not coming. It's far away from your place. But you can watch the video later.
Greg
in reply to Deborah Pickett • • •My beef with OSM is not the projection but that the tile render times can render OSM unusable, whether the maps are stored locally or served. My contention is that the performance hit from so much detail on a tile varies from 'absolutely necessary, the detail is critical!' , to 'I just need the route I should follow and some stubbed turnings, so it works at light speed with NO lags'. Where a user is happy on that continuum depends on what they are doing. A simplified map that prioritizes rendering the essential over task superfluous detail (rendered on a best-can-do basis if useful or just left out if it's distracting clutter - I probably don't need to render footpaths, buildings or business names when I'm following navigation down a motorway (freeway) on a long journey where navigation clarity & responsiveness are much more important than superfluous detail.
I love the premise of OSM but the user experience needs a close look & significant refinement for each task type and persona.