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



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

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

    I'd love to get a little help here.

    Bob


Log in to reply
 

Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps

Looks like your connection to Windy Community was lost, please wait while we try to reconnect.