Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
import folium
|
4 |
-
from folium.plugins import MeasureControl, Fullscreen, Search
|
5 |
from geopy.geocoders import Nominatim
|
6 |
import tempfile
|
7 |
import warnings
|
@@ -120,7 +120,7 @@ def create_reliable_map(df, location_col, year):
|
|
120 |
coords = []
|
121 |
|
122 |
# Create marker cluster for better performance with many points
|
123 |
-
marker_cluster =
|
124 |
|
125 |
# Process each location
|
126 |
processed_count = 0
|
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
import folium
|
4 |
+
from folium.plugins import MeasureControl, Fullscreen, Search, MarkerCluster
|
5 |
from geopy.geocoders import Nominatim
|
6 |
import tempfile
|
7 |
import warnings
|
|
|
120 |
coords = []
|
121 |
|
122 |
# Create marker cluster for better performance with many points
|
123 |
+
marker_cluster = MarkerCluster(name="Locations").add_to(m)
|
124 |
|
125 |
# Process each location
|
126 |
processed_count = 0
|