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

    Add points on map api

    Windy API v4
    3
    3
    812
    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
      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
        Suty Administrator @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
          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
          Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
          NodeBB & contributors, OSM & contributors, HERE maps
          Terms of Use     Privacy Policy