Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    There is a bug in the windy api.

    Windy API v4
    2
    2
    364
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 위
      위디비
      last edited by

      I asked for isobaric lines on certain pages, but they show up on every page on that server. So I removed isobaric requests from certain pages. But they still show up on every page.

      Why is it like this?
      The isobaric line display was as follows.

      let isPressureLinesActive = false;

      				let store = windyAPI.store;
      				
      			    document.getElementById('toggle-pressure').addEventListener('click', function () {
      			          if (isPressureLinesActive ) {
      			        	  console.log(1111)
      			        	  store.set('isolines', null);  // 등압선(기압선) 비활성화
      			          } else {
      			        	  console.log(2222)
      			              store.set('isolines', 'pressure' );  // 등압선(기압선) 활성화
      			          }
      			          isPressureLinesActive = !isPressureLinesActive;  // 토글 상태 변경
      			      });
      

      Is the request method wrong?
      Is there any other way to request it?

      SutyS 1 Reply Last reply Reply Quote 0
      • SutyS
        Suty Administrator @위디비
        last edited by

        @위디비 Hi, could you please use string 'off', instead of null value?

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
        NodeBB & contributors, OSM & contributors, HERE maps
        Terms of Use     Privacy Policy