tileserver-gl icon indicating copy to clipboard operation
tileserver-gl copied to clipboard

Is there a way to add a legend ?

Open utagawal opened this issue 10 months ago • 3 comments

On the standad implementation of tileserver-gl with maplibre it would be great to have a way to show a button to open an html file with the legend.

The legend-file to open would be specified in the config file.

Is this already possible or could it be considered as new feature ?

utagawal avatar Aug 28 '23 14:08 utagawal

Do you mean something similar to what you see when you 'inspect' a data source? the thing on the right side that has the colors for each kind of layer?

image

acalcutt avatar Aug 31 '23 23:08 acalcutt

Yes, exactly !

utagawal avatar Sep 01 '23 06:09 utagawal

But with a link to an html file so you don't have to inject any process to parse the Json style file

utagawal avatar Sep 06 '23 08:09 utagawal