dburles / meteor-google-maps

🗺 Meteor package for the Google Maps Javascript API v3
https://atmospherejs.com/dburles/google-maps
MIT License
196 stars 49 forks source link

Possible to display a heatmap? #139

Closed Broham closed 7 years ago

Broham commented 7 years ago

I've been following googles documentation to create a heatmap, but with this line:

new google.maps.visualization.HeatmapLayer(...)

it throws:

Cannot read property 'HeatmapLayer' of undefined

Is it possible to create a heatmap using this?

Broham commented 7 years ago

For those wondering you can pass in options through the load function and they will be appended to the url that is used to load the api. Since in this case you simply need to include, libraries=heatmap when referencing the api, you can do this to include the heatmap library:

GoogleMaps.load({ libraries: 'visualization' })