From ae66a3bcfe01a7ac7794103ab7952dbc52c6776f Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Fri, 29 Apr 2022 11:42:41 +0200
Subject: [PATCH] Fixing the http bug on statkart tile service

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

diff --git a/src/components/MapPOI.vue b/src/components/MapPOI.vue
index 3e5189d..58e84b6 100644
--- a/src/components/MapPOI.vue
+++ b/src/components/MapPOI.vue
@@ -418,6 +418,9 @@
 							layer: 'topo4',
 							matrixSet: 'EPSG:3857',
 						});
+						
+						// Need to force https on the tiles URL (bug in the service?)
+						options.urls[0] = options.urls[0].replace("http","https");
 
 						This.map = new Map({
 							layers: [
-- 
GitLab