Correct marker position on map

This commit is contained in:
coolneng 2020-06-15 01:18:44 +02:00
parent b33c6991e9
commit da4d9b1dad
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 1 deletions

View File

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