How to revemo windy object W?
Since I'm using two map instances on my page I would need to know how can I remove windy map object W since I'm getting this error:
tinyrequire DI error: Object W.location already exists undefined
siim last edited by siim
I'm not sure if it is possible.
Use iframe as workaround.
Windy API v4 uses LocalStorage, so using different maps with different settings is complicated.
@siim I used the same "hack" as described here https://community.windy.com/topic/6503/redrawing-or-reinitialising-windyapi-in-a-single-page-app/5
The bad thing about this is that it will load the scripts again every time I load my component (but ok since we're not developing for mobile devices, data usage shouldn't be an issue for now)
Would be cool if the map could be initialized per component or if you would be able to change the options without calling windyInit again.