{"id":6520,"date":"2019-09-13T18:12:58","date_gmt":"2019-09-13T09:12:58","guid":{"rendered":"https:\/\/gunmagisgeek.com\/wordpress\/?p=6520"},"modified":"2022-03-05T11:39:21","modified_gmt":"2022-03-05T02:39:21","slug":"deckgl%e3%81%ae%e3%83%99%e3%83%bc%e3%82%b9%e3%83%9e%e3%83%83%e3%83%97%e3%81%abgoogle-maps%e3%82%92%e4%bd%bf%e3%81%86%ef%bc%88react%e7%89%88","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/google-map-api\/6520","title":{"rendered":"deck.gl \u306e\u30d9\u30fc\u30b9\u30de\u30c3\u30d7\u306bGoogle Maps\u3092\u4f7f\u3046"},"content":{"rendered":"\n<p>[\u8ffd\u8a18]<\/p>\n\n\n\n<p>deck.gl v8.6\u306b\u3066Google Maps\u3068\u306e\u9023\u643a\u5f37\u5316\u304c\u56f3\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Google \u5074\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u304b\u3089\u306e\u7a4d\u6975\u7684\u306a\u30b5\u30dd\u30fc\u30c8\u3082\u3042\u308a\u3001Google Maps\u3092\u30d9\u30fc\u30b9\u30de\u30c3\u30d7\u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u304c\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u3068\u304d\u3088\u308a\u975e\u5e38\u306b\u7c21\u5358\u306b\u306a\u308a\u3001\u306a\u304a\u304b\u3064\u6027\u80fd\u3082\u4e0a\u304c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Google \u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306bdeck.gl\u3068Google Maps\u3092\u9023\u643a\u3059\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4eca\u5f8c\u306f\u305d\u3061\u3089\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/cloud.google.com\/blog\/ja\/products\/maps-platform\/richer-data-visualization-google-maps-platform-using-deckgl\">Google Maps Platform \u3067 deck.gl \u3092\u4f7f\u7528\u3057\u3066\u5145\u5b9f\u3057\u305f\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316\u3092\u5b9f\u73fe | Google Cloud Blog<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/developers.google.com\/codelabs\/maps-platform\/maps-deck-gl?hl=ja#0\">Google Maps Platform \u3068 deck.gl \u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53ef\u8996\u5316\u3059\u308b<\/a><\/p>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u30ae\u30e3\u30e9\u30ea\u30fc(Carto\u3092\u4f7f\u3063\u305f\u4f8b\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059)<\/p>\n\n\n\n<p><a href=\"https:\/\/jsfiddle.net\/user\/carto\/fiddles\/\">Settings &#8211; JSFiddle &#8211; Code Playground<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u203b \u4ee5\u4e0b\u3001\u904e\u53bb\u306e\u8a18\u4e8b<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/Deckgl-Gmap.shimizu1.repl.co\">DEMO<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6982\u8981<\/h2>\n\n\n\n<p>\u4eca\u5e74\u306e6\u6708\u306bGoogle Maps\u304b\u3089Deck.gl\u5bfe\u5fdc\u306e\u767a\u8868\u304c\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u516c\u5f0f\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c<a href=\"http:\/\/bl.ocks.org\/Pessimistress\/b5e9b86cd0f69ea69f20150734d4e2b6\">Pure JavasScript\u306e\u30b3\u30fc\u30c9<\/a>\u3057\u304b\u306a\u304f\u3001React\u3092\u4f7f\u3063\u3066Google Maps API\u3068Deck.gl\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u30b5\u30f3\u30d7\u30eb\u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/developers-jp.googleblog.com\/2019\/06\/google-maps-platform-deckgl-maps-sdk.html\">Google Developers Japan: Google Maps Platform \u3067\u306e deck.gl \u30b5\u30dd\u30fc\u30c8\u3068 Maps SDK for Android \u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/medium.com\/vis-gl\/using-deck-gl-with-google-maps-9c868d18e3cd\">Using deck.gl with Google Maps &#8211; vis.gl &#8211; Medium<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<p><iframe style=\"width: 100%; height: 500px; border: 0; border-radius: 4px; overflow: hidden;\" src=\"https:\/\/codesandbox.io\/embed\/deckgl-gmaps-example-xo7kj?fontsize=14&amp;hidenavigation=1&amp;theme=dark&amp;view=split\" title=\"deckgl-gmaps-example\" allow=\"accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking\" sandbox=\"allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts\"><\/iframe><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u8aac<\/h3>\n\n\n\n<p>\u30bf\u30a4\u30c8\u30eb\u3067\u306f\u308f\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u306b\u300cDeckgl\u306e\u30d9\u30fc\u30b9\u30de\u30c3\u30d7\u306bGoogle Maps\u3092\u4f7f\u3046\u300d\u3068\u3057\u307e\u3057\u305f\u304c\u4ed5\u7d44\u307f\u7684\u306b\u306f\u5b9f\u306f\u9006\u3067\u3001Google Maps API\u304c\u751f\u6210\u3059\u308b\u5730\u56f3\u306eoverlayer\u306bDeck.gl\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u5dee\u3057\u8fbc\u3080\u4f5c\u308a\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u4ee5\u524d\u7d39\u4ecb\u3057\u305f<a href=\"https:\/\/gunmagisgeek.com\/blog\/deck-gl\/6431\">Deck.gl\u306e\u30d9\u30fc\u30b9\u30de\u30c3\u30d7\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5<\/a>\u3068\u306f\u3001\u307e\u3063\u305f\u304f\u5225\u306e\u4ed5\u7d44\u307f\u3067\u52d5\u3044\u3066\u3044\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3066\u3001Google Maps\u3092React\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3044\u304f\u3064\u304b\u3042\u308b\u306e\u3067\u3059\u304c\u3001Deck.gl\u306e\u30ec\u30a4\u30e4\u30fc\u3092Google Maps\u306b\u5dee\u3057\u8fbc\u3080\u305f\u3081\u306b\u306f\u3001Google Map\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u6a5f\u80fd\u304c\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>\u4eca\u56de\u306f\u3001<a href=\"https:\/\/www.npmjs.com\/package\/@react-google-maps\/api\">@react-google-maps\/api &#8211; npm<\/a> \u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u304c\u3001Map\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3055\u3048\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306a\u3089\u4f7f\u3044\u6163\u308c\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>@react-google-maps\/api \u3067\u306f\u3001onload\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3067map\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;GoogleMap\n  onLoad={map =&gt; {\n    \/\/Google Map\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u53d6\u5f97\u3067\u304d\u308b\n    console.log(map)\n  }}\n\/&gt;<\/pre>\n\n\n\n<p>Deck.gl\u306e\u30ec\u30a4\u30e4\u30fc\u3092Google Maps\u306b\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3059\u308b\u306b\u306fGoogleMapsOverlay\u30af\u30e9\u30b9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">const deckOverlay = new GoogleMapsOverlay({\n    layers: [\n        ... Deck.gl\u30ec\u30a4\u30e4\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\n    ]\n});\n\n&lt;GoogleMap\n    onLoad={map =&gt; {\n        deckOverlay.setMap(map); \/\/Google Maps\u306bDeck.gl\u30ec\u30a4\u30e4\u30fc\u3092\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3059\u308b\n    }}\n\/&gt;<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u6ce8\u610f<\/h3>\n\n\n\n<p>\u3042\u304f\u307e\u3067Google Maps\u304c\u4e3b\u4f53\u3067\u3001Deck.gl\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u4e57\u305b\u308b\u3060\u3051\u306a\u306e\u3067\u3001Google Maps\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044Deck.gl\u306e\u6a5f\u80fd\u306a\u3069\u306f\u4eca\u306e\u6240\u4f7f\u3048\u307e\u305b\u3093\u3002<br>\u5177\u4f53\u7684\u306b\u306f3D\u30dd\u30ea\u30b4\u30f3\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306a\u30ec\u30a4\u30e4\u30fc\u306f\u6a5f\u80fd\u3057\u306a\u3044\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>The Google Maps JavaScript library does not support free rotation of the camera, so sadly the 3D layers of deck.gl may not work very well. deck.gl does not currently support zoom levels below zero, so it will hide itself when the user zooms all the way out.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>[\u8ffd\u8a18] deck.gl v8.6\u306b\u3066Google&hellip;<\/p>\n","protected":false},"author":1,"featured_media":6522,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,37],"tags":[],"class_list":["post-6520","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-deck-gl","category-google-map-api","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/6520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/comments?post=6520"}],"version-history":[{"count":2,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/6520\/revisions"}],"predecessor-version":[{"id":7899,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/6520\/revisions\/7899"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/6522"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=6520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=6520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=6520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}