Last active
June 29, 2019 19:45
-
-
Save heronyang/993dfeba007f261f577a8896453d0250 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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