diff --git a/client/js/map_export.js b/client/js/map_export.js index 80ddf4f42..471a94870 100644 --- a/client/js/map_export.js +++ b/client/js/map_export.js @@ -61,6 +61,13 @@ function patchSvgForInkscape() { elems[i].setAttribute('inkscape:label', elems[i].id); } elems[i].setAttribute('inkscape:groupmode', 'layer'); + + if (elems[i].style.visibility === 'hidden') { + // Currently inkscape doesn't support the visibility attribute nor the visibility CSS property + // (it looks like it's a bug or regression on Inkscape side / see notably https://gitlab.com/inkscape/inbox/-/issues/2177) + // so we hide the layer using the display CSS property + elems[i].style.display = 'none'; + } } }