Skip to content

Instantly share code, notes, and snippets.

@RyoSugimoto
Last active August 29, 2015 13:59
Show Gist options
  • Save RyoSugimoto/10693761 to your computer and use it in GitHub Desktop.
Save RyoSugimoto/10693761 to your computer and use it in GitHub Desktop.
Google Maps APIの記述例。
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>
function initialize() {
var latlng = new google.maps.LatLng(100, 100);
var mapOptions = {
center: latlng,
zoom: 17,
scaleControl: true,
scrollwheel: false
};
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
var marker = new google.maps.Marker({
position: latlng,
map: map,
title: ''
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment