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

    Add points on map api

    Scheduled Pinned Locked Moved Windy API v4
    3 Posts 3 Posters 1.1k Views 1 Watching
    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.
    • hong joshH Offline
      hong josh
      last edited by

      Hi, I have 2 questions:

      1. For map api (professional) integration, can I add my points on the layer?
      2. can i use css to change map color for specific dataset, like we can do on Windy.com?

      Thanks.

      SutyS 1 Reply Last reply Reply Quote 0
      • SutyS Suty moved this topic from Your Feedback and Suggestions on
      • SutyS Offline
        Suty Windy Staff @hong josh
        last edited by

        Hi @hong-josh

        1. How do you mean it exactly? You can adjust the map integration on your end programatically, however, we don't have any official documentation according to that.
        2. Unfortunately, it is not possible to handle this with CSS, but you can check our API pages where it is described how all works.
        1 Reply Last reply Reply Quote 0
        • A Offline
          Atanu Mazumdar
          last edited by

          Are you looking something like that?

          const { map, picker, utils, broadcast, store } = windyAPI;

          const customIcon = L.icon({
              iconUrl: 'wPin.png',
              iconSize: [18, 18],
          });
          
          const markerOptions = {title: "myPoint", icon: customIcon};
          
          const marker = new L.Marker(**[lat**,**lon**],markerOptions).addTo(map);
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Windy Community  |  Powered by excellent NodeBB
          Terms of Use     Privacy Policy     Windy.com