Created
January 15, 2014 09:29
-
-
Save myamamic/8433300 to your computer and use it in GitHub Desktop.
[gtuggirls] GTUG Girls #15 サンプル2
This file contains hidden or 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?sensor=false"> | |
</script> | |
<script type="text/javascript"> | |
function initialize() { | |
var markerLatlng = new google.maps.LatLng(35.6708529, 139.7605315); | |
var mapOptions = { | |
center: markerLatlng, | |
zoom: 14 | |
}; | |
var map = new google.maps.Map(document.getElementById("map-canvas"), | |
mapOptions); | |
var marker = new google.maps.Marker({ | |
position: markerLatlng, | |
map: map, | |
title: 'Hello Map!' | |
}); | |
} | |
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