watergis / maplibre-gl-legend

This module adds legend control which is able to create legend panel from mapbox style to maplibre-gl-legend
https://maplibre-gl-legend.water-gis.com/
MIT License
31 stars 7 forks source link

Layer legends don't show up on startup #5

Closed geraldo closed 11 months ago

geraldo commented 1 year ago

Layer legends don't show up on startup, but do appear after checking and unchecking "Only rendered" checkbox and then work like expected. This does happen both with activated and deactivated option onlyRendered and is independent of other options.

This happens both on Chrome and Firefox using latest maplibre-gl-js 2.4.0 with maplibre-gl-legend 1.2.7.

PS: Here a little example to show this error.

JinIgarashi commented 11 months ago

@geraldo I think this was also solved by https://github.com/watergis/maplibre-gl-legend/pull/19. Please check the latest version