- docker-compose: ghcr.io/maplibre/martin:v1.10.1, Port 3000 - config/martin.yaml: Auto-Discovery MBTiles/Styles/Sprites/Fonts, CORS built-in - nginx-Container entfernt (NPM uebernimmt Proxy/SSL/Routing) - config/config.json + nginx/ entfernt (TileServer-GL Artefakte) - docs: alle Endpunkt-URLs auf Martin-Format aktualisiert - .github/copilot-instructions.md: Stack auf Martin (Rust) aktualisiert - Vorteile: Hot-Reload, CORS built-in, ~10x weniger RAM
38 lines
1.4 KiB
PHP
38 lines
1.4 KiB
PHP
# 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).
|
||
#
|
||
# 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)
|
||
$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
|
||
|
||
# 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>
|