markusand / mapboxgl-legend

Add a legend to a mapbox-gl map by parsing layer layout & paint expressions.
ISC License
49 stars 13 forks source link

Tileserver-GL #14

Closed utagawal closed 1 year ago

utagawal commented 1 year ago

Hello,

Is the project compatible with https://openmaptiles.org/ and Tileserver-GL serving mapbox compatible tiles from a Docker container ?

markusand commented 1 year ago

If I'm not mistaken, openmaptiles is providing the source for mapbox. The legend is source agnostic, but reacting at styledata event. As long as you're using mapbox with expressions I can't see a reason why it should't work. You could try and comment back here :)