{"id":11754,"date":"2024-02-27T20:14:17","date_gmt":"2024-02-27T11:14:17","guid":{"rendered":"https:\/\/www.ecomottblog.com\/?p=11754"},"modified":"2024-02-27T20:14:17","modified_gmt":"2024-02-27T11:14:17","slug":"react%e3%81%a7googlemapsapi%e3%82%92%e4%bd%bf%e3%81%84%e3%81%93%e3%81%aa%e3%81%99%ef%bd%9c%e9%ab%98%e5%ba%a6%e3%81%aa%e3%83%9e%e3%83%bc%e3%82%ab%e3%83%bc%e3%81%ae%e4%bd%9c%e6%88%90","status":"publish","type":"post","link":"https:\/\/test.ecomottblog.com\/?p=11754","title":{"rendered":"React\u3067GoogleMapsAPI\u3092\u4f7f\u3044\u3053\u306a\u3059\uff5c\u9ad8\u5ea6\u306a\u30de\u30fc\u30ab\u30fc\u306e\u4f5c\u6210"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002<br \/>\n\u958b\u767a\u672c\u90e8 SJC\u5171\u540c\u958b\u767a\u63a8\u9032\u5ba4\u306e\u4e2d\u91ce\u3067\u3059\u3002<\/p>\n<p>Web\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067\u5730\u56f3\u3092\u5b9f\u88c5\u3059\u308b\u969b\u3001\u591a\u304f\u306e\u958b\u767a\u8005\u304c\u6700\u521d\u306b\u982d\u306b\u6d6e\u304b\u3079\u308b\u306e\u306f\u300cGoogle Maps API\u300d\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Google Maps API \u306b\u306f\u3001\u5730\u56f3\u8868\u793a\u3060\u3051\u3067\u306a\u304f\u3001\u975e\u5e38\u306b\u5f37\u529b\u306a\u6a5f\u80fd\u304c\u5099\u308f\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u306e\u4e2d\u3067\u3082\u7279\u306b\u6ce8\u76ee\u3059\u3079\u304d\u6a5f\u80fd\u2500\u2500\u305d\u308c\u306f 2023\u5e745\u6708\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f \u300c\u9ad8\u5ea6\u306a\u30de\u30fc\u30ab\u30fc\u300d\u3067\u3059\u3002<\/p>\n<p>\u901a\u5e38\u306e\u5730\u56f3\u30de\u30fc\u30ab\u30fc\u3067\u306f\u8868\u73fe\u4e0d\u53ef\u80fd\u3060\u3063\u305f\u3001\u3088\u308a\u8c4a\u5bcc\u306a\u60c5\u5831\u3092\u8868\u793a\u3067\u304d\u308b\u3053\u306e\u6a5f\u80fd\u306f\u3001\u4e00\u5ea6\u4f7f\u3046\u3068\u75c5\u307f\u3064\u304d\u306b\u306a\u308b\u3053\u3068\u9593\u9055\u3044\u306a\u3057\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001Google Maps API\u306e\u300c\u9ad8\u5ea6\u306a\u30de\u30fc\u30ab\u30fc\u300d\u3092React\u3067\u3069\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3059\u308b\u304b\u306b\u7126\u70b9\u3092\u5f53\u3066\u3001\u305d\u306e\u9b45\u529b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h2>\u9ad8\u5ea6\u306a\u30de\u30fc\u30ab\u30fc\u3067\u3067\u304d\u308b\u3053\u3068<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11852 size-full\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/02\/scale_and_color.png\" alt=\"\" width=\"500\" height=\"333\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/scale_and_color.png 500w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/scale_and_color-300x200.png 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/scale_and_color-304x202.png 304w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/scale_and_color-282x188.png 282w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>\u300c\u9ad8\u5ea6\u306a\u30de\u30fc\u30ab\u30fc\u300d\u306e\u6a5f\u80fd\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u975e\u5e38\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u6027\u306e\u9ad8\u3044\u30de\u30fc\u30ab\u30fc\u3092\u624b\u8efd\u306b\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u306e\u7279\u9577\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30de\u30fc\u30ab\u30fc\u306e\u80cc\u666f\u8272\u3001\u8f2a\u90ed\u7dda\u306e\u8272\u3001\u30b0\u30ea\u30d5\u306e\u8272\u3001\u30b5\u30a4\u30ba\u304c\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd<\/li>\n<li>\u30de\u30fc\u30ab\u30fc\u3092SVG\u3084PNG\u5f62\u5f0f\u7b49\u306e\u4e00\u822c\u7684\u306a\u62e1\u5f35\u5b50\u306e\u30ab\u30b9\u30bf\u30e0\u753b\u50cf\u306b\u5909\u66f4\u53ef\u80fd<\/li>\n<li>DOM\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3084\u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b\u306b\u53cd\u5fdc\u3067\u304d\u308b<\/li>\n<li>\u30ab\u30b9\u30bf\u30e0HTML \u304a\u3088\u3073 CSS \u3092\u6d3b\u7528\u3057\u3066\u3088\u308a\u9ad8\u5ea6\u306a\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u304c\u53ef\u80fd<\/li>\n<li>3D \u5730\u56f3\u8981\u7d20\u306b\u5408\u308f\u305b\u3066\u6b63\u3057\u304f\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u3001\u30de\u30fc\u30ab\u30fc\u306e\u8868\u793a\u9ad8\u5ea6\u3092\u8a2d\u5b9a\u53ef\u80fd<\/li>\n<\/ol>\n<p>\u51c4\u3044\u3067\u3059\u3088\u306d\uff1f<br \/>\n\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u3054\u3068\u306b\u753b\u50cf\u3092\u4f5c\u6210\u3057\u306a\u304f\u3066\u3082\u30de\u30fc\u30ab\u30fc\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u306e\u3067\u958b\u767a\u8005\u306e\u5de5\u6570\u304c\u304b\u306a\u308a\u6e1b\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u901a\u5e38\u306e\u30de\u30fc\u30ab\u30fc\u3067\u306f\u96e3\u3057\u304b\u3063\u305f\u308a\u3001\u5927\u5909\u3060\u3063\u305f\u308a\u3057\u305f\u5b9f\u88c5\u304c\u3001\u624b\u8efd\u306b\u3067\u304d\u308b\u306e\u306f\u6709\u96e3\u3044\u3067\u3059\u3088\u306d\uff01<\/p>\n<p>\u3057\u304b\u3082\u8aad\u307f\u8fbc\u307f\u6642\u9593\u304c\u5f93\u6765\u306e\u30de\u30fc\u30ab\u30fc\u3088\u308a\u77ed\u7e2e\u3055\u308c\u3066\u3044\u308b\u3068\u304b\u306a\u3093\u3068\u304b\u2026<\/p>\n<h2>React\u00d7GoogleMapsAPI<\/h2>\n<p>\u52d5\u4f5c\u74b0\u5883\u306f React \u3092 Docker \u3067\u7acb\u3061\u4e0a\u3052\u3066\u3044\u307e\u3059\u3002<br \/>\n\u74b0\u5883\u69cb\u7bc9\u304b\u3089\u59cb\u3081\u308b\u5834\u5408\u306f\u3001Google\u3067\u691c\u7d22\u3057\u3066\u3044\u305f\u3060\u304f\u3068\u975e\u5e38\u306b\u308f\u304b\u308a\u3084\u3059\u3044\u8a18\u4e8b\u304c\u65e2\u306b\u51fa\u56de\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u53c2\u8003\u306b\u6e96\u5099\u3092\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<div>\n<div>\u4eca\u56de\u306f\u3001\u516c\u5f0f\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b<code>@googlemaps\/react-wrapper<\/code>\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n<div>React\uff0b\u9ad8\u5ea6\u306a\u30de\u30fc\u30ab\u30fc\u306e\u7d44\u307f\u5408\u308f\u305b\u304c\u3044\u304b\u306b\u304a\u624b\u8efd\u304b\u306b\u3064\u3044\u3066\u4f8b\u793a\u3044\u305f\u3057\u307e\u3059\uff01<\/div>\n<h3>React\u3067\u5730\u56f3\u3092\u8868\u793a\u3057\u3066\u307f\u308b<\/h3>\n<p>\u30de\u30fc\u30ab\u30fc\u3092\u8a66\u3059\u305f\u3081\u306e\u4e0b\u5730\u3068\u3057\u3066\u3001React\u3067\u307e\u305a\u306f\u666e\u901a\u306e\u5730\u56f3\u3092\u8868\u793a\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u305d\u306e\u305f\u3081\u306b Map\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div>\n<div>\n<pre class=\"lang:default decode:true\">import { useEffect, useRef, useState } from 'react';\nimport { Wrapper } from '@googlemaps\/react-wrapper';\n\nconst mapOptions: google.maps.MapOptions = {\n  mapId: GOOGLE_MAP_ID,\n  center: { lat: 43.063122, lng: 141.357153 },\n  zoom: 16\n};\n\nfunction MyMap() {\n  const [map, setMap] = useState&lt;google.maps.Map | null&gt;(null);\n  const ref = useRef&lt;HTMLDivElement&gt;(null);\n\n  useEffect(() =&gt; {\n    if (ref.current) {\n      setMap(new window.google.maps.Map(ref.current, mapOptions));\n    }\n  }, []);\n\n  return &lt;div ref={ref} style={{ width: '100%', height: '100%' }} \/&gt;;\n}\n\nfunction Map() {\n  return (\n    &lt;&gt;\n      &lt;Wrapper\n        apiKey={GOOGLE_MAP_API_KEY}\n        version=\"beta\"\u3000\/\/ \u3053\u3053\u3068\n        libraries={['marker']}\u3000\/\/ \u3053\u3053\u304c\u91cd\u8981\uff01\uff01\uff01\n      &gt;\n        &lt;MyMap \/&gt;\n      &lt;\/Wrapper&gt;\n    &lt;\/&gt;\n  );\n}<\/pre>\n<\/div>\n<\/div>\n<div>\n<div>\u6ce8\u610f\u70b9\u306a\u306e\u3067\u3059\u304c\u3001Wrapper \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e props \u306b <strong>version=&#8221;beta&#8221;<\/strong> \u3068 <strong>libraries={[&#8216;marker&#8217;]}<\/strong> \u3092\u5fd8\u308c\u305a\u306b\u5165\u308c\u3066\u4e0b\u3055\u3044\uff01<br \/>\n\u3053\u308c\u304c\u306a\u3044\u3068\u3001\u5f8c\u3067\u9ad8\u5ea6\u306a\u30de\u30fc\u30ab\u30fc\u306e\u4f7f\u7528\u304c\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/div>\n<div>&nbsp;<\/div>\n<div>\u79c1\u306f\u3053\u3053\u3067\u30cf\u30de\u308a\u307e\u3057\u305f\u3002\u3002\u3002<\/div>\n<div>&nbsp;<\/div>\n<p>\u2193\u3000\u7121\u4e8b\u306b\u5730\u56f3\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u306d\uff01\uff08\u5730\u56f3\u306e\u4e2d\u5fc3\u3092\u5f0a\u793e\u306e\u4f4d\u7f6e\u306b\u3057\u3066\u307f\u307e\u3057\u305f\uff09\u6b21\u306f\u3053\u3053\u306b\u30de\u30fc\u30ab\u30fc\u3092\u5165\u308c\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<\/div>\n<div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-11861\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-162927-1024x549.png\" alt=\"\" width=\"1024\" height=\"549\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-162927-1024x549.png 1024w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-162927-300x161.png 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-162927-768x412.png 768w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-162927-304x163.png 304w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-162927-282x151.png 282w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-162927.png 1664w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/div>\n<\/div>\n<h3>\u9ad8\u5ea6\u306a\u30de\u30fc\u30ab\u30fc\u3092\u5229\u7528\u3057\u3066\u30de\u30fc\u30ab\u30fc\u3092\u4f5c\u6210\u3057\u3066\u307f\u308b<\/h3>\n<p>\u65b0\u305f\u306b Marker \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u5148\u7a0b\u4f5c\u6210\u3057\u305f MyMap \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e children \u3068\u3057\u3066 Marker \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u6e21\u3057\u3066\u3042\u3052\u308b\u3068\u5730\u56f3\u4e0a\u306b\u306b\u30de\u30fc\u30ab\u30fc\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">\/\/ \u3053\u3053\u304b\u3089\nfunction Marker({ map }) {\n  const [_, setMarker] = useState&lt;google.maps.Marker&gt;();\n  const markerRef = useRef&lt;google.maps.Marker&gt;();\n\n  const createMarker = () =&gt; {\n    const pinView = new google.maps.marker.PinView({\n      borderColor: 'red',\n      background: 'red', \n      glyphColor: 'white' \n    });\n\n    markerRef.current = new google.maps.marker.AdvancedMarkerView({\n      map,\n      position: { lat: 43.063122, lng: 141.357153 },\n      content: pinView.element\n    });\n\n    return markerRef.current;\n  };\n\n  useEffect(() =&gt; {\n    const initialMarker = createMarker();\n    setMarker(initialMarker);\n\n    return () =&gt; {\n      if (markerRef.current) {\n        markerRef.current.setMap(null);\n      }\n    };\n  }, [map]);\n\n  return null;\n}\n\/\/ \u3053\u3053\u307e\u3067\u8ffd\u8a18\n\nfunction MyMap() {\n  const [map, setMap] = useState&lt;google.maps.Map | null&gt;(null);\n  const ref = useRef&lt;HTMLDivElement&gt;(null);\n\n  useEffect(() =&gt; {\n    if (ref.current) {\n      setMap(new window.google.maps.Map(ref.current, mapOptions));\n    }\n  }, []);\n\n\/\/ \u3053\u3053\u3092\u5dee\u3057\u66ff\u3048\u308b\n\/\/ return &lt;div ref={ref} style={{ width: '100%', height: '100%' }} \/&gt;;\n  return (\n    &lt;div className=\"g-map\" ref={ref}&gt;\n      &lt;Marker map={map} \/&gt;\n    &lt;\/div&gt;\n  );\n}<\/pre>\n<div>\u30de\u30fc\u30ab\u30fc\u3092\u751f\u6210\u3059\u308b\u6642\u306b<\/div>\n<div>\u80cc\u666f\u8272\u3092\u5909\u66f4\u3059\u308b\u306e\u3067\u3042\u308c\u3070 PinView.background \u30aa\u30d7\u30b7\u30e7\u30f3\u3092<br \/>\n\u30b0\u30ea\u30d5\u306e\u8272\u3092\u5909\u66f4\u3059\u308b\u306e\u3067\u3042\u308c\u3070 PinView.glyphColor \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3060\u3051\u3002<br \/>\n\u30b9\u30b1\u30fc\u30eb\uff08\u30de\u30fc\u30ab\u30fc\u30b5\u30a4\u30ba\uff09\u3082\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/div>\n<div>&nbsp;<\/div>\n<div>\u7c21\u5358\u3067\u3059\u3088\u306d\uff1f<br \/>\n\u521d\u3081\u3066\u5b9f\u88c5\u3057\u305f\u3068\u304d\u306f\u7c21\u5358\u3059\u304e\u3066\u62cd\u5b50\u629c\u3051\u3057\u307e\u3057\u305f\u3002<\/div>\n<div>&nbsp;<\/div>\n<div>\u2193\u3000\u5730\u56f3\u306b\u30d4\u30f3\u306e\u30a2\u30a4\u30b3\u30f3\u306e\u30de\u30fc\u30ab\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u306d\uff01<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11893\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-175348.png\" alt=\"\" width=\"938\" height=\"488\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-175348.png 938w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-175348-300x156.png 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-175348-768x400.png 768w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-175348-304x158.png 304w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-22-175348-282x147.png 282w\" sizes=\"(max-width: 938px) 100vw, 938px\" \/><\/p>\n<p>GoogleMap\u3067\u3088\u304f\u898b\u308b\u30d4\u30f3\u3068\u6bd4\u8f03\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u3088\u304f\u898b\u308b\u30d4\u30f3\u3068\u5c11\u3057\u30c7\u30b6\u30a4\u30f3\u304c\u9055\u3046\u306e\u304c\u5206\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-12192\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/02\/\u898b\u51fa\u3057\u3092\u8ffd\u52a0-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u898b\u51fa\u3057\u3092\u8ffd\u52a0-1024x576.jpg 1024w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u898b\u51fa\u3057\u3092\u8ffd\u52a0-300x169.jpg 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u898b\u51fa\u3057\u3092\u8ffd\u52a0-768x432.jpg 768w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u898b\u51fa\u3057\u3092\u8ffd\u52a0-304x171.jpg 304w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u898b\u51fa\u3057\u3092\u8ffd\u52a0-282x159.jpg 282w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u898b\u51fa\u3057\u3092\u8ffd\u52a0.jpg 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u3042\u308c\u3001\u3042\u307e\u308a\u76ee\u7acb\u3061\u307e\u305b\u3093\u306d\u3002\u3002\u3002<br \/>\n\u6298\u89d2\u306a\u306e\u3067\u8272\u3092\u5909\u3048\u3066\u5927\u304d\u304f\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12194\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-27-164017.png\" alt=\"\" width=\"939\" height=\"626\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-27-164017.png 939w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-27-164017-300x200.png 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-27-164017-768x512.png 768w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-27-164017-304x203.png 304w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-02-27-164017-282x188.png 282w\" sizes=\"(max-width: 939px) 100vw, 939px\" \/><\/p>\n<p>\u304b\u306a\u308a\u76ee\u7acb\u3063\u3066\u307e\u3059\u306d\u3002\u3002\u3002<\/p>\n<p>\u5909\u66f4\u3057\u305f\u306e\u306f\u3053\u306e\u90e8\u5206\u3060\u3051\uff01\u624b\u8efd\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u3053\u3068\u3092\u3054\u7406\u89e3\u3044\u305f\u3060\u3051\u305f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">const pinView = new google.maps.marker.PinView({\n\u3000\u3000borderColor: '#ff00ff',\n    background: '#ff00ff',\n    glyphColor: 'white',\n    scale: 5\n});<\/pre>\n<h2>\u7d42\u308f\u308a\u306b<\/h2>\n<p>React\u3067\u306e\u9ad8\u5ea6\u306a\u30de\u30fc\u30ab\u30fc\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u300c\u9ad8\u5ea6\u306a\u30de\u30fc\u30ab\u30fc\u300d\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306e\u5e45\u304c\u975e\u5e38\u306b\u5e83\u304c\u308a\u307e\u3059\u3002<br \/>\n\u6d3b\u7528\u6b21\u7b2c\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3082\u5411\u4e0a\u3059\u308b\u3053\u3068\u9593\u9055\u3044\u306a\u3057\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u3070\u304b\u308a\u306e\u9ad8\u5ea6\u306a\u30de\u30fc\u30ab\u30fc\u306f\u3001\u60c5\u5831\u304c\u591a\u304f\u51fa\u56de\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u5c11\u3057\u3067\u3082\u53c2\u8003\u306b\u306a\u308c\u3070\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306f\u7701\u7565\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u304c\u3001<a href=\"https:\/\/developers.google.com\/maps\/documentation\/javascript\/react-map?hl=ja\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u306b\u5730\u56f3\u306e\u8868\u793a\u304b\u3089\u901a\u5e38\u306e\u30de\u30fc\u30ab\u30fc\u306e\u751f\u6210\u307e\u3067\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u5f62\u5f0f\u3067\u8f09\u3063\u3066\u307e\u3059\u306e\u3067\u521d\u3081\u3066\u306e\u65b9\u306f\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002 \u958b\u767a\u672c\u90e8 SJC\u5171\u540c\u958b\u767a\u63a8\u9032\u5ba4\u306e\u4e2d\u91ce\u3067\u3059\u3002 Web\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067\u5730\u56f3\u3092\u5b9f\u88c5\u3059\u308b\u969b\u3001\u591a\u304f\u306e\u958b\u767a\u8005\u304c\u6700\u521d\u306b\u982d\u306b\u6d6e\u304b\u3079\u308b\u306e\u306f\u300cGoogle Maps API\u300d\u3060\u3068\u601d\u3044\u307e\u3059\u3002 Google Maps API \u306b\u306f [&hellip;]<\/p>\n","protected":false},"author":108,"featured_media":12197,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[165,166],"_links":{"self":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/11754"}],"collection":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/users\/108"}],"replies":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11754"}],"version-history":[{"count":24,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/11754\/revisions"}],"predecessor-version":[{"id":11923,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/11754\/revisions\/11923"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/media\/12197"}],"wp:attachment":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}