feat: rerender affected layers on auto-update

This commit is contained in:
Azgaar 2025-02-08 14:15:59 +01:00
parent 33a02aeea0
commit 0be14790d2
3 changed files with 8 additions and 1 deletions

View file

@ -977,4 +977,10 @@ export function resolveVersionConflicts(mapVersion) {
BurgsAndStates.getPoles();
Provinces.getPoles();
}
if (isOlderThan("1.107.0")) {
// v1.107.0 allowed custom images for markers and regiments
if (layerIsOn("toggleMarkers")) drawMarkers();
if (layerIsOn("toggleMilitary")) drawMilitary();
}
}

View file

@ -471,7 +471,7 @@ async function parseLoadedData(data, mapVersion) {
{
// dynamically import and run auto-update script
const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.105.24");
const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.107.0");
resolveVersionConflicts(mapVersion);
}

View file

@ -37,6 +37,7 @@ if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format o
<ul>
<strong>Latest changes:</strong>
<li>Ability to set custom image as Marker or Regiment icon</li>
<li>Submap and Transform tools rework</li>
<li>Azgaar Bot to answer questions and provide help</li>
<li>Labels: ability to set letter spacing</li>