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

    Adding markers dynamically using javascript

    Windy API v4
    1
    2
    561
    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.
    • D
      darl4
      last edited by

      Hi friends,

      I need to be able to add markers into the windy map dynamically using javascript without reloading the map.

      I am using the windy APIs and leaflet in conjunction.

      What I need is to be able to add a marker to the already loaded map (sort of like what you can do with the google maps APIs) without having to call the map function every time.

      I have a dropdown menu that calls a javascript function that should add the new marker to the map.

      I hope there is a simple way to do this. I appreciate the help

      D 1 Reply Last reply Reply Quote 0
      • KorinaK Korina moved this topic from General Discussion on
      • D
        darl4 @darl4
        last edited by

        @darl4 for now, I am temporarily creating nested arrays to feed the map function before the map is loaded, it is not the most efficient way of doing it but it is a solution. That means I need to reload the function every time I add or remove a marker. This is why I wanted to dynamically add or remove markers to the map. TY for any help!

        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