Karten-Ausbau (OSM), Forum-Erweiterung, UI-Komponenten, Refactor Tagebuch/Gassi (DRY), Landing/SEO — APP_VER 1155
This commit is contained in:
parent
2d907f6370
commit
10e39ed135
18 changed files with 871 additions and 405 deletions
|
|
@ -1698,6 +1698,10 @@ window.Page_routes = (() => {
|
|||
center: [mid.lat, mid.lon], zoom: 15,
|
||||
zoomControl: false, attributionControl: false,
|
||||
});
|
||||
// Container hat im frisch eingefügten Fixed-Overlay erst jetzt seine
|
||||
// finale Flex-Höhe — Leaflet muss sie neu vermessen, sonst lädt es nur
|
||||
// oben Tiles und der Rest bleibt grau.
|
||||
_navMap.invalidateSize();
|
||||
|
||||
// Route-Polylines: erledigt (grün) + ausstehend (orange)
|
||||
const doneLine = L.polyline([], { color: '#22c55e', weight: 5, opacity: 0.85 }).addTo(_navMap);
|
||||
|
|
@ -1705,6 +1709,14 @@ window.Page_routes = (() => {
|
|||
_navMap.fitBounds(remainLine.getBounds(), { padding: [20, 20] });
|
||||
_addRouteArrows(_navMap, track, '#3b82f6');
|
||||
|
||||
// iOS rendert das Flex-Layout teils verzögert — nochmal neu vermessen
|
||||
// und Ausschnitt erneut anpassen.
|
||||
setTimeout(() => {
|
||||
if (!_navMap) return;
|
||||
_navMap.invalidateSize();
|
||||
_navMap.fitBounds(remainLine.getBounds(), { padding: [20, 20] });
|
||||
}, 250);
|
||||
|
||||
// Start/End-Marker (als Variable damit Reverse sie neu setzen kann)
|
||||
const mkPin = (p, color) => L.circleMarker([p.lat, p.lon], {
|
||||
radius: 8, color: '#fff', weight: 2, fillColor: color, fillOpacity: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue