docs: Hinweise zu public/config.json für Kartenquellen in README und Entwicklerdokumentation ergänzt
- Beispiel und Erklärung zur Konfiguration von tileSources in public/config.json hinzugefügt - Dokumentation für Entwickler und Nutzer verständlicher
This commit is contained in:
28
README.md
28
README.md
@@ -48,6 +48,30 @@ User-ID.
|
||||
|
||||
---
|
||||
|
||||
## ⚙️ Kartenquellen-Konfiguration (public/config.json)
|
||||
|
||||
Die Datei `public/config.json` steuert, welche Kartenquelle (z.B. OSM oder lokale Tiles) für die
|
||||
Leaflet-Karte verwendet wird.
|
||||
|
||||
**Beispiel:**
|
||||
|
||||
```json
|
||||
{
|
||||
"//info": "tileSources: 'local' für offline, 'osm' für online",
|
||||
"tileSources": {
|
||||
"local": "http://localhost/talas5/TileMap/mapTiles/{z}/{x}/{y}.png",
|
||||
"osm": "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
||||
},
|
||||
"active": "osm"
|
||||
}
|
||||
```
|
||||
|
||||
- Mit `active` kann zwischen Online- und Offline-Karten umgeschaltet werden.
|
||||
- Die Datei wird beim Start der App automatisch geladen.
|
||||
- Für Offline-Betrieb muss das lokale Kartenmaterial vorhanden sein (siehe Installationsanleitung).
|
||||
|
||||
---
|
||||
|
||||
## 🧰 Erstinstallation auf Server
|
||||
|
||||
### Voraussetzungen
|
||||
@@ -61,8 +85,8 @@ User-ID.
|
||||
(Server-IP mit Port 3000)
|
||||
- Browser: Chrome ab Version 125.0.6420.142 empfohlen
|
||||
- Karten Material vorhanden in: `C:\inetpub\wwwroot\talas5\TileMap\mapTiles`
|
||||

|
||||
Falls nicht vorhanden hier downloaden: http://10.10.0.28/produkte/TALAS.map/mapTiles.zip
|
||||
 Falls nicht vorhanden hier downloaden:
|
||||
http://10.10.0.28/produkte/TALAS.map/mapTiles.zip
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user