diff --git a/server/main.py b/server/main.py
index af5739ffd5572238d792a4d32f505d19bd2e388e..e81df05111821fd5ba96e99bb6b99c5d7c4f052b 100644
--- a/server/main.py
+++ b/server/main.py
@@ -7,8 +7,6 @@ from APIs.get_weather import get_weather
 import ssl
 import keyboard
 import sqlite3
-import geopandas as gpd
-import matplotlib.pyplot as plt
 
 
 app = Flask(__name__)
@@ -67,19 +65,6 @@ def on_key_press(server, event, cursor, conn):
 # Start a server on port 8443 using self defined HTTP class
 if __name__ == "__main__":
 
-    # Load GeoJSON data using geopandas
-    geo_data = gpd.read_file("server/map/mjosa.geojson")
-
-    # Filter only polygons
-    polygon_data = geo_data[geo_data['geometry'].geom_type == 'Polygon']
-
-    # Plot polygons
-    polygon_data.plot()
-    plt.title('Polygons in Mjøsa GeoJSON')
-    plt.xlabel('Longitude')
-    plt.ylabel('Latitude')
-    plt.show()
-
     try:
         # Initialize database connection
         conn = sqlite3.connect('server/sql_db/icedb')
diff --git a/server/map/__pycache__/get_relation.cpython-311.pyc b/server/map/__pycache__/get_relation.cpython-311.pyc
index c5c2481c4d403b41071361384a1aea05bc62f196..9abb43f4a971374e309b1d6edad01e9cd85b6552 100644
Binary files a/server/map/__pycache__/get_relation.cpython-311.pyc and b/server/map/__pycache__/get_relation.cpython-311.pyc differ
diff --git a/server/map/get_relation.py b/server/map/get_relation.py
index 72b9aa1af758998950f6bd204291911c92bca870..0a6a2b21fd7bf449b9b3f212c883500e152a951c 100644
--- a/server/map/get_relation.py
+++ b/server/map/get_relation.py
@@ -1,15 +1,29 @@
 import string
 import json
+import geopandas as gpd
+import matplotlib.pyplot as plt
 
 
 # get_relation returns the geojson data for a selected body of water
 def get_relation(self, body_of_water: string):
-    # Read geojson file
-    with open("server/map/" + body_of_water.lower() + ".geojson") as f:
-        data = json.load(f)
+    # Load GeoJSON data using geopandas
+    geo_data = gpd.read_file("server/map/mjosa.geojson")
+
+    # Filter only polygons
+    polygon_data = geo_data[geo_data['geometry'].geom_type == 'Polygon']
+
+    # Plot polygons
+    polygon_data.plot()
+    plt.title('Polygons in Mjøsa GeoJSON')
+    plt.xlabel('Longitude')
+    plt.ylabel('Latitude')
+    plt.show()
+
+    # Convert GeoDataFrame to GeoJSON-like dictionary
+    geojson_dict = json.loads(polygon_data.to_json())
 
     # Convert response data to JSON string
-    response_json = json.dumps(data)
+    response_json = json.dumps(geojson_dict)
 
     # Set headers
     self.send_response(200)
diff --git a/server/map/map_test.py b/server/map/map_test.py
deleted file mode 100644
index a4c4cc8fdb12770187229709db52410a08ed74dc..0000000000000000000000000000000000000000
--- a/server/map/map_test.py
+++ /dev/null
@@ -1,13 +0,0 @@
-import geopandas as gpd
-import matplotlib.pyplot as plt
-
-def map_test():
-    # Load GeoJSON data using geopandas
-    geo_data = gpd.read_file("mjosa.geojson")
-
-    # Plot choropleth map
-    geo_data.plot()
-    plt.title('Choropleth Map of Mjøsa Lake')
-    plt.xlabel('Longitude')
-    plt.ylabel('Latitude')
-    plt.show()
\ No newline at end of file