Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login
    1. Home
    2. CodeSpent
    C
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Groups 0

    CodeSpent

    @CodeSpent

    3
    Reputation
    53
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    CodeSpent Unfollow Follow

    Best posts made by CodeSpent

    • RE: Windy API4 - L.control

      @silvestrejose I think I found the issue you're having, if its the same as mine. My code was all correct, my layers were constructed, everything was fine. I went and built a barebones Leaflet map and added layer control with no issue, so I couldn't figure it out. Eventually I cleared all my code and started fresh and when inspecting I noticed my control div greyed out, sure enough it had a display: none; rule in Windy's CSS which isn't documented anywhere. I didn't even think about this and feel kind of silly for it.

      #windy #map_container .leaflet-control-container {
      display: none;
      }

      So you'll just have to override this rule and all will be well in the world. :)

      posted in Windy API v4
      C
      CodeSpent

    Latest posts made by CodeSpent

    • RE: Windy API4 - L.control

      @silvestrejose I think I found the issue you're having, if its the same as mine. My code was all correct, my layers were constructed, everything was fine. I went and built a barebones Leaflet map and added layer control with no issue, so I couldn't figure it out. Eventually I cleared all my code and started fresh and when inspecting I noticed my control div greyed out, sure enough it had a display: none; rule in Windy's CSS which isn't documented anywhere. I didn't even think about this and feel kind of silly for it.

      #windy #map_container .leaflet-control-container {
      display: none;
      }

      So you'll just have to override this rule and all will be well in the world. :)

      posted in Windy API v4
      C
      CodeSpent
    • RE: Windy API4 - L.control

      Do you have any working examples? I'm not getting any errors, but the control is not drawing. Would love to see a use case with Windy for reference as I created a sandbox barebones leaflet map with no problems adding control.

      posted in Windy API v4
      C
      CodeSpent