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:
@@ -25,6 +25,31 @@ Entwicklung, Architekturverständnis und Erweiterung.
|
||||
### ⚙️ Konfiguration
|
||||
|
||||
- [Allgemeine Übersicht](config/README.md)
|
||||
- [Kartenquellen-Konfiguration (public/config.json)](#kartenquellen-konfiguration-publicconfigjson)
|
||||
|
||||
---
|
||||
|
||||
## ⚙️ 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).
|
||||
|
||||
### 🧩 Hauptkomponenten
|
||||
|
||||
|
||||
Reference in New Issue
Block a user