Skip to content

Instantly share code, notes, and snippets.

@nasminspy
Created June 8, 2016 10:51
Show Gist options
  • Save nasminspy/b4a4ee32bf0dedb436574074227bd7e4 to your computer and use it in GitHub Desktop.
Save nasminspy/b4a4ee32bf0dedb436574074227bd7e4 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<style>
#map {
width: 500px;
height: 400px;
}
</style>
<script src="https://maps.googleapis.com/maps/api/js"></script>
<script>
function initialize() {
var mapCanvas = document.getElementById('map');
var mapOptions = {
center: new google.maps.LatLng(44.5403, -78.5463),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(mapCanvas, mapOptions)
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="map"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment