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

    Console error `Cannot read property 'style' of undefined ` on e._tileLoaded

    Windy API v4
    1
    1
    773
    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.
    • R
      rock7Andy
      last edited by

      Every time a new tile is loaded into windy i am getting Cannot read property 'style' of undefined.

      The offending line is with the windy source code itself.

      If you prettify their code it this block that it seems to throw the error


      _tileLoaded: function() {
      this._tilesToLoad--,
      L.DomUtil.addClass(this._tileContainer, "leaflet-zoom-animated"),
      this._tilesToLoad || (this._tileContainer.style.opacity = 1,
      this._bgBuffer.style.opacity = .3,
      clearTimeout(this._clearBgBufferTimer),
      this._clearBgBufferTimer = setTimeout(this._clearBgBuffer.bind(this), 500),
      this.inMotion || this.redrawFinished())
      },


      _bgBuffer seems to not be defined. does anyone have any idea why this would be?

      Thanks

      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 of Use     Privacy Policy