Skip to content

Instantly share code, notes, and snippets.

@getsudocode
Last active July 17, 2018 15:42
Show Gist options
  • Save getsudocode/512609c0f50141a934ac76b3b965b2ba to your computer and use it in GitHub Desktop.
Save getsudocode/512609c0f50141a934ac76b3b965b2ba to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
#map {
height: 100%;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
let map;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: -34.397, lng: 150.644},
zoom: 8
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment