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



  • 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?


  • Code contributor

    @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.


Log in to reply
 

Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps
Terms and Conditions     Privacy Policy