Fix initial rendering: Calculate stats after usage data is loaded and refresh editor markers
Deploy TrassenPlaner / deploy (push) Successful in 1m6s
Details
Deploy TrassenPlaner / deploy (push) Successful in 1m6s
Details
This commit is contained in:
parent
e72e2dc25f
commit
26e3ea42a2
|
|
@ -1892,6 +1892,7 @@
|
||||||
if (layer.enableEdit) {
|
if (layer.enableEdit) {
|
||||||
if (v.active) {
|
if (v.active) {
|
||||||
layer.enableEdit();
|
layer.enableEdit();
|
||||||
|
if (layer.editor) layer.editor.refresh();
|
||||||
} else {
|
} else {
|
||||||
layer.disableEdit();
|
layer.disableEdit();
|
||||||
}
|
}
|
||||||
|
|
@ -3030,7 +3031,11 @@
|
||||||
console.log("[V3-Sync] Daten-Ladevorgang abgeschlossen.");
|
console.log("[V3-Sync] Daten-Ladevorgang abgeschlossen.");
|
||||||
if (indicator) indicator.classList.remove('active');
|
if (indicator) indicator.classList.remove('active');
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
|
|
||||||
|
// Final calculation and map refresh now that all data (including usage/obstacles) is ready
|
||||||
|
state.variants.forEach(v => { calculateStats(v); });
|
||||||
renderVariants();
|
renderVariants();
|
||||||
|
updateRouteLayers();
|
||||||
}
|
}
|
||||||
|
|
||||||
let isSaving = false;
|
let isSaving = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue