mapcomponents / react-map-components-maplibre

A react component framework for declarative GIS application development.
MIT License
116 stars 18 forks source link

fix: incorrect property access #181

Closed andrejilderda closed 3 weeks ago

andrejilderda commented 3 weeks ago

In the if above line 31 we check for mapHook.map?.style?._layers but below mapHook.map.map.style._layers is accessed. The latter is changed to the correct property to prevent a runtime error on cleanup.

Fixes #180.

andrejilderda commented 3 weeks ago

Thanks for the merge @cioddi ! Any idea when a new release is planned?

cioddi commented 3 weeks ago

Thank you for your contributions! The latest release 1.0.7 already contains this PR`s changes.

andrejilderda commented 3 weeks ago

Ah I see, great. I can confirm it works perfectly now. Thanks a lot for the swift merge & release!