• 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?



  • Also it would be great to change the font size.

  • 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:


    I'd love to get a little help here.


Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps
Terms and Conditions     Privacy Policy