Correct marker position on map
This commit is contained in:
parent
b33c6991e9
commit
da4d9b1dad
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue