Hi everyone,
I’m using kepler_streamlit to display a kepler map in streamlit.
My code as below:
import streamlit as st
from streamlit_keplergl import keplergl_static
from keplergl import KeplerGl
data_from_sesion = [
{
"Latitude": " 47.2743°",
"Longitude": "12.3534°",
"URL": "http://file/document.pdf",
"latitude": 47.2743,
"longitude": 12.3534,
},
{
"Latitude": " 48.0353°",
"Longitude": "16.4417°",
"URL": "http://file/document1.pdf",
"latitude": 48.0353,
"longitude": 16.4417,
}
]
data = pd.DataFrame(data_from_sesion)
config = {
"version": "v1",
"config": {
"visState": {
"filters": [],
"layers": [
{
"id": "marker-layer",
"type": "point",
"config": {
"dataId": "locations",
"label": "Infomations",
"color": [255, 0, 0],
"columns": {
"lat": "latitude",
"lng": "longitude"
},
"isVisible": True,
"visConfig": {
"radius": 25,
"opacity": 0.8
}
}
}
],
"interactionConfig": {}
},
"mapState": {
"latitude": 52.253971373306165,
"longitude": -2.6899063817571394,
"zoom": 1,
},
"mapStyle": {},
"interactionConfig": {
"tooltip": {
"enabled": True,
"fieldsToShow": {
"cities": ["Latitude", "Longitude", "URL"]
},
"compareMode": False,
"compareType": "absolute",
}
}
}
}
map_ = KeplerGl(data={"locations": data}, config=config)
keplergl_static(map_)
when I click on a marker on a Kepler map, it shows a tooltip with information about Latitude, Longitude and URL as shown in the image below:
I want to change the link color (field URL) and I want to insert some html code as document into the tooltip.
I tried but it didn’t work. How to I can do it?