rd13_tile_server/docs/mediawiki-config.php
Conrad Schulz bfd8dfdf96 feat: initial tile server setup
- TileServer-GL + nginx reverse proxy (docker-compose)
- CORS-Konfiguration für MediaWiki, Nextcloud & weitere Dienste
- Rate-Limiting & Tile-Caching-Header via nginx
- config/config.json: OSM + Satellitenkacheln
- scripts/download-data.sh: Planetiler (OSM), Sentinel-2 Hinweise
- docs: API-Endpoints, MediaWiki Kartographer, Nextcloud Maps
- .gitignore: MBTiles/PMTiles und .env ausgeschlossen
2026-05-30 15:57:07 +00:00

35 lines
1.2 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 für LocalSettings.php
#
# Füge diese Zeilen in deine LocalSettings.php ein.
# Ersetze TILE_SERVER_URL mit der tatsächlichen URL deines Servers.
#
# Dokumentation: https://www.mediawiki.org/wiki/Extension:Kartographer
# Kartographer aktivieren
wfLoadExtension( 'Kartographer' );
# Tile-Server URL (dein selbst gehosteter Server)
$wgKartographerMapServer = 'http://TILE_SERVER_URL:8080';
# Welche Kartenstile stehen zur Verfügung?
# Die Namen entsprechen den Keys in config/config.json → "styles"
$wgKartographerStyles = [
'osm-bright', # OpenStreetMap Vektorkarte
'satellite-hybrid', # Satellitenkarte
];
# Standard-Stil
$wgKartographerDfltStyle = 'osm-bright';
# Tile-URL-Muster für Raster-Tiles (XYZ)
# TileServer-GL stellt Tiles unter /styles/{style}/{z}/{x}/{y}.png bereit
$wgKartographerSrcsetScales = [ 1, 1.5, 2 ];
# Optional: statische Kartenbilder für Vorschau (Mapshot)
# $wgKartographerStaticFullWidth = true;
# 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":"München","description":"Landeshauptstadt"}}
# </maplink>