From 408578455be032970985ac548777ce4abfcf9a88 Mon Sep 17 00:00:00 2001 From: Evolvedexperiment Date: Mon, 18 May 2020 09:21:42 +0000 Subject: [PATCH 1/3] Fix for elevation profile labels --- modules/ui/elevation-profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/elevation-profile.js b/modules/ui/elevation-profile.js index 209b6ba8..f816ce07 100644 --- a/modules/ui/elevation-profile.js +++ b/modules/ui/elevation-profile.js @@ -49,7 +49,7 @@ function showElevationProfile(data, routeLen, isRiver) { const chartHeight = 300; // height of our land/sea profile, excluding the biomes data below const xOffset = 80; - const yOffset = 20; // this is our drawing starting point from top-left (y = 0) of SVG + const yOffset = 80; // this is our drawing starting point from top-left (y = 0) of SVG const biomesHeight = 40; From 8618449a2162a9a23cbb979749ed24ab34ea671a Mon Sep 17 00:00:00 2001 From: Daniel Mecke Date: Tue, 19 May 2020 19:17:34 +0200 Subject: [PATCH 2/3] Added neighboring cells in json export --- modules/save-and-load.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/save-and-load.js b/modules/save-and-load.js index 607e1d7e..57333319 100644 --- a/modules/save-and-load.js +++ b/modules/save-and-load.js @@ -351,7 +351,8 @@ function saveGeoJSON_Cells() { data += " \"state\": \""+cells.state[i]+"\",\n"; data += " \"province\": \""+cells.province[i]+"\",\n"; data += " \"culture\": \""+cells.culture[i]+"\",\n"; - data += " \"religion\": \""+cells.religion[i]+"\"\n"; + data += " \"religion\": \""+cells.religion[i]+"\",\n"; + data += " \"neighbors\": "+cells.c[i]+"\n"; data +=" }\n},\n"; }); From 94b40ad97afb0e21ac112ea8f2293bebc450551b Mon Sep 17 00:00:00 2001 From: Daniel Mecke Date: Wed, 20 May 2020 21:28:24 +0200 Subject: [PATCH 3/3] added missing square brackets in json export --- modules/save-and-load.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/save-and-load.js b/modules/save-and-load.js index 57333319..77da271f 100644 --- a/modules/save-and-load.js +++ b/modules/save-and-load.js @@ -352,7 +352,7 @@ function saveGeoJSON_Cells() { data += " \"province\": \""+cells.province[i]+"\",\n"; data += " \"culture\": \""+cells.culture[i]+"\",\n"; data += " \"religion\": \""+cells.religion[i]+"\",\n"; - data += " \"neighbors\": "+cells.c[i]+"\n"; + data += " \"neighbors\": ["+cells.c[i]+"]\n"; data +=" }\n},\n"; });