rd13_tile_server/docs/mediawiki-config.php

45 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# MediaWiki Kartographer Konfiguration fuer LocalSettings.php
#
# Fuelle diese Zeilen in deine LocalSettings.php ein.
# Ersetze TILE_SERVER_URL mit der oeffentlichen URL deines Servers (via NPM).
# Fuer lokalen Test in diesem Setup: http://localhost:9982
#
# Dokumentation: https://www.mediawiki.org/wiki/Extension:Kartographer
#
# Hinweis: Kartographer nutzt MapLibre GL im Browser der Server liefert
# Vektor-Tiles und Style-JSON, das Rendering passiert client-seitig.
# Kartographer aktivieren
wfLoadExtension( 'Kartographer' );
# Tile-Server-Basis-URL (oeffentliche URL via NPM, kein Port noetig bei HTTPS)
# Beispiel lokal: $wgKartographerMapServer = 'http://localhost:9982';
$wgKartographerMapServer = 'https://TILE_SERVER_URL';
# Verfuegbare Kartenstile
# Die Namen entsprechen den Style-Dateien in data/styles/
$wgKartographerStyles = [
'osm-bright', # OpenStreetMap Vektorkarte (MapLibre GL)
'satellite-hybrid', # Satellitenkarte
];
# Standard-Stil
$wgKartographerDfltStyle = 'osm-bright';
$wgKartographerSrcsetScales = [ 1, 1.5, 2 ];
# Tile-Endpunkte (Martin-Format):
# Vektor-Tiles: https://TILE_SERVER_URL/osm/{z}/{x}/{y}
# Satellit: https://TILE_SERVER_URL/satellite/{z}/{x}/{y}
# Style-JSON: https://TILE_SERVER_URL/styles/osm-bright
# Sources: https://TILE_SERVER_URL/catalog
# Web-UI: https://TILE_SERVER_URL/
# Beispiel-Verwendung in einem Wiki-Artikel:
# <maplink zoom="12" latitude="48.137" longitude="11.576">
# {"type":"Feature","geometry":{"type":"Point","coordinates":[11.576,48.137]},
# "properties":{"title":"Muenchen","description":"Landeshauptstadt"}}
# </maplink>
# Alternativ mit eingebetteter Karte:
# <mapframe text="Muenchen" zoom="12" latitude="48.137" longitude="11.576" width="420" height="300" />