Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login
    1. Home
    2. rmahoney
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Groups 0

    rmahoney

    @rmahoney

    0
    Reputation
    177
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    rmahoney Unfollow Follow

    Latest posts made by rmahoney

    • RE: Adding marker to web page

      Well, looking through the leaflet documentation it appears I need to use something like this:

      L.marker([51.5, -0.09], {icon: greenIcon}).addTo(map).bindPopup("I am a green leaf.");

      Now the questions are, how can I get the wind speed and direction?

      I tried something like this to get the mph but it failed:

      mph=W.overlays.gust.getMetric('mph');

      I'd love to get a little help here.

      Bob

      posted in General Discussion
      R
      rmahoney
    • RE: Adding marker to web page

      Also it would be great to change the font size.

      posted in General Discussion
      R
      rmahoney
    • Adding marker to web page

      I'm not using the embed code but I'd like to use the functionality of the "marker". How do I add that using JS?

      In my function windytymain I have this:

      W.overlays.gust.setMetric( 'mph' );

      What code do I use to get the marker?

      Thanks,

      Bob

      posted in General Discussion
      R
      rmahoney