Skip to content

Instantly share code, notes, and snippets.

@dmehrotra
Last active January 19, 2016 19:56
Show Gist options
  • Save dmehrotra/be3712e37aeba29d7396 to your computer and use it in GitHub Desktop.
Save dmehrotra/be3712e37aeba29d7396 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<script src="https://cdn.socket.io/socket.io-1.3.5.js"></script>
<title>Simple markers</title>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
#map {
height: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var map;
function init() {
map = new google.maps.Map(document.getElementById('map'), {
zoom: 4,
center: {lat: 40.7127, lng: -73.0059}
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=init">
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment