python-visualization / folium

Python Data. Leaflet.js Maps.
https://python-visualization.github.io/folium/
MIT License
6.89k stars 2.22k forks source link

Customize Timestampedgeojson legend #1860

Open Celtics33 opened 9 months ago

Celtics33 commented 9 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I have not see a way to customize the API somehow to be able to add a custom label or container that can hold a part of the date(e.g. Year) as the time-lapse is playing. The year will update from 2017 to 2018 as the visualization is playing.

Describe the solution you'd like A clear and concise description of what you want to happen.

Being able to extract the year into its own container on the final time-lapse visualization.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

I did some research into the API and did not see a solution. I am not sure if there is an underlying solution using JavaScript from python.

Additional context image

Implementation folium is maintained by volunteers. Can you help make a PR if we want to implement this feature?

Celtics33 commented 9 months ago

Something like this example with the year in the corner :

image