Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login
    1. Home
    2. sngy_chan
    S
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 6
    • Posts 8
    • Groups 0

    sngy_chan

    @sngy_chan

    1
    Reputation
    5
    Profile views
    8
    Posts
    1
    Followers
    0
    Following
    Joined
    Last Online

    sngy_chan Unfollow Follow

    Best posts made by sngy_chan

    • RE: How can I use leaflet-active-area plugin in WindyMap?

      @sngy_chan I find my mistake! thank you

      posted in Developers
      S
      sngy_chan

    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.
      windyError2.png

      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...

      posted in Windy API v4
      S
      sngy_chan
    • RE: How can I use leaflet-active-area plugin in WindyMap?

      @sngy_chan I find my mistake! thank you

      posted in Developers
      S
      sngy_chan
    • 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
      스크린샷 2022-04-22 오후 2.55.26.png

      Plz Help Me!

      posted in Developers
      S
      sngy_chan
    • Can I remove Logo in professional? and Can I Customize wind animation?

      Hello, I have two questions.

      1. If I use the professional version, can I remove Windy Logo from my service?

      2. Can I customize wind animation with code? (Customized to the same degree as in the photo)

      스크린샷 2022-03-25 오전 9.56.33.png

      posted in Developers
      S
      sngy_chan
    • 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.

      posted in Developers
      S
      sngy_chan
    • 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.

      posted in Developers
      S
      sngy_chan
    • 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?

      posted in Developers
      S
      sngy_chan
    • 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?

      posted in Windy API v4
      S
      sngy_chan