{"id":1443,"date":"2018-06-25T17:20:14","date_gmt":"2018-06-25T08:20:14","guid":{"rendered":"https:\/\/fastcoding.jp\/blog\/?p=1443"},"modified":"2020-07-31T14:22:35","modified_gmt":"2020-07-31T05:22:35","slug":"howtoaddgooglemap","status":"publish","type":"post","link":"https:\/\/fastcoding.jp\/blog\/all\/jquery\/howtoaddgooglemap\/","title":{"rendered":"Google\u30de\u30c3\u30d7\u3092\u30b5\u30a4\u30c8\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<div class=\"the_content\"><p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/05\/29f022710f6cd9a7ad5eff1b5164c69e.png\" alt=\"\u30b0\u30fc\u30b0\u30eb\u30de\u30c3\u30d7\u3092\u30b5\u30a4\u30c8\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\" width=\"1000\" height=\"700\" class=\"the_post_thumbnail alignnone size-full wp-image-2039\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/05\/29f022710f6cd9a7ad5eff1b5164c69e.png 1000w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/05\/29f022710f6cd9a7ad5eff1b5164c69e-352x246.png 352w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/05\/29f022710f6cd9a7ad5eff1b5164c69e-300x210.png 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/05\/29f022710f6cd9a7ad5eff1b5164c69e-768x538.png 768w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/05\/29f022710f6cd9a7ad5eff1b5164c69e-330x230.png 330w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30d9\u30c8\u30ca\u30e0\u30aa\u30d5\u30a3\u30b9\u306eThanh\uff08\u30bf\u30f3\uff09\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306fGoogleMap\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3001\u5f0a\u793e\u3067\u3088\u304f\u884c\u3046\u30d1\u30bf\u30fc\u30f3\u3092\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f01\u696d\u69d8\u306eWEB\u30b5\u30a4\u30c8\u306b\u3001\u307b\u307c\u5fc5\u305a\u5b58\u5728\u3059\u308b\u306e\u304c\u6240\u5728\u5730\u306e\u5730\u56f3\u3002<\/p>\n<p>\u3072\u3068\u6614\u524d\u306f\u3001\u3044\u3061\u3044\u3061\u5730\u56f3\u753b\u50cf\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3057\u305f\u304c<br \/>\n\u6700\u8fd1\u306fGoogle\u30de\u30c3\u30d7\u3092\u57cb\u3081\u8fbc\u3080\u306e\u304c\u4e3b\u6d41\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>&lt;iframe&gt;\u3092\u4f7f\u3063\u3066\u57cb\u3081\u8fbc\u3080\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001<br \/>\n\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u5730\u56f3\u3092\u8868\u793a\u3057\u305f\u3044\u306a\u3089Google\u30de\u30c3\u30d7API\u306e\u5229\u7528\u3092\u30aa\u30b9\u30b9\u30e1\u3057\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Google\u30de\u30c3\u30d7\u306e\u4f5c\u6210\u65b9\u6cd5\u3068<br \/>\nGoogle\u30de\u30c3\u30d7\u30de\u30fc\u30ab\u30fc\u306e\u30a2\u30a4\u30b3\u30f3\u306e\u5909\u66f4\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p class=\"text_box_yellow\"><span class=\"text_box_title\">\u76ee\u6b21<\/span><br \/>\n<a href=\"#no0\">\u4e8b\u524d\u6e96\u5099<\/a><br \/>\n<a href=\"#no1\">\u30b9\u30c6\u30c3\u30d71\u3000\uff0d HTML\u306e\u8a18\u8ff0<\/a><br \/>\n<a href=\"#no2\">\u30b9\u30c6\u30c3\u30d72\u3000\uff0d CSS\u306e\u8a18\u8ff0<\/a><br \/>\n<a href=\"#no3\">\u30b9\u30c6\u30c3\u30d73\u3000\uff0d Javascript\u306e\u8a18\u8ff0<\/a><br \/>\n\u3000<a href=\"#no3-1\">Google\u30de\u30c3\u30d7\u3092\u8868\u793a\u3059\u308b\u57fa\u672c\u306e\u30b3\u30fc\u30c9<\/a><br \/>\n\u3000<a href=\"#no3-2\">Google\u30de\u30c3\u30d7\u306e\u30de\u30fc\u30ab\u30fc\u3092\u5909\u66f4\u3059\u308b<\/a><br \/>\n\u3000<a href=\"#no3-3\">Google\u30de\u30c3\u30d7\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b<\/a><br \/>\n<a href=\"#no4\">Google\u30de\u30c3\u30d7\u304b\u3089\u7def\u5ea6\u7d4c\u5ea6\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5<\/a><br \/>\n<a href=\"#no-final\">\u307e\u3068\u3081<\/a><\/p>\n<hr id=\"no0\">\n\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u524d\u306b\u3001\u307e\u305a\u306f\u5b8c\u6210\u54c1\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u30c7\u30e2\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p align=\"center\"><a href=\"https:\/\/fastcoding.jp\/jssamples\/google-map\/google-map-api\/\" target=\"_blank\" class=\"button\" rel=\"noopener noreferrer\">Google\u30de\u30c3\u30d7\u3092\u8868\u793a\u3059\u308bDEMO<\/a><\/p>\n<h2>[\u4e8b\u524d\u6e96\u5099]<\/h2>\n<p>\u307e\u305a\u3001API\uff08Application Programming Interface\uff09\u30ad\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u30ea\u30f3\u30af\uff1a<a href=\"https:\/\/console.developers.google.com\">https:\/\/console.developers.google.com<\/a>\uff08\u7121\u6599\uff09<\/p>\n<p>\u53d6\u5f97\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3055\u308c\u3066\u3044\u308b\u30b5\u30a4\u30c8\u69d8\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067<br \/>\n\u3053\u3061\u3089\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p class=\"title_text\">Google Maps Platform API\u30ad\u30fc\u306e\u53d6\u5f97\u30fb\u767a\u884c\u306b\u3064\u3044\u3066<\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/www.zenrin-datacom.net\/business\/gmapsapi\/api_key\/\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=www.zenrin-datacom.net\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">www.zenrin-datacom.net<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">35 Users<\/div> <div class=\"lkc-sns-po\">110 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fwww.zenrin-datacom.net%2Fbusiness%2Fgmapsapi%2Fapi_key%2F?w=100\" width=\"\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Google Maps Platform\u306eAPI\u30ad\u30fc\u306e\u53d6\u5f97\u30fb\u767a\u884c\u306b\u3064\u3044\u3066 - \u682a\u5f0f\u4f1a\u793e\u30bc\u30f3\u30ea\u30f3\u30c7\u30fc\u30bf\u30b3\u30e0<\/div><div class=\"lkc-excerpt\">Google Maps Platform\u306e\u5229\u7528\u306b\u5fc5\u8981\u306a\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\uff5eAPI\u306e\u6709\u52b9\u5316\uff5eGoogle Maps Platform API\u30ad\u30fc\u306e\u53d6\u5f97\u30fb\u767a\u884c\uff5eAPI\u30ad\u30fc\u306e\u6307\u5b9a\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002API\u30ad\u30fc\u306e\u8a2d\u5b9a\u306e\u78ba\u8a8d\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3082\u3054\u6848\u5185\u3044\u305f\u3057\u307e\u3059\u3002<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<hr id=\"no1\">\n<h2>\u30b9\u30c6\u30c3\u30d71\u3000\uff0d HTML\u306e\u8a18\u8ff0<\/h2>\n<h3>\u2460Google API\u306e\u8aad\u307f\u8fbc\u307f<\/h3>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;script src=&quot;https:\/\/maps.googleapis.com\/maps\/api\/js?key={API\u30ad\u30fc}&amp;callback=myMap&quot;&gt;&lt;\/script&gt;<\/pre>\n<p>\u4e0a\u8a18\u306esrc\u306b\u3042\u308b<strong class=\"important\">{API\u30ad\u30fc}<\/strong>\u306f\u3001\u4e8b\u524d\u6e96\u5099\u3067\u53d6\u5f97\u3057\u305f\u81ea\u5206\u306eAPI\u30ad\u30fc\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307e\u305f\u3001<strong class=\"important\">myMap<\/strong>\u306f\u3001\u5730\u56f3\u306e\u8a73\u7d30\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u547c\u3073\u51fa\u3059javascript\u306e\u95a2\u6570\u540d\u3002<br \/>\n\u3053\u3061\u3089\u306b\u3064\u3044\u3066\u306f<a href=\"no3\">\u30b9\u30c6\u30c3\u30d73<\/a>\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h3>\u2461\u5730\u56f3\u3092\u57cb\u3081\u8fbc\u3080\u5834\u6240\u3092\u6307\u5b9a<\/h3>\n<p>Google\u30de\u30c3\u30d7\u3092\u8aad\u307f\u8fbc\u307f\u305f\u3044\u9818\u57df\u306bid\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u597d\u304d\u306a\u5834\u6240\u306b\u5730\u56f3\u3092\u914d\u7f6e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u3001google-map\u3068\u3044\u3046id\u304c\u6307\u5b9a\u3055\u308c\u305fdiv\u5185\u306b\u5730\u56f3\u3092\u8aad\u307f\u8fbc\u307f\u305f\u3044\u306e\u3067\u3001html\u306e\u8a18\u8ff0\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;div id=&quot;google-map&quot; class=&quot;google-map&quot;&gt;&lt;\/div&gt;<\/pre>\n<hr id=\"no2\">\n<h2>\u30b9\u30c6\u30c3\u30d72\u3000\uff0d CSS\u306e\u8a18\u8ff0<\/h2>\n<h3>Google\u30de\u30c3\u30d7\u306e\u30b5\u30a4\u30ba\u304c\u56fa\u5b9a\u306e\u5834\u5408\uff1a<\/h3>\n<p>Google \u30de\u30c3\u30d7\u3092\u56fa\u5b9a\u30b5\u30a4\u30ba\u3067\u8868\u793a\u3059\u308b\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306aCSS\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">.google-map {\r\n  width: 500px;\r\n  height: 500px;\r\n  margin: 0 auto;\r\n}<\/pre>\n<p>\u5e45\u3068\u9ad8\u3055\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3044\u3068\u3001\u5730\u56f3\u304c\u3046\u307e\u304f\u8aad\u307f\u8fbc\u3081\u306a\u3044\u306e\u3067<br \/>\n\u5fc5\u305a\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>Google\u30de\u30c3\u30d7\u306e\u30b5\u30a4\u30ba\u304c\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306e\u5834\u5408\uff1a<\/h3>\n<p>Google\u30de\u30c3\u30d7\u306f\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u305d\u306e\u5834\u5408\u306f\u3001width\u3092\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\u3067\u6307\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">.google-map {\r\n  width: 100%;\r\n  height: 500px;\r\n}<\/pre>\n<hr id=\"no3\">\n<h2>\u30b9\u30c6\u30c3\u30d73\u3000\uff0d Javascript\u306e\u8a18\u8ff0<\/h2>\n<h3 id=\"no3-1\" style=\"padding-top:60px;margin-top:-60px;background-position-y: 65px;\">Google\u30de\u30c3\u30d7\u3092\u8868\u793a\u3059\u308b\u57fa\u672c\u306e\u30b3\u30fc\u30c9<\/h3>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">function myMap() {\r\n  var myCenter = new google.maps.LatLng(34.645684, 135.514441);\r\n  var mapCanvas = document.getElementById('google-map');\r\n  var mapOptions = {\r\n    center: myCenter,\r\n    zoom: 16\r\n  };\r\n  var map = new google.maps.Map(mapCanvas, mapOptions);\r\n  var marker = new google.maps.Marker({\r\n  position: myCenter \r\n  });\r\n  marker.setMap(map);\r\n}\r\n<\/pre>\n<div class=\"text_box_blue\" style=\"margin-bottom:30px;\">\n<span class=\"text_box_title\">\u3010\u89e3\u8aac\u3011<\/span><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n  var myCenter = new google.maps.LatLng(34.645684, 135.514441);\r\n<\/pre>\n<p>google.maps.LatLng(<strong class=\"important\">\u7def\u5ea6,\u7d4c\u5ea6<\/strong>)\u3067\u3001\u8868\u793a\u3057\u305f\u3044\u5834\u6240\u306e\u5ea7\u6a19\u3092\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002<br \/>\n\u5ea7\u6a19\u306e\u78ba\u8a8d\u65b9\u6cd5\u306f<a href=\"#no4\">Google\u30de\u30c3\u30d7\u304b\u3089\u7def\u5ea6\u7d4c\u5ea6\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5<\/a>\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n  var mapCanvas = document.getElementById('google-map');\r\n<\/pre>\n<p><a href=\"no1\">\u30b9\u30c6\u30c3\u30d71\u3000\uff0d HTML\u306e\u8a18\u8ff0<\/a>\u3067\u4f5c\u6210\u3057\u305fGoogle\u30de\u30c3\u30d7\u306e\u8a2d\u7f6e\u5834\u6240\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<hr>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n  var mapOptions = {\r\n    center: myCenter,\r\n\u3000\u3000\/\/\u30de\u30c3\u30d7\u5ea7\u6a19\u3092\u30bb\u30c3\u30c8\r\n    zoom: 16\r\n    \/\/\u30de\u30c3\u30d7\u306e\u30ba\u30fc\u30e0\u30ec\u30d9\u30eb\u3092\u6307\u5b9a\r\n  };\r\n<\/pre>\n<p>Google\u30de\u30c3\u30d7\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nOption\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u9805\u76ee\u306f\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u306fGoogle\u30de\u30c3\u30d7\u306e\u5ea7\u6a19\u30bb\u30c3\u30c8\u3068<br \/>\n\u30ba\u30fc\u30e0\u30ec\u30d9\u30eb\u306e\u6307\u5b9a\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u307b\u304b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u4ee5\u4e0b\u306b\u4e00\u89a7\u304c\u3042\u308b\u306e\u3067\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u307e\u305b\u3002<\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/developers.google.com\/maps\/documentation\/javascript\/reference\/3\/map?hl=ja#MapOptions\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=developers.google.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">Google Developers<\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fdevelopers.google.com%2Fmaps%2Fdocumentation%2Fjavascript%2Freference%2F3%2Fmap%3Fhl%3Dja%23MapOptions?w=100\" width=\"\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Maps &nbsp;|&nbsp; Maps JavaScript API      &nbsp;|&nbsp; Google Developers<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<hr>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n  var map = new google.maps.Map(mapCanvas, mapOptions);\r\n<\/pre>\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u3088\u3046\u3084\u304fGoogle\u30de\u30c3\u30d7\u304cWEB\u30da\u30fc\u30b8\u5185\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u5f15\u6570\u306f\u3001google.maps.Map(<strong class=\"important\">div\u8981\u7d20<\/strong>, <strong class=\"important\">\u30de\u30c3\u30d7\u30aa\u30d7\u30b7\u30e7\u30f3\uff1a\u4efb\u610f<\/strong>)<\/p>\n<hr>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n  var marker = new google.maps.Marker({\r\n  position: myCenter \r\n  });\r\n  marker.setMap(map);\r\n<\/pre>\n<p>\u30de\u30fc\u30ab\u30fc\uff08\u30d4\u30f3\u72b6\u306e\u753b\u50cf\uff09\u3092\u3001\u5730\u56f3\u306e\u6307\u5b9a\u3057\u305f\u5834\u6240\u306b\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306fmyCenter\u3092\u8a2d\u5b9a\u3057\u305f\u306e\u3067\u3001\u5730\u56f3\u306e\u4e2d\u5fc3\u3068\u3057\u3066\u6307\u5b9a\u3057\u305f\u5ea7\u6a19\u3068\u540c\u3058\u5834\u6240\u306b\u30de\u30fc\u30ab\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\n<\/p><\/div>\n<h3 id=\"no3-2\" style=\"padding-top:60px;margin-top:-60px;background-position-y: 65px;\">Google\u30de\u30c3\u30d7\u306e\u30de\u30fc\u30ab\u30fc\u3092\u5909\u66f4\u3059\u308b<\/h3>\n<p>\u57fa\u672c\u306e\u30b3\u30fc\u30c9\u8868\u8a18\u3067\u306f\u3001Google\u30de\u30c3\u30d7\u306e\u30d4\u30f3\u30a2\u30a4\u30b3\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001<br \/>\n\u4ee3\u308f\u308a\u306b\u81ea\u5206\u3067\u7528\u610f\u3057\u305f\u753b\u50cf\u3092\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u3010\u5909\u66f4\u524d\u30b3\u30fc\u30c9\u3011<\/h4>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n    var marker = new google.maps.Marker({\r\n      position: myCenter\r\n    });\r\n<\/pre>\n<h4>\u3010\u5909\u66f4\u5f8c\u30b3\u30fc\u30c9\u3011<\/h4>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n    var marker = new google.maps.Marker({\r\n      position: myCenter,\r\n      icon: 'img\/icon_map.png' \/\/ \u30a2\u30a4\u30b3\u30f3\u306e\u30d1\u30b9\r\n    });\r\n<\/pre>\n<p>\u30de\u30fc\u30ab\u30fc\u306e\u30a2\u30a4\u30b3\u30f3\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30a4\u30e1\u30fc\u30b8\u306e\u30d1\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u203b\u30a2\u30a4\u30b3\u30f3\u306e\u30b5\u30a4\u30ba\u306f\u81ea\u52d5\u7684\u306b\u5909\u66f4\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3 id=\"no3-3\" style=\"padding-top:60px;margin-top:-60px;background-position-y: 65px;\">Google\u30de\u30c3\u30d7\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b<\/h3>\n<p>\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3068\u306f\u3001\u4e0b\u306e\u753b\u50cf\u306b\u3042\u308b\u8d64\u304f\u56f2\u3063\u305f\u90e8\u5206\u306b\u3042\u308b<br \/>\n\u30ba\u30fc\u30e0\u3084\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u8868\u793a\u3092\u3059\u308b\u305f\u3081\u306e\u6a5f\u80fd\u306e\u3053\u3068\u3002<\/p>\n<p><a href=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/05\/Screenshot_1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1594\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/05\/Screenshot_1.jpg\" alt=\"\" width=\"736\" height=\"463\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/05\/Screenshot_1.jpg 736w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/05\/Screenshot_1-300x189.jpg 300w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><\/a><br \/>\n\u57fa\u672c\u306e\u30b3\u30fc\u30c9\u306b\u3042\u308bmapOptions\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u8ffd\u8a18\u3059\u308b\u3053\u3068\u3067<br \/>\n\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u5236\u5fa1\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u4f7f\u7528\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th style=\"padding-right: 20px;\">Option<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding-right: 20px;\">zoomControl<\/td>\n<td>\u30ba\u30fc\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u6709\u52b9\/\u7121\u52b9\u306b\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u3053\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f\u53f3\u4e0b\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<strong class=\"important\">\u5024\uff1atrue\/false<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-right: 20px;\">mapTypeControl<\/td>\n<td>\u5730\u56f3\/\u822a\u7a7a\u5199\u771f\u3068\u3044\u3063\u305f\u5730\u56f3\u306e\u7a2e\u985e\u3092\u5909\u66f4\u3067\u304d\u308b\u30de\u30c3\u30d7\u30bf\u30a4\u30d7\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u8868\u793a\u3092\u6709\u52b9\/\u7121\u52b9\u306b\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u3053\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f\u5de6\u4e0a\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<strong class=\"important\">\u5024\uff1atrue\/false<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-right: 20px;\">streetViewControl<\/td>\n<td>\u30b9\u30c8\u30ea\u30fc\u30c8\u30d3\u30e5\u30fc\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30da\u30b0\u30de\u30f3\u4eba\u5f62\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u3053\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f\u53f3\u4e0b\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<strong class=\"important\">\u5024\uff1atrue\/false<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-right: 20px;\">rotateControl<\/td>\n<td>\u822a\u7a7a\u5199\u771f\u306e\u5834\u5408\u3001\u5730\u56f3\u309245\u00b0\u305a\u3064\u56de\u8ee2\u3055\u305b\u308b\u305f\u3081\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30dc\u30bf\u30f3\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u884c\u3044\u307e\u3059\u3002\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u5730\u57df\u3067\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<br \/>\n<strong class=\"important\">\u5024\uff1atrue\/false<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-right: 20px;\">scaleControl<\/td>\n<td>Google\u30de\u30c3\u30d7\u5185\u306b\u30b9\u30b1\u30fc\u30eb\u30d0\u30fc\uff08\u30e1\u30e2\u30ea\u306e\u8868\u793a\uff09\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u884c\u3044\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002 \u8868\u793a\u3059\u308b\u3068\u3001\u5730\u56f3\u306e\u53f3\u4e0b\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<strong class=\"important\">\u5024\uff1atrue\/false<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-right: 20px;\">fullscreenControl<\/td>\n<td>\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u6709\u52b9\/\u7121\u52b9\u306b\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u3053\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f\u643a\u5e2f\u30c7\u30d0\u30a4\u30b9\u306e\u307f\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u6709\u52b9\u306b\u3059\u308b\u3068\u3001\u5730\u56f3\u306e\u53f3\u4e0a\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<strong class=\"important\">\u5024\uff1atrue\/false<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr id=\"no4\">\n<h2>Google\u30de\u30c3\u30d7\u304b\u3089\u7def\u5ea6\u7d4c\u5ea6\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>Google\u30de\u30c3\u30d7\u304b\u3089\u7def\u5ea6\u3068\u7d4c\u5ea6\u5ea7\u6a19\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306f\u3001\u4e0b\u8a18\u306e\u624b\u9806\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>1.\u7def\u5ea6\u30fb\u7d4c\u5ea6\u3092\u8abf\u3079\u305f\u3044\u5834\u6240\u3092\u691c\u7d22<\/h3>\n<p> Google\u30de\u30c3\u30d7\u3092\u958b\u3044\u3066 ( <a href=\"https:\/\/www.google.com\/maps\/\">https:\/\/www.google.com\/maps\/<\/a> ) \u898b\u3064\u3051\u305f\u3044\u4f4f\u6240\u3084\u5834\u6240\u3092\u691c\u7d22\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1488\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/1-1024x705.jpg\" alt=\"image google map\" width=\"1024\" height=\"705\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/1-1024x705.jpg 1024w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/1-300x206.jpg 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/1-768x529.jpg 768w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/1.jpg 1084w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h3>2.\u30d4\u30f3\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u300e\u3053\u306e\u5834\u6240\u306b\u3064\u3044\u3066\u300f\u3092\u30af\u30ea\u30c3\u30af<\/h3>\n<p>\u30b5\u30f3\u30d7\u30eb\u753b\u50cf\u306f\u82f1\u8a9e\u7248\u306e\u305f\u3081&#8221;What&#8217;s here?&#8221;\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001<br \/>\n\u4ee5\u4e0b\u306e\u753b\u50cf\u306b\u3042\u308b\u8d64\u304f\u56f2\u3063\u305f\u5834\u6240\u306b\u300e\u3053\u306e\u5834\u6240\u306b\u3064\u3044\u3066\u300f\u3068\u3042\u308b\u306e\u3067\u3053\u3061\u3089\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1489\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/2-1024x707.jpg\" alt=\"image google map\" width=\"1024\" height=\"707\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/2-1024x707.jpg 1024w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/2-300x207.jpg 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/2-768x530.jpg 768w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/2.jpg 1088w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h3>3.\u7def\u5ea6\u30fb\u7d4c\u5ea6\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n<p>\u5ea7\u6a19\u306f\u3001\u753b\u9762\u306e\u4e0b\u90e8\u306b\u3042\u308b\u9577\u65b9\u5f62\u306e\u30dc\u30c3\u30af\u30b9\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1490\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/3-1024x707.jpg\" alt=\"image google map\" width=\"1024\" height=\"707\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/3-1024x707.jpg 1024w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/3-300x207.jpg 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/3-768x530.jpg 768w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/04\/3.jpg 1088w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><br \/>\n<strong>myMap()<\/strong>\u6a5f\u80fd\u3092\u9589\u3058\u308b\u524d\u306b\u6b21\u306e\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n<em>&#8211; id=&#8221;google-map&#8221;\u306ediv\u306b\uff08myCenter\uff09\u306e\u5730\u56f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/em><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var map = new google.maps.Map(mapCanvas, mapOptions);<\/pre>\n<hr id=\"no-final\">\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u306e\u901a\u308a\u306b\u8a18\u8ff0\u3059\u308b\u3068\u3001\u3072\u3068\u307e\u305a\u57fa\u672c\u7684\u306a\u30de\u30c3\u30d7\u306e\u8868\u793a\u306f\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u99c6\u4f7f\u3059\u308b\u3068\u3001\u3088\u308a\u57cb\u3081\u8fbc\u307f\u305f\u3044\u30b5\u30a4\u30c8\u306b\u5408\u3063\u305f\u30de\u30c3\u30d7\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067<br \/>\n\u662f\u975e\u3044\u308d\u3044\u308d\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u30b3\u30fc\u30c9\u306f<a href=\"https:\/\/codepen.io\/ngoctinha1\/pen\/MGqzxo\">Codepen<\/a>\u304b\u3089\u3082\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3053\u3061\u3089\u3082\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u307e\u305b\u3002<\/p>\n<style>\n.important {\n    color: #e8554e;\n    font-weight: bold;\n}\n<\/style>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u30d9\u30c8\u30ca\u30e0\u30aa\u30d5\u30a3\u30b9\u306eThanh\uff08\u30bf\u30f3\uff09\u3067\u3059\u3002 \u4eca\u56de\u306fGoogleMap\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3001\u5f0a\u793e\u3067\u3088\u304f\u884c\u3046\u30d1\u30bf\u30fc\u30f3\u3092\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002 \u4f01\u696d\u69d8\u306eWEB\u30b5\u30a4\u30c8\u306b\u3001\u307b\u307c\u5fc5\u305a\u5b58\u5728\u3059\u308b\u306e\u304c\u6240\u5728\u5730\u306e\u5730\u56f3\u3002 \u3072\u3068\u6614\u524d\u306f\u3001\u3044\u3061\u3044 [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":2039,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-1443","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery"],"acf":[],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2018\/05\/29f022710f6cd9a7ad5eff1b5164c69e.png","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/1443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/comments?post=1443"}],"version-history":[{"count":50,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/1443\/revisions"}],"predecessor-version":[{"id":3070,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/1443\/revisions\/3070"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media\/2039"}],"wp:attachment":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media?parent=1443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/categories?post=1443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/tags?post=1443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}