Windy Community

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

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

    Windy Plugins
    2
    2
    277
    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.
    • johnckealy
      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?

      rittels 1 Reply Last reply Reply Quote 0
      • rittels
        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
        Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
        NodeBB & contributors, OSM & contributors, HERE maps
        Terms and Conditions     Privacy Policy