maptiler / tileserver-gl

Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
https://tileserver.readthedocs.io/en/latest/
Other
2.24k stars 639 forks source link

Is there a way to add a legend ? #964

Open utagawal opened 1 year ago

utagawal commented 1 year ago

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 ?

acalcutt commented 1 year ago

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

utagawal commented 1 year ago

Yes, exactly !

utagawal commented 1 year ago

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