Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    featureGroup not show in windy

    Developers
    3
    4
    320
    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.
    • A
      ayo0422 last edited by

      Hi, I am new to windy.

      I am trying to draw semi circle on map, so i am using an extension called 'Leaflet-semicircle'.

      but when i add the semi circles into a featureGroup, then add featureGroup into M.map, it dosen't anything on windy.

      Is something wrong?

      windyInit(options, function (windyAPI) {
      
        var map = windyAPI.map;
        var latlng = [0, 0];
      
        function rangerings (latlng, opts) {
          opts = L.extend({
              count: 8,
              interval: 1000,
              direction: 120,
              spread: 60
          }, opts);
      
          var layer = L.featureGroup();
          for (var i = 1; i 
      A 1 Reply Last reply Reply Quote 0
      • A
        ayo0422 @ayo0422 last edited by

                L.semiCircle(latlng, {
                    radius: i * opts.interval,
                    fill: false,
                    color: '#4285f44a',
                    weight: 5
                }).setDirection(opts.direction, opts.spread).addTo(layer);
            }
            return layer;
          }
        
          rangerings(latlng).addTo(map).bringToFront();
        
        }
        
        rittels 1 Reply Last reply Reply Quote 0
        • ivo
          ivo Administrator last edited by

          L.featureGroup is supported

          1 Reply Last reply Reply Quote 0
          • rittels
            rittels Code contributor @ayo0422 | Premium last edited by

            @ayo0422

            Maybe the problem is the color, your color is very faint on wind 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 and Conditions     Privacy Policy