Add a "legend" widget for path layers
This is just a pie-in-the-sky feature proposal.
Maps often have legends to distinguish different border, travel paths, etc. I propose a widget that can automagically draw a small reference sample of the stroke/fill of a layer, into a human-readable table. Something like ShumateLegend
with simple API along the lines of:
shumate_legend_add_layer()
shumate_legend_remove_layer()
shumate_legend_clear()
To be useful, layers would have to be named of course. A property could be added to ShumateLayer
, or an API like GtkStack
could be used ala gtk_stack_add_named()
/gtk_stack_add_titled()
.
As a bonus, the legend could be an interactive widget to allow showing/hiding layers.