Spaces:
Running
Running
LaurentTRIPIED
commited on
Commit
•
20a1f15
1
Parent(s):
6983fe3
Pytorch V0.3
Browse files
app.py
CHANGED
@@ -35,11 +35,12 @@ def display_organisations_engagees():
|
|
35 |
def display_map(data):
|
36 |
m = folium.Map(location=[44.837789, -0.57918], zoom_start=12)
|
37 |
for item in data:
|
38 |
-
|
|
|
39 |
folium.Marker(
|
40 |
-
|
|
|
41 |
popup=item.get('Nom', 'Sans nom'),
|
42 |
-
icon=folium.Icon(color="green", icon="leaf")
|
43 |
).add_to(m)
|
44 |
folium_static(m)
|
45 |
|
|
|
35 |
def display_map(data):
|
36 |
m = folium.Map(location=[44.837789, -0.57918], zoom_start=12)
|
37 |
for item in data:
|
38 |
+
lat_lon = item.get('point_geo', None)
|
39 |
+
if lat_lon:
|
40 |
folium.Marker(
|
41 |
+
[lat_lon['lat'], lat_lon['lon']],
|
42 |
+
icon=folium.Icon(color="green", icon="leaf"),
|
43 |
popup=item.get('Nom', 'Sans nom'),
|
|
|
44 |
).add_to(m)
|
45 |
folium_static(m)
|
46 |
|