Hi. I am trying to create a dash_leaflet map with points from a geojson but it needs to cluster by country, which is one of the columns of the geojson.
I tried to use a previous version of dash_leaflet to use the dl.MarkerClusterGroup
and it worked. But how could I do this with the new version of dash_leaflet ?
I tried this :
def plot_portal_map_leaflet(satellite_image:str="https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}.png"):
return dl.Map(
[
dl.TileLayer(url=satellite_image),
dl.GeoJSON(
url="assets/points.geojson",
cluster=True,
),
],
style={"height": "100%"},
center=[24, 12],
zoom=2.1,
)
But it seems like I can’t tell the clusters to be by the “country” column…