mapgl icon indicating copy to clipboard operation
mapgl copied to clipboard

Tying Hover to Legend

Open stevenpandrews opened this issue 3 months ago • 1 comments

Datawrapper has a nice feature where hovering over an item on a map also indicates where the value is on the legend (Example: https://www.datawrapper.de/maps/choropleth-map). The robots and I came up with a facsimile of this idea in a maplibre map that was created directly in html. Is this sort of legend something that's possible to implement as an alternative add_legend() sort of statement?

repro.html

stevenpandrews avatar Sep 11 '25 19:09 stevenpandrews

oh that's cool! nowadays, all things are possible to implement. I've also had long-term thoughts about linking legends with map data allowing for legends as clickable filters (like you can do in plotly).

walkerke avatar Sep 11 '25 20:09 walkerke