Closed cpunekar closed 8 years ago
Please provide your initialisation code so that we can help?
var myVar = L.heatLayer(dataPoints, { max: 5.0, radius: 12, blur: 25, maxZoom: 11, gradient: { 0.4: 'blue', 1: 'lime', 5.0: 'red' } });
I'm so sorry to write in a closed thread, but i'm having the same problem. Was there any solution, @cpunekar ?
Thanks in advice for any help.
When I set the max value to 5, I am getting following error in my browser:
Uncaught IndexSizeError: Failed to execute 'addColorStop' on 'CanvasGradient': The provided value (5) is outside the range (0.0, 1.0)