From b00f1374df1cae2ffa5d70768646458d7a284009 Mon Sep 17 00:00:00 2001
From: malzer <malzer@sub.uni-goettingen.de>
Date: Fri, 2 Jul 2021 13:17:11 +0200
Subject: [PATCH] Hides geocompletion tools on start

---
 edit/index.html                |  2 +-
 edit/js/dariah.workflow.geo.js |  4 ++++
 edit/js/dariah.workflow.js     | 13 ++++++++-----
 3 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/edit/index.html b/edit/index.html
index 524a174..7525202 100644
--- a/edit/index.html
+++ b/edit/index.html
@@ -139,7 +139,7 @@
 							</div>
 						</div>
 					</div>
-					<div class="row-fluid">
+					<div id = "geolocationArea" class="row-fluid">
 						<div id="content" class="primary-area">
 							<div id="tgnArea" class="well span6">
 								<h3>Place selection &nbsp; <img id="spinningGeolocationCompletionFlower" class="hide" src="https://res.de.dariah.eu/dhrep/img/spinning-flower_slow.gif" alt="Geolocation completion running" width="22" /></h3>
diff --git a/edit/js/dariah.workflow.geo.js b/edit/js/dariah.workflow.geo.js
index 9a1126c..28db866 100644
--- a/edit/js/dariah.workflow.geo.js
+++ b/edit/js/dariah.workflow.geo.js
@@ -17,6 +17,10 @@ function initMap() {
 	});
 }
 
+function resizeMap(){
+	map.updateSize();
+}
+
 function startGeocoding() {
 	$('#tgnArea').show();
 
diff --git a/edit/js/dariah.workflow.js b/edit/js/dariah.workflow.js
index 815bc70..c3b6816 100644
--- a/edit/js/dariah.workflow.js
+++ b/edit/js/dariah.workflow.js
@@ -419,25 +419,28 @@ function download() {
 }
 
 /**
- *
+ * Display welcome screen.
  */
 function showFirstStartWizard() {
-//	$('#firstStartWizard').show();
+
 	$('#sheetArea').hide();
     setPermanentConsoleMessage('');
     showMessage('idMessage', '');
     showMessage('sharedStatus', '');
     // Empty tgn list.
     $('#tgnList').empty();
-    // TODO: Empty map data, too?
+    $('#geolocationArea').hide();
+
 }
 
 /**
- *
+ * Display table and geolocation tools.
  */
 function hideFirstStartWizard() {
-//	$('#firstStartWizard').hide();
+
 	$('#sheetArea').show();
+    $('#geolocationArea').show();
+    resizeMap();
 }
 
 /**
-- 
GitLab