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")