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
|
### Voraussetzung
|
||||||
- Martin ist erreichbar (z. B. https://tiles.rd13server.de)
|
- 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
|
### LocalSettings Konfiguration
|
||||||
In LocalSettings.php:
|
In LocalSettings.php:
|
||||||
|
|
@ -35,13 +36,23 @@ In LocalSettings.php:
|
||||||
wfLoadExtension( 'Kartographer' );
|
wfLoadExtension( 'Kartographer' );
|
||||||
$wgKartographerMapServer = 'https://tiles.rd13server.de/styles';
|
$wgKartographerMapServer = 'https://tiles.rd13server.de/styles';
|
||||||
$wgKartographerStyles = [
|
$wgKartographerStyles = [
|
||||||
'osm-bright',
|
'world',
|
||||||
'satellite-hybrid',
|
'europa-detail',
|
||||||
|
'satelite-world',
|
||||||
|
'osm-intl',
|
||||||
];
|
];
|
||||||
$wgKartographerDfltStyle = 'osm-bright';
|
$wgKartographerDfltStyle = 'world';
|
||||||
$wgKartographerSrcsetScales = [ 1 ];
|
$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
|
### Schnelltest im Wiki
|
||||||
```wiki
|
```wiki
|
||||||
<mapframe text="Muenchen" zoom="12" latitude="48.137" longitude="11.576" width="420" height="300" />
|
<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.
|
# 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)
|
# Eigener Tile Server (ueber Caddy/HTTPS erreichbar)
|
||||||
# tileserver-gl liefert Raster-PNG unter /styles/osm-intl/{z}/{x}/{y}.png
|
# tileserver-gl liefert Raster-PNG unter /styles/<style_id>/{z}/{x}/{y}.png
|
||||||
# Kartographer baut URLs als {MapServer}/{Style}/{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';
|
$wgKartographerMapServer = 'https://tiles.rd13server.de/styles';
|
||||||
|
|
||||||
# Verfuegbare Styles aus dem Martin Server
|
|
||||||
$wgKartographerStyles = [
|
$wgKartographerStyles = [
|
||||||
|
'world',
|
||||||
|
'europa-detail',
|
||||||
|
'satelite-world',
|
||||||
'osm-intl',
|
'osm-intl',
|
||||||
];
|
];
|
||||||
|
|
||||||
# Standardstil fuer <mapframe> / <maplink>
|
# Standardstil fuer <mapframe> / <maplink>
|
||||||
$wgKartographerDfltStyle = 'osm-intl';
|
$wgKartographerDfltStyle = 'world';
|
||||||
$wgKartographerSrcsetScales = [1];
|
$wgKartographerSrcsetScales = [1];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue