astrosat / windgl

A WebGL wind particle simulation as a Mapbox custom layer
https://astrosat.github.io/windgl/
ISC License
170 stars 45 forks source link

Uncaught TypeError: Cannot read property 'uMax' of null #22

Open pandeyshashank opened 4 years ago

pandeyshashank commented 4 years ago

windgl.esm.js:252 Uncaught TypeError: Cannot read property 'uMax' of null at SampleFill.buildColorRamp (windgl.esm.js:252) at SampleFill.setSampleFillColor (windgl.esm.js:444) at SampleFill._setPropertyValue (windgl.esm.js:232) at windgl.esm.js:341 at Array.forEach () at SampleFill._initialize (windgl.esm.js:337) at SampleFill.setWind (windgl.esm.js:279) at windgl.esm.js:1064 at Array.forEach () at windgl.esm.js:1063 at XMLHttpRequest.xhr.onload (windgl.esm.js:1034)

akshat10jain commented 4 years ago

I also got the same issue . You can resolve the same by using setTimeout. I also did the same thing.