feat: switch kartographer docs and template to martin tile server
All checks were successful
Docker Build & Push / build (push) Successful in 2m16s
All checks were successful
Docker Build & Push / build (push) Successful in 2m16s
This commit is contained in:
parent
d3eae3d6e7
commit
87258aa524
2 changed files with 32 additions and 9 deletions
24
README.md
24
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
|
||||
<mapframe text="Muenchen" zoom="12" latitude="48.137" longitude="11.576" width="420" height="300" />
|
||||
```
|
||||
|
||||
# Update of Media Wiki
|
||||
|
|
|
|||
|
|
@ -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 <mapframe> / <maplink>
|
||||
$wgKartographerDfltStyle = 'osm-bright';
|
||||
$wgKartographerSrcsetScales = [ 1, 1.5, 2 ];
|
||||
|
||||
|
||||
# Adding Musical notation with score Notation
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue