Page MenuHomePhabricator

Add OpenHistoricalMap to Kartographer external links
Open, Needs TriagePublicFeature

Description

As the name suggests, OpenHistoricalMap is OpenStreetMap’s sister project for collaboratively mapping history. It would be great if Kartographer could include OHM in its “External maps” sidebar that links to third-party maps including OSM.

Sidebar linking to standard maps from Bing Maps, GeoHack, Google Maps, and OpenStreetMap

Use case(s)

For a typical wiki that installs Kartographer, historical maps would be an important genre of maps alongside the other genres currently listed. For example, Kartographer maps often appear anachronistically on articles about historical events or long-gone places. The reader should be able to navigate easily to OHM’s coverage of the time period to supplement the modern-day geographical coverage provided by the default map layer.

Benefits

Getting first-class support for OHM tiles into Kartographer would require complex infrastructural work. A simpler link will facilitate access to OHM’s historical coverage in the meantime. The list already includes GeoHack, which in turn links to OHM (as long as you’re on the English Wikipedia or some other Wikipedia language editions that have manually added OHM to their Template:GeoTemplate). However, only a relative handful of longtime users would recognize GeoHack by name; few would suspect it as a convenient shortcut to historical maps.

Implementation notes

Adding OHM to the list appears to entail adding an entry to externalLinks.json, then adding a localizable string for the name of the service.

		{
			"id": "openhistoricalmap",
			"featured": true,
			"links": [
				{
					"type": "historical",
					"url": "https://www.openhistoricalmap.org/?mlat={latitude}&mlon={longitude}&zoom={zoom}&layers=O"
				}
			]
		}
	"kartographer-linktype-historical": "Historical maps",
	"kartographer-link-openhistoricalmap": "OpenHistoricalMap",

Event Timeline

Better yet, the link could point directly to OHM’s coverage of a particular date by formatting the link to include a &date= parameter. But I think this would be a little more complex than just changing a configuration file, since the extension would need to recognize an additional parameter in the extension hook too. Regardless, the reader will be able to manually navigate to the correct date using the interactive time slider on OHM’s homepage.