Created
March 12, 2013 15:27
-
-
Save anonymous/5143865 to your computer and use it in GitHub Desktop.
Simple example of using gist + Google Maps AIzaSyB3WDbJuoc6iqUEQ7ZkiQWHw6eqO5Os8Zc
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="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; margin: 0; padding: 0 } | |
#map-canvas { height: 100% } | |
</style> | |
<script type="text/javascript" | |
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB3WDbJuoc6iqUEQ7ZkiQWHw6eqO5Os8Zc&sensor=FALSE"> | |
</script> | |
<script type="text/javascript"> | |
function initialize() { | |
var mapOptions = { | |
center: new google.maps.LatLng(-34.397, 150.644), | |
zoom: 8, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}; | |
var map = new google.maps.Map(document.getElementById("map-canvas"), | |
mapOptions); | |
} | |
google.maps.event.addDomListener(window, 'load', initialize); | |
</script> | |
</head> | |
<body> | |
<div id="map-canvas"/> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment