Fix: Gassi-Karte fitBounds auf alle Treffen beim Öffnen (SW by-v877)
This commit is contained in:
parent
69f5c2982a
commit
b6a644ac3a
5 changed files with 17 additions and 10 deletions
|
|
@ -101,9 +101,9 @@
|
|||
</script>
|
||||
|
||||
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=876">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=876">
|
||||
<link rel="stylesheet" href="/css/components.css?v=876">
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=877">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=877">
|
||||
<link rel="stylesheet" href="/css/components.css?v=877">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
@ -583,10 +583,10 @@
|
|||
<div id="modal-container"></div>
|
||||
|
||||
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
|
||||
<script src="/js/api.js?v=876"></script>
|
||||
<script src="/js/ui.js?v=876"></script>
|
||||
<script src="/js/app.js?v=876"></script>
|
||||
<script src="/js/worlds.js?v=876"></script>
|
||||
<script src="/js/api.js?v=877"></script>
|
||||
<script src="/js/ui.js?v=877"></script>
|
||||
<script src="/js/app.js?v=877"></script>
|
||||
<script src="/js/worlds.js?v=877"></script>
|
||||
|
||||
<!-- Feature-Seiten werden lazy geladen -->
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '876'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '877'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
|
||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
||||
|
|
|
|||
|
|
@ -330,6 +330,13 @@ window.Page_walks = (() => {
|
|||
.on('click', () => _openDetail(w.id));
|
||||
_markers.push(m);
|
||||
});
|
||||
// Karte auf alle Marker zoomen damit alle Treffen sichtbar sind
|
||||
if (_markers.length === 1) {
|
||||
_map.setView(_markers[0].getLatLng(), 13);
|
||||
} else if (_markers.length > 1) {
|
||||
const group = L.featureGroup(_markers);
|
||||
_map.fitBounds(group.getBounds().pad(0.2));
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Offline-Cache + Push Notifications + Tile-Cache
|
||||
============================================================ */
|
||||
|
||||
const CACHE_VERSION = 'by-v876';
|
||||
const CACHE_VERSION = 'by-v877';
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue