- 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
35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
# 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>
|