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

    WPF WebBrowser control

    Developers
    2
    3
    449
    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.
    • T
      three60energy
      last edited by

      Hello I'm trying to display a simple windy.com map on the WPF WebBrowser control
      The code is :

          <div></div>
      

      however i'm getting error script error

      T 1 Reply Last reply Reply Quote 0
      • T
        three60energy @three60energy
        last edited by

        
            < head > 
                < meta
                    name="viewport"
                    content="width=device-width, initial-scale=1.0, shrink-to-fit=no"
                / > 
                < script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js" > < /script > 
                < script src="https://api.windy.com/assets/map-forecast/libBoot.js" > < /script > 
                < style > 
                    #windy {
                        width: 100%;
                        height: 100%; }
                < /style > 
            < /head > 
            < body > 
                < div id="windy" > < /div > 
                < !--< script src="script.js" > < /script > -- > 
        
                < script  > 
        
                    var options = {
                        // Required: API key
                        key: 'replacekey', // REPLACE WITH YOUR KEY !!!
        
                        // Put additional console output
                        verbose: true,
        
                        // Optional: Initial state of the map
                        lat: 3.5487142,
                        lon: 112.063852,
                        zoom: 10,
                    };
        
                    // Initialize Windy API
                    windyInit(options, windyAPI = >  {
                        const { map } = windyAPI;
                    });
        
               
                < /script > 
            < /body > 
        < /html > 
        
        KorinaK 1 Reply Last reply Reply Quote 0
        • KorinaK
          Korina @three60energy
          last edited by

          @three60energy Hello, did you generate a test key?

          Korina

          1 Reply Last reply Reply Quote 0
          • 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