Navigation

    Windy Community

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

    How to use windy in Angular

    Windy API v4
    1
    2
    173
    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.
    • I
      incuubus last edited by

      Hi there,
      I'm trying to implement the windy map into an Angular IO app but i can't really figure out how to do it. I tried to adjust the "Hello World" tutorial (https://api4.windy.com/examples/hello-world/) so it would work for Angular.
      This is what my code looks like:
      app.component.html:

      
        
        
        
      
      <div></div>
      
      

      app.component.css

      #windy {
        width: 100%;
        height: 300px;
      }
      
      

      I can't figure out how the app.component.ts should look like. How can I use this windyInit function? Do I have to write it by myself?

      It would be great if someone could show me an example implementation of a windy map in Angular IO. I'm quite new to programming javascrip, html etc. sothis would be a great help.

      thanks in advance,

      David

      1 Reply Last reply Reply Quote 1
      • I
        incuubus last edited by

        Addition: Somehow my code for ap..component.html didnt make it into the post so here is the code as image:
        appcomponentts.png

        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 and Conditions     Privacy Policy