From 61408d590a74fa0fd1c8505d14ebf5607484bd62 Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Tue, 5 Dec 2023 09:29:28 +0100 Subject: [PATCH] Move fireblight map edit/nav buttons to bottom --- .../map_applications/fireblight/index.html | 17 +++++++++-------- .../map_applications/fireblight/js/map.js | 6 ------ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/src/main/webapp/map_applications/fireblight/index.html b/src/main/webapp/map_applications/fireblight/index.html index 01639206..5ae2c398 100755 --- a/src/main/webapp/map_applications/fireblight/index.html +++ b/src/main/webapp/map_applications/fireblight/index.html @@ -59,16 +59,16 @@ .geo-location { top: auto; - right: 0.5em; - bottom: 10.0em; + right: 4em; + bottom: 3.5em; left: auto; z-index: 1000; } #registerButton { top: auto; - bottom: 12.0em; - right: 0.5em; + bottom: 3.5em; + right: 6em; left: auto; z-index: 1000; } @@ -143,10 +143,10 @@ #legend ul li:before { content: ""; line-height: 2em; - width: 0.81em; - height: 0.81em; + width: 0.75em; + height: 0.75em; float: left; - margin: .25em .25em 0; + margin: .05em .4em 0; border-radius: 50%; border: 1px solid black; } @@ -178,6 +178,7 @@ } + /* For finger pointing aka touch screen */ @media (pointer: coarse) { #registerButton button, .geo-location button { width: 1.8em; @@ -185,7 +186,7 @@ } #registerButton { - bottom: 13.0em; + right: 8.0em; } .geo-location button { bottom: 8.0em; diff --git a/src/main/webapp/map_applications/fireblight/js/map.js b/src/main/webapp/map_applications/fireblight/js/map.js index 9851b58a..e8071171 100755 --- a/src/main/webapp/map_applications/fireblight/js/map.js +++ b/src/main/webapp/map_applications/fireblight/js/map.js @@ -178,12 +178,6 @@ async function initMap() style: diseaseSpreadingPoiStyle }); - /*apiaryPoisOverlay = new ol.layer.Vector({ - source: new ol.source.Vector({ - features: new ol.Collection() - }), - style: diseaseSpreadingPoiStyle - });*/ let apiarySource = new ol.source.ImageWMS({ url: 'https://kart.mattilsynet.no/wmscache/service', -- GitLab