Skip to content

Instantly share code, notes, and snippets.

@heronyang
Last active June 29, 2019 19:45
Show Gist options
  • Save heronyang/993dfeba007f261f577a8896453d0250 to your computer and use it in GitHub Desktop.
Save heronyang/993dfeba007f261f577a8896453d0250 to your computer and use it in GitHub Desktop.
function map_loaded_handler() {
console.log("Map is loaded");
var taiwan = new google.maps.LatLng(23.7115779, 121.0267781);
var map = new google.maps.Map(document.getElementById("map"), {
center: taiwan,
zoom: 8
});
// Adds heatmap layer
var layer = new google.maps.FusionTablesLayer({
query: {
select: "location",
from: "<FUSION_TABLE_ID>"
},
heatmap: {
enabled: true
}
});
layer.setMap(map);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment