// tools / maps corrector
Maps Corrector
Two names, put back where they belong.
A Chrome extension that restores Gulf of Mexico and Lake Ontario on Google Maps — in the page text and on the map itself — with a red maple leaf on the label. Free, open source, and it touches nothing but Google Maps.
In review at the Chrome Web Store
The one-click install button lands here the moment review clears. Until then it takes about thirty seconds by hand — and you get to read the source first.
Download the extension ↓- Unzip
maps-corrector.zipsomewhere you'll keep it. - Open
chrome://extensionsand turn on Developer mode. - Click Load unpacked and pick the
maps-correctorfolder. - Open Google Maps.
// on the map
How it works
Google Maps renders text two different ways, so the extension has to work two different ways.
Page text — search results, place titles, directions, the tab
title — is real DOM text. A MutationObserver rewrites it as it
appears. The dual-name forms collapse first, so you never end up with “Gulf of
Mexico (Gulf of Mexico)”, and matches are word-bounded, so Bank of America is
left alone.
Labels drawn on the map are not text at all. They are pixels in a WebGL canvas — nothing in the page can read them, find them, or edit them. So each corrected name is pinned to the geographic centre of its feature and projected onto the canvas using the camera Google keeps in the URL. The label is drawn at that screen position.