From bcc9e011797d4a6b33275895261735c2888d7ca1 Mon Sep 17 00:00:00 2001 From: livio Date: Wed, 30 Sep 2026 21:17:15 +0200 Subject: [PATCH] Fix mobile map overlays and GPS recentering --- LMEMappeCatastaliApp.csproj | 4 ++-- PLAY_STORE_PRO_CHECKLIST.md | 2 +- README.md | 5 +++++ wwwroot/css/app.css | 10 +++++++--- wwwroot/js/lme-map.js | 6 ++++++ 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/LMEMappeCatastaliApp.csproj b/LMEMappeCatastaliApp.csproj index 5a445ad..8aaea34 100644 --- a/LMEMappeCatastaliApp.csproj +++ b/LMEMappeCatastaliApp.csproj @@ -28,8 +28,8 @@ it.liviomerola.lmemappecatastali.pro - 1.0.6 - 106 + 1.0.7 + 107 $(ApplicationDisplayVersion) diff --git a/PLAY_STORE_PRO_CHECKLIST.md b/PLAY_STORE_PRO_CHECKLIST.md index 36a4b63..0a2fd46 100644 --- a/PLAY_STORE_PRO_CHECKLIST.md +++ b/PLAY_STORE_PRO_CHECKLIST.md @@ -4,7 +4,7 @@ - Nome: LME Mappe Catastali Pro. - Package name Android: `it.liviomerola.lmemappecatastali.pro`. -- Versione corrente da pubblicare: `1.0.6` / version code `106`. +- Versione corrente da pubblicare: `1.0.7` / version code `107`. - Formato Release Android: Android App Bundle (`.aab`). - Target SDK Release: Android 16 / API 36. diff --git a/README.md b/README.md index 4b00cd7..258dc45 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,11 @@ App .NET MAUI Blazor Hybrid per Android, iOS, Mac Catalyst e Windows, pensata pe Informativa privacy: [PRIVACY_POLICY.md](PRIVACY_POLICY.md). +## Versione Pro 1.0.7 test + +- I messaggi informativi su telefono vengono mostrati sopra i controlli zoom e possono occupare fino a tre righe senza sovrapporsi. +- Durante il rilevamento GPS la mappa si ricentra automaticamente quando la nuova posizione esce dall'area visibile, mantenendo lo zoom corrente. + ## Versione Pro 1.0.6 test - Il pannello Layer usa tutta la larghezza disponibile sui telefoni e le righe si adattano ai testi su piu linee senza sovrapporsi. diff --git a/wwwroot/css/app.css b/wwwroot/css/app.css index 8176f80..b749a94 100644 --- a/wwwroot/css/app.css +++ b/wwwroot/css/app.css @@ -1833,12 +1833,16 @@ footer { .map-info { right: 8px; - bottom: 72px; + bottom: calc(var(--nav-height) + 116px); left: 8px; + display: -webkit-box; max-width: none; overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + line-height: 1.35; + overflow-wrap: anywhere; + white-space: normal; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; } .bottom-tabs button { diff --git a/wwwroot/js/lme-map.js b/wwwroot/js/lme-map.js index a649f71..06311e5 100644 --- a/wwwroot/js/lme-map.js +++ b/wwwroot/js/lme-map.js @@ -5637,6 +5637,12 @@ function onGpsPosition(position) { updateGpsPositionLayers(latlng, lmeState.lastAccuracy); if (firstLiveFix) { lmeState.map.setView(latlng, 19); + } else if (!lmeState.map.getBounds().contains(latlng)) { + lmeState.map.panTo(latlng, { + animate: true, + duration: 0.5, + easeLinearity: 0.25 + }); } if (lmeState.gpsTrailEnabled) {