Skip to content

Instantly share code, notes, and snippets.

@seiichi
Last active December 18, 2015 00:29
Show Gist options
  • Save seiichi/5696607 to your computer and use it in GitHub Desktop.
Save seiichi/5696607 to your computer and use it in GitHub Desktop.
同僚向け
<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