Skip to content

Instantly share code, notes, and snippets.

@elmariachi111
Created May 4, 2013 22:48
Show Gist options
  • Save elmariachi111/5519031 to your computer and use it in GitHub Desktop.
Save elmariachi111/5519031 to your computer and use it in GitHub Desktop.
Rendering Heatmaps in GMaps
var brazil = new google.maps.LatLng(-18.771115, -42.758789);
map = new google.maps.Map(document.getElementById('map-canvas'), {
center: brazil,
zoom: 5,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
layer = new google.maps.FusionTablesLayer({
query: {
select: 'LATITUDE',
from: '0ILwUgu7vj0VSZnVzaW9udGFibGVzOjEzNjcwNQ'
},
heatmap: {
enabled: true
}
});
layer.setMap(map);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment