diff --git a/index.html b/index.html index 95ae5a63..905358ba 100644 --- a/index.html +++ b/index.html @@ -1942,8 +1942,8 @@
diff --git a/main.js b/main.js index 26231dda..8011a1df 100644 --- a/main.js +++ b/main.js @@ -327,11 +327,9 @@ function showWelcomeMessage() {
  • 3d scene and Globe view
  • Ability to save map as JPEG image
  • Diplomacy Editor enhancements
  • -
  • Rivers Overview screen [v 1.21] *
  • +
  • Rivers Overview screen
  • -

    * It's recommended to regenerate rivers to get clean data for Rivers Overview.

    -

    Thanks for all supporters on ${patreon}!

    `; $("#alert").dialog( diff --git a/modules/save-and-load.js b/modules/save-and-load.js index b17f9ba8..c10c8630 100644 --- a/modules/save-and-load.js +++ b/modules/save-and-load.js @@ -85,8 +85,11 @@ async function getMapURL(type, subtype) { if (isFirefox && type === "mesh") clone.select("#oceanPattern").remove(); if (subtype === "globe") clone.select("#scaleBar").remove(); if (subtype === "noWater") {clone.select("#oceanBase").attr("opacity", 0); clone.select("#oceanPattern").attr("opacity", 0);} - if (type === "mesh") clone.attr("width", graphWidth).attr("height", graphHeight); - if (type !== "png") clone.select("#viewbox").attr("transform", null); // reset transform to show whole map + if (type !== "png") { + // reset transform to show the whole map + clone.attr("width", graphWidth).attr("height", graphHeight); + clone.select("#viewbox").attr("transform", null); + } if (type === "svg") removeUnusedElements(clone); if (customization && type === "mesh") updateMeshCells(clone); inlineStyle(clone);