Hello @blq !
Thank you very much, this really works!
Please drop a glance at our way of shutting the map down.
https://community.windy.com/post/122063
Posts made by Kostya Net
-
RE: Error by `gl-particles.js`
-
RE: Way to re-init the map: !!! Repeatedly calling "windyInit"...
Hello @marekd!
Totally agree with you that this is an ugly hack. And unfortunately we have no other options since you introduced theRepeatedly calling "windyInit"...
warning.Could you please provide a simple way to gracefully shut down the map by calling a standard LeafletJS method
map.remove()
because you use Leaflet under the hood (and expose this method). I really think it's not a big deal, but this will save us, your subscribers, gallons of our blood.Now if the method is called it is throwing a bunch of errors.
https://community.windy.com/topic/21973/error-by-gl-particles-js/2?_=1664174146851 -
RE: Error by `gl-particles.js`
@Korina thanks, but it won't work for us since we draw markers, polylines, polygons, show popups and tooltips. I sincerely cannot understand WHY you do not want to make this simple fix.
People pay money for their subscriptions to your service, so they can demand some features to work properly.
-
RE: Way to re-init the map: !!! Repeatedly calling "windyInit"...
Hello @KimDotSe !
Thank you for your reply!
We're hacking it like so, but still some windy related errors will be thrown in the console. Even though those errors do not affect the normal flow of things and allow the map re-initialization, I believe it could be much better and safer if the Windy team kindly fixes the following issue https://community.windy.com/topic/21973/error-by-gl-particles-js?_=1664174146851.
Guys, please take a look at that^^^ @Korina , @marekdfunction clearWindyOff() { window.W = void 0; window.wError = void 0; window.windyInit = void 0; window.windySentErrors = void 0; [...document.querySelectorAll('script[src*="windy"]')] .forEach((el) => el.remove()); }
-
RE: An API method to destroy the map instance
@Korina thanks, but it's useless(((
It'd be better if your team could make this work properly:
https://community.windy.com/topic/21973/error-by-gl-particles-js/2?_=1664174146851 -
RE: Error by `gl-particles.js`
Hey guys! Any reply? Should it be ever fixed?
Without
map.remove()
being properly executed we cannot reinitialize the map in out SPA application. Please pay your attention to this issue. -
An API method to destroy the map instance
Hi Windy!
It'd be nice having a method which would gracefully stop the map and totally remove all the map related variables, i.e. would destroy the map instance. It would be of a great help for those customers who use Windy on their SinglePageApplications and are facing a problem with the map re-initialization like us, at Fishfacts BV.
Now, calling
map.remove()
causes error reports in a browser console.Please also see the related topics:
https://community.windy.com/topic/21968/way-to-re-init-the-map-repeatedly-calling-windyinit/4
https://community.windy.com/topic/21973/error-by-gl-particles-js/3Thanks!
-
Error by `gl-particles.js`
Hi! When trying to shut down the map executing
map.remove()
, the following error is being thrown multiple times:The error is being constantly thrown with a very short period, probably each 10ms. Only the page reload stops it.
Thank you!
-
Way to re-init the map: !!! Repeatedly calling "windyInit"...
Hi! We're using a paid plan at Fishfacts BV in our React driven web site. In our case we expose to the users an ability to switch between different map layers, where some of the layers belong to Windy but others are just plain Leaflet. So when switching between the layers we obviously need to reinitialize the maps. While it's safe for Leaflet map, the Windy map throws a warning, introduced last month.
!!! Repeatedly calling "windyInit" of an already initialized API is an unsupported functionality and will be removed in future versions!
So if there's any safe way to re-initialize Windy map? Or is it possible to completely destroy the current map instance so that the next time we can safely initialize the map again without any warnings being thrown?
Thank you!
-
RE: Particles animation broken
@marekd said in Particles animation broken:
@kostya-net Sorry for the trouble. We are unable to reproduce the error. Can you please PM me the address where I can debug the error?
Unfortunately, former version is not available.Please check your PM
-
RE: Particles animation broken
By the way, can we consume a former version of the API while this one is not working well for us?
-
Particles animation broken
Hey guys!
We're experiencing a following exception which breaks the particles animation
This problem just started appearing yesterday after v36 had been released.
And here's the localStorage state, which might come in handy