Inconsistent behavior of api.picker.open



  • Hello,
    After upgrade to API v4, and trying to re-enable the weather-picker I observe some problematic behavior.
    The picker sometimes displays only the vertical line and the close "x"-button, but no value-label.
    e5da23e6-f198-43a9-8d5f-2475e5cd0067-image.png
    In JS-console the following warning is generated:

    interpolator: Undefined dTile     lib.js:94
    

    It seems to be mostly happening when having a quite wide map (~2000+ pixels in x direction) while on zoom level 3.
    Redoing the tests on other zoom levels width reduced width of map/window usually works as expected.
    Sometimes it (the value label) seems to also reappear after doing some panning, but have not been successful in identifying exactly how/why that is.
    Tested with Chrome 74.0.3729.131

    Any input on how to proceed is appreciated, thanks.

    Steps to recreate (option 1, MWE):

    https://jsbin.com/tunonufedu/1/edit?html,output

    Steps to recreate (option 2, on live windy map):

    1. Open https://api4.windy.com/
    2. Enable developer tools
    3. Zoom map as far out as possible (level 3)
    4. Move view to (e.g.) 0, 0 (to see the :
    W.map.setView({lat:0, lon: 0})
    
    1. Trigger a "picker":
    W.picker.open({lat: 0, lon: 0})
    

Log in to reply
 

Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps