I am trying and intend to use the windy map both to appear inside a small widget, as well as appear (increased in size), in a big modal when the expand map button is clicked on the widget.
That would require 2 instances of the map to exist on the page as the application is an SPA and all content is shown on the same page.
I tried implementing the above and although it does seem to be working (both maps are fine), a lot of console errors seem to appear, due to several of the main object's properties W being reinitialized. e.g.
Object W.params already exists
According to the Things to remember in the API Windy API v4 documentation:
There can be only one instance of Windy Map on a page, but you can use multiple instances of Leaflet map on the same page.
Does the above mean that I cannot do what I have in mind? Is this a conditions of use limitation or a technical limitation?
A few questions based on the above:
Are the console errors I'm getting normal behavior?
Are they the reason why we shouldn't be using 2 instances of the map on the same page (due to the global W object being reinitialized?)
Is there a workaround for this and would it be allowed and recommended?