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

    Finally Windy API with Leaflet 1.4

    Scheduled Pinned Locked Moved Windy API v4
    5 Posts 5 Posters 6.0k Views
    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.
    • ivoI Offline
      ivo Windy Staff
      last edited by ivo

      We have just released API v4 that is using Leaflet v 1.4

      So far it is 100% compatible with old API, just replace Leaflet 0.7 with Leaflet 1.4. You can fix it in 5 minutes. Old API will be discontinued 25.5.2019. Details how to do it at https://api4.windy.com

      We also require that you fill name of your App so we could track API usage. Please associate your API key with name of your app at this page: https://api4.windy.com/api-key/

      1 Reply Last reply Reply Quote 3
      • StuYS Offline
        StuY | Premium
        last edited by ivo

        Ivo's note: this was already fixed so code below is not necessary.

        Leaflet 1.4 CSS codes contain serious BUG that we have fixed in our CSS build. So please do not include Leaflet's CSS to your html.

        Edited by ivo


        Thanks for all your efforts updating the API!

        I found that, after switching to Leaflet v1.4.0, I now need to reference the Leaflet CSS, otherwise the URLs of marker icons are wrong, and the markers do not render correctly. I just needed to add one line in the header of my page:

        < link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" >

        ivoI 1 Reply Last reply Reply Quote 0
        • ivoI Offline
          ivo Windy Staff @StuY
          last edited by

          @StuY Good point. Tis should be fixed soon, so external CSS will not be needed.

          1 Reply Last reply Reply Quote 0
          • Y Offline
            yangyang0821
            last edited by

            <div></div>
            
            1 Reply Last reply Reply Quote 0
            • mdodesignM Offline
              mdodesign
              last edited by

              Are you going to support newer versions of Leafjet or fix the issues so that a Leaflet OSM and Windy map can be displayed on the same page?

              Thanks

              1 Reply Last reply Reply Quote 2
              • marekdM marekd unpinned this topic on
              • First post
                Last post
              Windy Community  |  Powered by excellent NodeBB
              Terms of Use     Privacy Policy     Windy.com