Created
January 27, 2014 22:04
-
-
Save anonymous/8658306 to your computer and use it in GitHub Desktop.
This file contains 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
html { height: 100% } | |
body { | |
height: 100%; | |
margin: 0; | |
padding: 0 } | |
#map-canvas { | |
height: 100%; | |
/*height: 480px; | |
width: 640px;*/ | |
} |
This file contains 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
<!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> |
This file contains 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 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