From 425fb8f32db52cc11724f37a13e4ec5ff4d446f4 Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Fri, 10 Nov 2023 08:50:02 +0100
Subject: [PATCH] Change hard coded layer projection to EPSG:4326

---
 spatial/static/spatial/js/gridmap.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spatial/static/spatial/js/gridmap.js b/spatial/static/spatial/js/gridmap.js
index b83b89d7..25112a19 100644
--- a/spatial/static/spatial/js/gridmap.js
+++ b/spatial/static/spatial/js/gridmap.js
@@ -230,7 +230,7 @@ async function displayQueryResult(evt)
     let popupElement = popup.getElement();
     $(popupElement).popover('destroy');
     
-    let coordinate = proj4(map.getView().getProjection().getCode(), 'EPSG:25833', evt.coordinate)
+    let coordinate = proj4(map.getView().getProjection().getCode(), 'EPSG:4326', evt.coordinate)
     let currentWMSLayer = WMSLayersDateBucket[currentTimestamp][currentParameter];
 
     // Need to get all layers for today, and combine results from querying all layers
-- 
GitLab