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

Inconsistent panels order #5

Closed markusand closed 3 years ago

markusand commented 3 years ago

Layers are stacked on the map in the order they are added (first on the bottom and last on the top) while Legend panels are added in sequential order (last layer panel at the bottom). This is counter-intuitive and the Legend panels should follow the same stacking order as map layers.