docs: document switchable map styles
All checks were successful
Docker Build & Push / build (push) Successful in 1m58s
All checks were successful
Docker Build & Push / build (push) Successful in 1m58s
This commit is contained in:
parent
48c0d525f7
commit
1ed8766be3
2 changed files with 21 additions and 10 deletions
19
README.md
19
README.md
|
|
@ -26,7 +26,8 @@ Dieses Repo ist auf einen externen Martin Tile Server ausgelegt.
|
|||
|
||||
### Voraussetzung
|
||||
- Martin ist erreichbar (z. B. https://tiles.rd13server.de)
|
||||
- Martin liefert Styles unter /styles/osm-bright und /styles/satellite-hybrid
|
||||
- tileserver-gl liefert gerenderte Raster-Styles unter /styles/<style_id>
|
||||
- Der Proxy routet /styles/osm-intl, /styles/world, /styles/europa-detail und /styles/satelite-world an tileserver-gl.
|
||||
|
||||
### LocalSettings Konfiguration
|
||||
In LocalSettings.php:
|
||||
|
|
@ -35,13 +36,23 @@ In LocalSettings.php:
|
|||
wfLoadExtension( 'Kartographer' );
|
||||
$wgKartographerMapServer = 'https://tiles.rd13server.de/styles';
|
||||
$wgKartographerStyles = [
|
||||
'osm-bright',
|
||||
'satellite-hybrid',
|
||||
'world',
|
||||
'europa-detail',
|
||||
'satelite-world',
|
||||
'osm-intl',
|
||||
];
|
||||
$wgKartographerDfltStyle = 'osm-bright';
|
||||
$wgKartographerDfltStyle = 'world';
|
||||
$wgKartographerSrcsetScales = [ 1 ];
|
||||
```
|
||||
|
||||
Kartographer baut daraus URLs wie `https://tiles.rd13server.de/styles/world/{z}/{x}/{y}.png`.
|
||||
|
||||
Beispiel fuer einen anderen Stil auf derselben Seite:
|
||||
|
||||
```wiki
|
||||
<mapframe mapstyle="europa-detail" text="Detailkarte" zoom="12" latitude="48.137" longitude="11.576" width="420" height="300" />
|
||||
```
|
||||
|
||||
### Schnelltest im Wiki
|
||||
```wiki
|
||||
<mapframe text="Muenchen" zoom="12" latitude="48.137" longitude="11.576" width="420" height="300" />
|
||||
|
|
|
|||
|
|
@ -428,19 +428,19 @@ wfLoadExtension('Kartographer');
|
|||
#######################################
|
||||
# Retina Bildschirme schicken noch ein @2x in der URL mit dies kann der Deutsche Tile Server auch noch nicht.
|
||||
|
||||
# Eigener Martin Tile Server (ueber NPM/HTTPS erreichbar)
|
||||
# tileserver-gl liefert Raster-PNG unter /styles/osm-intl/{z}/{x}/{y}.png
|
||||
# Eigener Tile Server (ueber Caddy/HTTPS erreichbar)
|
||||
# tileserver-gl liefert Raster-PNG unter /styles/<style_id>/{z}/{x}/{y}.png
|
||||
# Kartographer baut URLs als {MapServer}/{Style}/{z}/{x}/{y}.png
|
||||
# -> https://tiles.rd13server.de/styles/osm-intl/{z}/{x}/{y}.png
|
||||
$wgKartographerMapServer = 'https://tiles.rd13server.de/styles';
|
||||
|
||||
# Verfuegbare Styles aus dem Martin Server
|
||||
$wgKartographerStyles = [
|
||||
'world',
|
||||
'europa-detail',
|
||||
'satelite-world',
|
||||
'osm-intl',
|
||||
];
|
||||
|
||||
# Standardstil fuer <mapframe> / <maplink>
|
||||
$wgKartographerDfltStyle = 'osm-intl';
|
||||
$wgKartographerDfltStyle = 'world';
|
||||
$wgKartographerSrcsetScales = [1];
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue