From a5d6f4fa001ee11241849d486438ef51f11345c5 Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Tue, 26 Apr 2022 09:22:58 +0200
Subject: [PATCH] Forcing Norwegian map tile URL to be secure (https)

---
 src/components/MapObservation.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/components/MapObservation.vue b/src/components/MapObservation.vue
index 73e7cf7..520bf79 100644
--- a/src/components/MapObservation.vue
+++ b/src/components/MapObservation.vue
@@ -236,7 +236,9 @@
 							layer: 'topo4',
 							matrixSet: 'EPSG:3857',
 						});
-
+						//console.info(options);
+						// Need to force https on the tiles URL (bug in the service?)
+						options.urls[0] = options.urls[0].replace("http","https");
 
 						This.myMap = new Map({
 							layers: [
-- 
GitLab