From 8618449a2162a9a23cbb979749ed24ab34ea671a Mon Sep 17 00:00:00 2001 From: Daniel Mecke Date: Tue, 19 May 2020 19:17:34 +0200 Subject: [PATCH] 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"; });