From da4d9b1dad811260cab444ae72075a1883ecf12d Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 15 Jun 2020 01:18:44 +0200 Subject: [PATCH] Correct marker position on map --- app/preprocessing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/preprocessing.py b/app/preprocessing.py index 8b42bf1..3fe4348 100644 --- a/app/preprocessing.py +++ b/app/preprocessing.py @@ -21,5 +21,6 @@ def create_map(df): """ m = Map(location=COORDINATES, zoom_start=12) for index, row in df.iterrows(): - Marker(location=row["fields.geo_shape.coordinates"]).add_to(m) + lng, lat = row["fields.geo_shape.coordinates"] + Marker(location=[lat, lng]).add_to(m) m.save("app/templates/map.html")