Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
ca298b6
feat(karte): download offline Kartenpakete and show them as a map
DeepDiver1975 Oct 27, 2026
dd73a32
fix(karte): keep tile math in double and narrow cleanup catches
DeepDiver1975 Oct 27, 2026
736778c
test(karte): kill the surviving mutants on the Kartenpakete diff
DeepDiver1975 Oct 27, 2026
d3cdef0
feat(fuehrung): mark the Einsatzort and the units on a Lagekarte
DeepDiver1975 Oct 27, 2026
686e0cb
fix(fuehrung): keep RegionPackInfo.Covers, the Lagekarte picks its pa…
DeepDiver1975 Oct 27, 2026
3d07098
feat(karte): read Kartenpakete from lagebuch-geodata format 2
DeepDiver1975 Oct 27, 2026
912e8fb
feat(karte): Hydranten and offline address search on the Lagekarte
DeepDiver1975 Oct 27, 2026
93fa7a9
fix(karte): keep the water point radius in double
DeepDiver1975 Oct 27, 2026
c6e8733
fix(karte): draw every installed Kartenpaket as one map
DeepDiver1975 Oct 27, 2026
a015af4
fix(karte): draw each Kartenpaket only within its own area
DeepDiver1975 Oct 27, 2026
2c14b29
fix(karte): offer AKTUALISIEREN for a pack installed without its area
DeepDiver1975 Oct 27, 2026
0949801
fix(karte): say why a Kartenpaket is offered for update
DeepDiver1975 Oct 27, 2026
886bf2e
feat(karte): a symbol per water point kind and a card for each
DeepDiver1975 Oct 27, 2026
9bb6587
fix(karte): cut each pack file off at the size pack.json declares
DeepDiver1975 Oct 27, 2026
f939e64
fix(karte): find every street the address search names, in any case
DeepDiver1975 Oct 28, 2026
b94adf1
refactor(karte): read a Kartenpaket's area from its zip only
DeepDiver1975 Oct 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@ Issues: #282, #297, #298, #299, #302, #304, #350, #400, #402, #403, #404, #462
Wasserförderung über lange Wegstrecken, restarted in slices rather than as one
large change: the FI 5.008 planner engine first, then the tab with persistence,
sync and the PDF, the Einsatzauftrag per pump, the map mode salvaged from #164,
and finally the execution mode in the field. The maps and elevation packs are
already published in
[lagebuch-regions](https://github.com/CodeForFire/lagebuch-regions).
and finally the execution mode in the field. The maps and DGM5 elevation packs
are already published in
[lagebuch-geodata](https://github.com/CodeForFire/lagebuch-geodata), and the
Lagekarte installs them; the planner reads `elevation.tif` from the same pack.

It used to sit beyond 1.0. It moved forward because it adds tables to the
`.lagebuch` file, and like the modules above that is cheap before the freeze
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+lagekarte.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Führung gains a KARTE tab: the Lagebuchführer downloads offline Kartenpakete per Landkreis from Stammdaten → Karten and sees them as one map, marks the Einsatzort by tapping the map or by searching an address offline, places and drags units on it, sees Hydranten, Saugstellen, Löschwasserbehälter and Löschteiche from OpenStreetMap close up and taps one for its details, and every joined device sees the same Lagekarte.
19 changes: 15 additions & 4 deletions docs/datenschutz-und-sicherheit.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ Anwendungsdaten.
| `trust.json` | die gespeicherten Schlüssel-Fingerabdrücke der Gegenstellen |
| `host-key.pem` | der private Schlüssel, mit dem dieses Gerät sich beim Freigeben ausweist; entsteht bei der ersten Freigabe, unter Linux und macOS nur für den eigenen Benutzer lesbar |
| `attachment-cache/` | Kopien der Anhänge, die ein **verbundenes** Gerät vom Gastgeber geladen hat |
| `regions/` | die heruntergeladenen Kartenpakete: Karte, Hydranten und Adressen eines Landkreises aus OpenStreetMap, Geländehöhen aus dem DGM5 der Bayerischen Vermessungsverwaltung; keine Einsatzdaten |
| `crashes/` | Absturzberichte, höchstens fünf, ohne Fehlertexte und ohne Einsatzdaten (siehe unten) |

Beim Öffnen eines Anhangs legt Lagebuch zusätzlich eine Arbeitskopie im
Expand All @@ -163,8 +164,8 @@ Deinstallieren der App entfernt Android all diese Daten.**

## Was das Gerät verlässt

Von selbst: nichts. Es gibt im gesamten Programm genau vier Wege, auf denen
Daten das Gerät verlassen können, und alle vier werden von der Bedienerin oder
Von selbst: nichts. Es gibt im gesamten Programm genau fünf Wege, auf denen
Daten das Gerät verlassen können, und alle fünf werden von der Bedienerin oder
dem Bediener ausgelöst:

1. **Die Mehrgeräte-Verbindung.** Sie richtet sich an genau die Adresse, die im
Expand All @@ -178,10 +179,20 @@ dem Bediener ausgelöst:
4. **Der Absturzbericht unter Android.** Erst wenn auf der Startseite TEILEN
angetippt wird, geht er an das Teilen-Menü von Android; wohin, bestimmt die
dort gewählte App. Er enthält keine Fehlertexte und keine Einsatzdaten.
5. **Kartenpakete.** Unter Stammdaten → Karten lädt LISTE LADEN das
Verzeichnis der Kartenpakete aus `CodeForFire/lagebuch-geodata` und
HERUNTERLADEN ein Paket samt seiner Gebietsgrenze von GitHub
(`raw.githubusercontent.com`, `github.com` und dessen Download-Server). Dabei sieht GitHub die
IP-Adresse des Geräts und welches Paket geladen wird – keine Einsatzdaten.
Lagebuch prüft jedes Paket vor dem Entpacken gegen die Prüfsumme im
Verzeichnis. Danach zeichnet Lagebuch Karte und Hydranten ausschließlich aus
dem Paket auf dem Gerät, und die Adresssuche auf der Lagekarte fragt nur das
Paket, keinen Suchdienst; niemand außerhalb des Geräts erfährt, wo ein
Einsatz liegt.

Nicht vorhanden sind: Nutzungsstatistiken, automatisch versandte Absturzberichte, Updateprüfungen,
Werbe- oder Analysebibliotheken sowie Schriftarten oder Karten von fremden
Servern.
Werbe- oder Analysebibliotheken sowie Schriftarten oder Kartenkacheln, die während
der Arbeit von fremden Servern nachgeladen werden.

**Lagebuch schreibt keine Protokolldateien.** Das ist für den Datenschutz von
Vorteil – es entsteht kein zweiter Ort mit personenbezogenen Daten.
Expand Down
8 changes: 7 additions & 1 deletion src/LageBuch.App.Android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using LageBuch.App.Android.Services;
using LageBuch.App.Shared;
using LageBuch.AppLogic.Services;
using LageBuch.AppLogic.Services.Map;
using LageBuch.Domain.Time;
using LageBuch.Sync;

Expand Down Expand Up @@ -33,6 +34,10 @@ namespace LageBuch.App.Android;
ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize | ConfigChanges.UiMode)]
public class MainActivity : AvaloniaMainActivity
{
// Process-wide, like the alarm service: the activity is recreated on rotation, the client is not.
// Only the Kartenpakete download through it, on the Lagebuchführer's request.
private static readonly HttpClient MapPackHttp = new();

// OpenDocument (rather than GetContent) accepts multiple MIME types on Launch, needed
// since an attachment can be any of several image types or a PDF.
private static readonly string[] AttachmentMimeTypes =
Expand Down Expand Up @@ -102,7 +107,8 @@ protected override void OnCreate(global::Android.OS.Bundle? savedInstanceState)
pdfExporter: new NoopIncidentPdfExporter(),
lastConnection: new JsonLastConnectionStore(AndroidAppPaths.LastConnectionJsonPath(this)),
lastCrashReport: CrashReports.TakePending(FilesDir!.AbsolutePath),
alarmMute: new AlarmMute(AndroidAppPaths.AlarmMuteJsonPath(this)));
alarmMute: new AlarmMute(AndroidAppPaths.AlarmMuteJsonPath(this)),
mapPacks: new RegionPackLibrary(MapPackHttp, AndroidAppPaths.RegionPacksDir(this)));

