Skip to content

Instantly share code, notes, and snippets.

Created January 27, 2014 22:04
Show Gist options
  • Save anonymous/8658306 to your computer and use it in GitHub Desktop.
Save anonymous/8658306 to your computer and use it in GitHub Desktop.
html { height: 100% }
body {
height: 100%;
margin: 0;
padding: 0 }
#map-canvas {
height: 100%;
/*height: 480px;
width: 640px;*/
}
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Basic map" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?v=3.14&sensor=false&key=AIzaSyA5UPXabiWwdiV9mOwxsZSinfFIE-zUu3g">
</script>
</head>
<body>
<div id="map-canvas"/>
</body>
</html>
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(53.3885847, -1.4747644),
zoom: 17
};
var map = new google.maps.Map(document.getElementById("map-canvas"),mapOptions);
}
google.maps.event.addDomListener(window, 'load', initialize);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment