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

    Inconsistent behavior of api.picker.open

    Scheduled Pinned Locked Moved Windy API v4
    1 Posts 1 Posters 707 Views 1 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.
    • M Offline
      michaelodden
      last edited by michaelodden

      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})
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Windy Community  |  Powered by excellent NodeBB
      Terms of Use     Privacy Policy     Windy.com