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

    How to keep the plugin pane open when the spot forecast is activated?

    Scheduled Pinned Locked Moved Windy Plugins
    2 Posts 2 Posters 1.0k Views 2 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.
    • johnckealyJ Offline
      johnckealy
      last edited by

      I was tidying up some long-standing bugs with windy-plugin-skewt this week, and I got a request from @stitch to try to keep the SkewT alive when the spot forecast opens. I see that most of the HMTL elements go to "display: none" by default; is there any way to override this behaviour and keep the plugin open?

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

        @johnckealy

        Try:

        bcast.on("pluginOpened",e=>{if (e=="detail") this.open() });
        

        However, if the forecast detail is open, picker.on("pickerOpened",....) will not fire,
        so you have to perhaps use W.map.on("click",e=>...) to get the e.latlng and to make your div display.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Windy Community  |  Powered by excellent NodeBB
        Terms of Use     Privacy Policy     Windy.com