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

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

    Scheduled Pinned Locked Moved Windy API v4
    1 Posts 1 Posters 883 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.
    • R Offline
      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
      Windy Community  |  Powered by excellent NodeBB
      Terms of Use     Privacy Policy     Windy.com