How to call a callback once the menu is opened or closed?
broadcast.on('pluginOpend', () => {
console.log('test');
});
doesn't work
How to call a callback once the menu is opened or closed?
broadcast.on('pluginOpend', () => {
console.log('test');
});
doesn't work
Is it possible to change the number of days displayed in forecast progress bar to fe. 5 days only? Also is it possible to change the interval of the animation. Instead of using 1 hour interval is it possible to use 1 day interval?
Is it possible to delete the following console log from the init script? I'm initializing the map as SPA component multiple times and this log is polluting my console.
@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.
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
Is it possible to include 2 or more windy maps on page? Each of the maps would work different so it's not just a matter of displaying same default content on two places. For example I would like to include 2 maps where I have control of configuration on each instance. I'm concerned because you have to include windy wrapper which is using an id, meaning I can only have one on the page.
@siim perfect this works yes. Thank you!
Ok so redrawFinished will be called every time the forecast changes? How do I get back the object with the timestamp then?
Is it possible and how to trigger event which returns timestamp when forecast animation is playing or when you click on part of it in the forecast bar?
I would like to use the timestamp to fetch some of my own data which I can use while the animation plays.
@gkikas-lgpz Thanks I accidentally hide the css class. Is there a way to hide the city labels as well? I do not need those