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.
Best posts made by gregora
-
Include 2 or more windy maps on page
-
RE: Trigger event on forecast bar change
@siim perfect this works yes. Thank you!
-
RE: How to revemo windy object W?
@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.
-
Forecast progress bar length and interval
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?
Latest posts made by gregora
-
How to listen for plugin-menu event
How to call a callback once the menu is opened or closed?
broadcast.on('pluginOpend', () => {
console.log('test');
});doesn't work
-
Forecast progress bar length and interval
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?
-
Remove "Welcome to Windy API v4." console log
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.
-
RE: How to revemo windy object W?
@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.
-
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
-
Include 2 or more windy maps on page
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.
-
RE: Trigger event on forecast bar change
@siim perfect this works yes. Thank you!
-
RE: Trigger event on forecast bar change
Ok so redrawFinished will be called every time the forecast changes? How do I get back the object with the timestamp then?
-
Trigger event on forecast bar change
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.
-
RE: Add wind speed legend
@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