From 87258aa524028f4c659be3f0d2b0349e614ff760 Mon Sep 17 00:00:00 2001 From: Conrad Schulz Date: Wed, 10 Jun 2026 07:51:07 +0000 Subject: [PATCH] feat: switch kartographer docs and template to martin tile server --- README.md | 24 ++++++++++++++++++++---- example.LocalSettings.php | 17 ++++++++++++----- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 071dcee..f94e7c6 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,29 @@ Benötigte Woodpecker-Secrets: ## Setup and use our own Tile Server This is needed to use maps in extensions. -One way is to use the Tile Server Docker from here: -https://hub.docker.com/r/klokantech/openmaptiles-server +Dieses Repo ist auf einen externen Martin Tile Server ausgelegt. -To start use this command: +### Voraussetzung +- Martin ist erreichbar (z. B. https://tiles.rd13server.de) +- Martin liefert Styles unter /styles/osm-bright und /styles/satellite-hybrid +### LocalSettings Konfiguration +In LocalSettings.php: + +```php +wfLoadExtension( 'Kartographer' ); +$wgKartographerMapServer = 'https://tiles.rd13server.de'; +$wgKartographerStyles = [ + 'osm-bright', + 'satellite-hybrid', +]; +$wgKartographerDfltStyle = 'osm-bright'; +$wgKartographerSrcsetScales = [ 1, 1.5, 2 ]; ``` -docker run --rm -it -v ./maps_data:/data -p 8091:80 klokantech/openmaptiles-server + +### Schnelltest im Wiki +```wiki + ``` # Update of Media Wiki diff --git a/example.LocalSettings.php b/example.LocalSettings.php index 9f629fe..4696fd1 100644 --- a/example.LocalSettings.php +++ b/example.LocalSettings.php @@ -428,12 +428,19 @@ wfLoadExtension( 'Kartographer' ); ####################################### # Retina Bildschirme schicken noch ein @2x in der URL mit dies kann der Deutsche Tile Server auch noch nicht. -# Thunderforest Tile Service -$wgKartographerMapServer = 'https://tile.thunderforest.com'; -$wgKartographerDfltStyle = 'landscape'; +# Eigener Martin Tile Server (ueber NPM/HTTPS erreichbar) +# Beispiel: https://tiles.rd13server.de +$wgKartographerMapServer = 'https://tiles.rd13server.de'; -# Zusatz Variable für die MediaWiki eigene Variante wird aber hier nicht benötigt. -#$wgKartographerStyles = ["osm-intl","osm"]; +# Verfuegbare Styles aus dem Martin Server +$wgKartographerStyles = [ + 'osm-bright', + 'satellite-hybrid', +]; + +# Standardstil fuer / +$wgKartographerDfltStyle = 'osm-bright'; +$wgKartographerSrcsetScales = [ 1, 1.5, 2 ]; # Adding Musical notation with score Notation