base.OnCreate(savedInstanceState);
}
Expand Down
3 changes: 3 additions & 0 deletions src/LageBuch.App.Android/Services/AndroidAppPaths.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public static string RecentFilesJsonPath(Context context) =>
public static string AlarmMuteJsonPath(Context context) =>
System.IO.Path.Join(context.FilesDir!.AbsolutePath, "alarm-mute.json");

public static string RegionPacksDir(Context context) =>
System.IO.Path.Join(context.FilesDir!.AbsolutePath, "regions");

public static string CacheDir(Context context) => context.CacheDir!.AbsolutePath;

public static string AttachmentCacheDir(Context context) =>
Expand Down
8 changes: 5 additions & 3 deletions src/LageBuch.App.Shared/CompositionRoot.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using LageBuch.AppLogic.Services;
using LageBuch.AppLogic.Services.Map;
using LageBuch.AppLogic.ViewModels;
using LageBuch.Domain.Time;
using LageBuch.Sync;
Expand Down Expand Up @@ -33,14 +34,15 @@ public static MainWindowViewModel CreateMainWindowViewModel(
ILastConnectionStore? lastConnection = null,
IMailComposer? mailComposer = null,
string? lastCrashReport = null,
AlarmMute? alarmMute = null)
AlarmMute? alarmMute = null,
IRegionPackLibrary? mapPacks = null)
{
// Every cue goes through the device's mute switch (#699); without a file to keep it in,
// the switch still works for this run.
alarmMute ??= new AlarmMute();
alarm = new MutedAlarmService(alarm, alarmMute);
var home = new HomeViewModel(store, masterData, recent, dialogs, clock, ticker, alarm, hostController, appVersion, uiDispatcher, lastSaveFolder, attachmentCacheRoot, trustStore: trustStore, pdfExporter: pdfExporter, lastPdfExport: lastPdfExport, lastConnection: lastConnection, mailComposer: mailComposer, runInBackground: work => _ = Task.Run(work), lastCrashReport: lastCrashReport, alarmMute: alarmMute);
var editor = new MasterDataEditorViewModel(masterData, dialogs, masterDataFileService);
var home = new HomeViewModel(store, masterData, recent, dialogs, clock, ticker, alarm, hostController, appVersion, uiDispatcher, lastSaveFolder, attachmentCacheRoot, trustStore: trustStore, pdfExporter: pdfExporter, lastPdfExport: lastPdfExport, lastConnection: lastConnection, mailComposer: mailComposer, runInBackground: work => _ = Task.Run(work), lastCrashReport: lastCrashReport, alarmMute: alarmMute, mapPacks: mapPacks);
var editor = new MasterDataEditorViewModel(masterData, dialogs, masterDataFileService, mapPacks);
return new MainWindowViewModel(home, editor, dialogs, appVersion, alarm, alarmMute, uiDispatcher);
}
}
Loading
Loading