@sngy_chan I find my mistake! thank you
Best posts made by sngy_chan
-
RE: How can I use leaflet-active-area plugin in WindyMap?
Latest posts made by sngy_chan
-
react.js / How do I resolve console errors(Object.W already exists) when moving pages in a single page application?
Hello, I am using windy map in react.js (+typescript).
There is no problem with the first load. However, if you go to another page and return to the page with the windyMap, you will see an error like the picture.
so I referring this link
( https://community.windy.com/topic/6503/redrawing-or-reinitialising-windyapi-in-a-single-page-app/3 )
and added the code before Function windyInit()//@ts-ignore if (!window.copy_of_W) { window.copy_of_W = { ...window.W } } if (window.W.windyBoot) { window.W = { ...window.copy_of_W } } windyInit(options, (windyAPI)) =>{ const { map, picker, store } = windyAPI ... }
But error not resolved.
Is there any other solution?
No matter how much I looked on the Internet, I could only find a way to link.Please help me...
-
RE: How can I use leaflet-active-area plugin in WindyMap?
@sngy_chan I find my mistake! thank you
-
How can I use leaflet-active-area plugin in WindyMap?
I want to use leaflet-active-area plugin in WindyMap.
How Can i do that?Link : https://github.com/Mappy/Leaflet-active-area
I tried
// add script < script src="L.activearea.js"> // add code windyInit(options, (windyAPI: any) => { const { map, overlays } = windyAPI .... map.setActiveArea('activeArea', true, true) } // add css .activeArea { position: absolute; top: 50px; left: 50px; right: 50px; height: 200px; border: 3px solid red; z-index: 1100; }
but it's not work
Plz Help Me!
-
Can I remove Logo in professional? and Can I Customize wind animation?
Hello, I have two questions.
-
If I use the professional version, can I remove Windy Logo from my service?
-
Can I customize wind animation with code? (Customized to the same degree as in the photo)
-
-
RE: Is any way to control "map object" outside WindyInit function? Plz Help Me
@sngy_chan said in Is any way to control "map object" outside WindyInit function? Plz Help Me:
Please help me.
When I click the button (outside of map), I want to flyto() to the desired location, but to use this function, windyInit() will be executed again and the map will be reloaded.
windyInit(options, windyAPI => {
const {map} = windAPI;
map.flyTo([xx,xx],x). // I want this when otherButton Clicked!
})Is there a way to use the map object outside the windowInit function?
Or
Is there any other way to use the flyTo() function without reloading?I am currently developing by React.js.
-
Is any way to control "map object" outside WindyInit function? Plz Help Me
Please help me.
When I click the button (outside of map), I want to flyto() to the desired location, but to use this function, windyInit() will be executed again and the map will be reloaded.
Here's my code :
const [moveHere,setMoveHere] = useState([])windyInit(options, windyAPI => {
const {map} = windAPI;
map.flyTo([xx,xx],x)
})Is there a way to use the map object outside the windowInit function?
Or
Is there any other way to use the flyTo() function without reloading?I am currently developing by React.js.
-
How do I know that 500 requests a day have been completed?
How do I know that 500 requests a day have been completed in the windy api-trial version?
If there is an error message in the console window, which phrase will be displayed in the console window?
-
Question for Professional version - more API Documents?
Hello
I'm Users who want to try Map Forecast API - Trial and purchase the Professional version.
I understand that using the Professional version, Trial expands various features (model, layer, etc.).
Then, If i buy Proffesional version, are you giving us API documents for newly added functions?