brambow / elements

Themeable React components for map-based web applications
https://cartolab-gis.github.io/elements/
MIT License
69 stars 11 forks source link

fix: resolve layerList checkbox and legend state for baseType = button #51

Closed tannerjt closed 3 years ago

tannerjt commented 3 years ago

Issue was stemming from call if map.once('idle', ... update state ...). When baseType = 'button', this isn't called until after the map is moved. This update is now called immediately for button baseTypes and still maintains the existing 'idle' callback for other baseTypes.