|
Kartographer
Extension that adds maps to wiki pages
|
Kartographer is a MediaWiki extension that adds map capability See https://www.mediawiki.org/wiki/Extension:Kartographer
You will need to run your own map tile server, or use one that is available to you. See https://wiki.openstreetmap.org/wiki/Tile_servers
<mapframe> tag; note this is always present, but overlayed with a dynamic map frame, depending on the configurationKartographer requires a raster tile server to render maps, configured via the $wgKartographerMapServer variable.
Wikimedia tile server (default, for local use and for Wikimedia projects):
OpenStreetMap public tile server (publicly available):
You can also include this config via config/MapServer/openstreetmap.php and then include that file in your LocalSettings.php:
More tile server options can be found at https://wiki.openstreetmap.org/wiki/Raster_tile_providers
Many parts of the JavaScript that builds the dynamic maps and provides the GeoJSON might be used by tools and Gadgets outside of the Wikimedia extension realm so dependencies and requirements on this interface may be hard to discover. Be extra careful changing these without notice if they're not explicitly marked private and especially if they are marked public.
To create (or reset) a development page with sample mapframe content, run the Kartographer:seedMapframePage maintenance script.
This script ensures the page Extension/Kartographer/Mapframe exists and has this content:
<mapframe text="[[wikipedia:Stockholm|Stockholm]] in Wikipedia" width=250 height=250 zoom=7 latitude="59" longitude="18" />