sakitam-fdd / wind-layer

:flags: :rocket: wind-layer | a openlayers && maptalks && amap && bmap && leaflet && mapbox-gl && maplibre-gl extension like windy.com for weather visualization
https://sakitam-fdd.github.io/wind-layer/
Other
510 stars 139 forks source link

Issues with toggling the wind layer #215

Closed arthuroaraujo closed 2 months ago

arthuroaraujo commented 3 months ago

I'm facing an issue while using the addLayer and removeLayer functions as described in the example provided at https://blog.sakitam.com/wind-layer/guide/leaflet.html. In the example, the same issue I'm experiencing is occurring. For instance, if we start with the wind layer and disable it, upon trying to re-enable it, it won't display on the screen. I would like to understand how to resolve this issue or if there's an alternative to ensure that the wind layer is properly displayed when re-enabled. Thank you in advance for any help or guidance.

sakitam-fdd commented 2 months ago

@arthuroaraujo fixed on leaflet-wind@1.2.2