Subtitle: Fixes the current glaring errors in Google Maps when viewed from the USA, showing: "Lake Ontario" incorrectly labeled as "Lake America", and others.
Install
Chrome: https://chromewebstore.google.com/detail/maps-region-switcher/fmbelciakdlpbepnbjefifbjaopmgcfd
Firefox: [pending approval]
Created by me, using AI in the capacity I typically do for all software projects now. Specifically, for subject matter research (comprising the majority of the AI interactions during initial development), code generation, code refactoring, and overall app architecture guidance. Source available here:
https://github.com/mfcallahan/maps-region-switcher
There's not much to this, it's a Chrome extension and Firefox add-in that allows the user to set the region used to render the map tiles. This affects the labels shown: in the USA, you may see obviously incorrect labels on geographic features like "Lake America" and "Gulf of America." Everyone knows these are wrong, despite Google's best efforts to change the lexicon of geography 🙄
This extension does have a more practical purpose too, it is actually pretty useful for seeing what your applications that implement Google Maps will look like from an international audience's perspective. Useful for testing and internationalization/localization of your apps which use Google Maps.
It works by creating two static declarativeNetRequest (a Chrome API used to block or modify network requests) rules rewrite the gl url query parameter on Google Maps urls, which is not normally surfaced to the user, with a guard rule preventing redirect loops. The extension contains no content scripts, and no DOM hooks.
Why this approach? Google Maps bakes basemap labels into a WebGL canvas from vector tiles. There is no DOM node to rewrite, so the obvious approaches like overlaying a replacement label or patching the tiles which intersect the feature, won't work (and won't stay within the Google Maps terms of use).
Setting the region instead produces Google's own rendering with correct font, halo, placement, line-breaking, at every zoom level and extent. It also modifies none of Google's content, which matters for both the Maps terms and Chrome extension store review.
100% FOSS, do whatever you want with this, including ignore it.