In Google Maps Javascript API for heat maps the default gradient displays red color in areas of higher density and changes to red as intensity decreases. In my application I need to show areas of higher intensity in green and lower intensity in red. I tried printing the default gradient values heatmap.get('gradient')
only to get 'undefined' value. How can I get the default value of Google Maps API heat map gadient.
[GIS] Get the inverse of default heat map gradient in Google Maps Javascript API
google mapsheat mapjavascript
Best Answer
For anyone who needs it, here's the default gradient: