I currently show points on a map like this:
dl.Map(
[
dl.TileLayer(),
dl.GeoJSON(
data=dfGeo.__geo_interface__,
cluster=True,
zoomToBounds=True, # when true, zooms to bounds when data changes
zoomToBoundsOnClick=True, # when true, zooms to bounds of feature (e.g. cluster) on click
superClusterOptions=dict(radius=50), # adjust cluster size
),
],
zoom=6,
center=[df.loc[:, 'latitude'].mean(), df.loc[:, 'longitude'].mean()],
style={'width': '100%', 'height': '500px'}
),
i want every marker to display info on a hover or a click.
Is there a more straightforward way to do that than this: