From 56597d961d58ed421995fc54a33474f0dcc82686 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Thu, 3 Oct 2024 13:05:10 +0200 Subject: [PATCH] fix: remove unwanted states styling --- index.html | 2 +- modules/dynamic/auto-update.js | 8 ++++++++ modules/io/load.js | 2 +- versioning.js | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index a556d5c7..c88f1274 100644 --- a/index.html +++ b/index.html @@ -8118,7 +8118,7 @@ - + diff --git a/modules/dynamic/auto-update.js b/modules/dynamic/auto-update.js index e14e594f..50e6ed92 100644 --- a/modules/dynamic/auto-update.js +++ b/modules/dynamic/auto-update.js @@ -964,5 +964,13 @@ export function resolveVersionConflicts(mapVersion) { defs.select("#water").selectAll("path, use").remove(); viewbox.select("#coastline").selectAll("path, use").remove(); drawFeatures(); + + // v1.104.0 introduced bugs with state borders + regions + .attr("opacity", null) + .attr("stroke-width", null) + .attr("letter-spacing", null) + .attr("fill", null) + .attr("stroke", null); } } diff --git a/modules/io/load.js b/modules/io/load.js index 9d3592f9..bc9781fe 100644 --- a/modules/io/load.js +++ b/modules/io/load.js @@ -461,7 +461,7 @@ async function parseLoadedData(data, mapVersion) { { // dynamically import and run auto-update script - const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.105.5"); + const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.105.10"); resolveVersionConflicts(mapVersion); } diff --git a/versioning.js b/versioning.js index a4eb0a72..04c9faf8 100644 --- a/versioning.js +++ b/versioning.js @@ -12,7 +12,7 @@ * * Example: 1.102.2 -> Major version 1, Minor version 102, Patch version 2 */ -const VERSION = "1.105.9"; +const VERSION = "1.105.10"; if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function"); {