Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Finally Windy API with Leaflet 1.4

    Windy API v4
    5
    5
    4077
    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.
    • ivo
      ivo Administrator 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
      • StuY
        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" >

        ivo 1 Reply Last reply Reply Quote 0
        • ivo
          ivo Administrator @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
            yangyang0821 last edited by

            <div></div>
            
            1 Reply Last reply Reply Quote 0
            • mdodesign
              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
              • First post
                Last post
              Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
              NodeBB & contributors, OSM & contributors, HERE maps
              Terms and Conditions     Privacy Policy