Last active
December 18, 2015 00:29
-
-
Save seiichi/5696607 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
<script type="text/javascript" src="//www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load('maps', '3', {'other_params': 'sensor=true'}); | |
(function($) { 'use strict'; | |
$(document).ready(function() { | |
var latlng = new google.maps.LatLng(33.59135, 130.408334); | |
var opts = { | |
center: latlng, | |
zoom: 15, | |
mapTypeId: google.maps.MapTypeId.ROADMAP, | |
mapTypeControl: false, | |
streetViewControl: false | |
}; | |
var canvas = $('#map_canvas').get(0); | |
var map = new google.maps.Map(canvas, opts); | |
var marker = new google.maps.Marker({ | |
position: latlng, | |
map: map, | |
animation: google.maps.Animation.DROP | |
}); | |
}); | |
})(jQuery); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment