ham-systems / temperature-map-gl

Minimalist heat map Javascript library using WebGL
MIT License
16 stars 5 forks source link

WebGL Errors #1

Open triDcontrols opened 6 years ago

triDcontrols commented 6 years ago

Hi,

Thanks for the library, I know this has been over a year, but wanted to ask what these errors are all about, the errors show up on initial page load, any subsequent page loads, no errors.

The Code: https://hastebin.com/esuzebunox.js

web_gl_error

and then after a refresh, the colors are working and nothing is logged in the console.

web_gl_2

ekchatzi commented 6 years ago

Hello,

I am not sure why this happens, but the first thing I would guess is the first time the element where the canvas is bound is not ready. Try adding some delay with setTimeout