Skip to content
Advertisement

Google Maps API v3 Heatmaps Error: “Cannot read property ‘HeatmapLayer’ of undefined”

I am trying to load a Heatmaps layer onto my google maps, but for some reason I just keep getting the error “Cannot read property ‘HeatmapLayer’ of undefined.”

JavaScript

Here is the jsFiddle: http://jsfiddle.net/9HQ2a/3/

Advertisement

Answer

Add the visualization library to the URL when loading the google maps js.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement