From db147543d96fb7993f5ada5fbbf0cefcc4df48ff Mon Sep 17 00:00:00 2001 From: ISA Date: Tue, 19 Aug 2025 14:55:45 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20Hinweise=20zu=20public/config.json=20f?= =?UTF-8?q?=C3=BCr=20Kartenquellen=20in=20README=20und=20Entwicklerdokumen?= =?UTF-8?q?tation=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Beispiel und Erklärung zur Konfiguration von tileSources in public/config.json hinzugefügt - Dokumentation für Entwickler und Nutzer verständlicher --- .env.development | 2 +- .env.production | 2 +- README.md | 28 ++++++++++++++++++++++++++-- docs/README.md | 25 +++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 56 insertions(+), 7 deletions(-) diff --git a/.env.development b/.env.development index c8d104722..e8d921dcd 100644 --- a/.env.development +++ b/.env.development @@ -25,4 +25,4 @@ NEXT_PUBLIC_USE_MOCKS=true NEXT_PUBLIC_BASE_PATH=/talas5 # Oder leer lassen für direkten Zugriff -> NEXT_PUBLIC_BASE_PATH= # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.1.315 +NEXT_PUBLIC_APP_VERSION=1.1.316 diff --git a/.env.production b/.env.production index b33d0bf1f..57884b5df 100644 --- a/.env.production +++ b/.env.production @@ -26,4 +26,4 @@ NEXT_PUBLIC_BASE_PATH=/talas5 # Oder leer lassen für direkten Zugriff -> NEXT_PUBLIC_BASE_PATH= # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.1.315 +NEXT_PUBLIC_APP_VERSION=1.1.316 diff --git a/README.md b/README.md index d7a151198..34bb5c766 100644 --- a/README.md +++ b/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` - ![mapTiles](docs/screenshots/mapTiles.png) - Falls nicht vorhanden hier downloaden: http://10.10.0.28/produkte/TALAS.map/mapTiles.zip + ![mapTiles](docs/screenshots/mapTiles.png) Falls nicht vorhanden hier downloaden: + http://10.10.0.28/produkte/TALAS.map/mapTiles.zip --- diff --git a/docs/README.md b/docs/README.md index 1fdcd5186..407fc1f9a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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 diff --git a/package-lock.json b/package-lock.json index e5ee47d84..d2ea20ead 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nodemap", - "version": "1.1.315", + "version": "1.1.316", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nodemap", - "version": "1.1.315", + "version": "1.1.316", "dependencies": { "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", diff --git a/package.json b/package.json index 2ce67ca77..ec65e2118 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodemap", - "version": "1.1.315", + "version": "1.1.316", "dependencies": { "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0",