I am currently trying to code a folium.Marker so that it will, when clicked, create a window which slides up on the right side of the screen, displaying information pertaining to the marker pressed.
I am relatively new to Folium and Leaflet in general. I imagine its got something to with Layer or LayerControl but I cant seem to work out exactly what to do.
My code is below, but I think this is a question more related to pseudocode.
import sys
!{sys.executable} -m pip install folium
!{sys.executable} -m pip install pandas
!{sys.executable} -m pip install geocoder
import geocoder
import folium
import pandas as pd
g=geocoder.ip('me')
location = g.latlng
obsMap = folium.Map(
location,
zoom_start=2
)
obsMap
observations = pd.read_csv('observations.csv')
observations['Marker Colour'] = observations.apply(classDiffColour, axis=1)
for _, observation in observations.iterrows():
folium.CircleMarker(
location=[observation['Latitude'], observation['Longitude']],
tooltip=observation['Name'],
popup=observation['Name'],
color=observation['Marker Colour'],
).add_to(obsMap)
obsMap
Below is sort of what I want the outcome to display, in which the blank box will have data and information. The line is not essential but I would like to have some sort of indication of which Marker is selected.

