{"id":7565,"date":"2021-12-15T08:37:33","date_gmt":"2021-12-14T23:37:33","guid":{"rendered":"https:\/\/gunmagisgeek.com\/blog\/?p=7565"},"modified":"2022-11-23T09:41:58","modified_gmt":"2022-11-23T00:41:58","slug":"deck-gl%e3%81%a7%e3%83%ac%e3%82%a4%e3%83%a4%e3%83%bc%e3%82%92%e3%82%a2%e3%83%8b%e3%83%a1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%95%e3%81%9b%e3%82%8b","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/deck-gl\/7565","title":{"rendered":"deck.gl\u3067\u30ec\u30a4\u30e4\u30fc\u3092\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u308b"},"content":{"rendered":"\n<p>\u3053\u306e\u8a18\u4e8b\u306f<a href=\"https:\/\/qiita.com\/advent-calendar\/2021\/deckgl\">deck.gl Advent Calendar 2021&nbsp;<\/a>\u53c2\u52a0\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6982\u8981<\/h2>\n\n\n\n<p>\u30c7\u30fc\u30bf\u306b\u5909\u66f4\u304c\u3042\u3063\u305f\u969b\u306b\u3001\u30c7\u30fc\u30bf\u3092\u53ef\u8996\u5316\u3057\u3066\u3044\u308b\u30ec\u30a4\u30e4\u30fc\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<p>[\u6ce8\u610f]<\/p>\n\n\n\n<p><s>\u73fe\u5728\u3001iOS\u3060\u3068\u30c8\u30e9\u30f3\u30b8\u30b7\u30e7\u30f3\u304c\u3046\u307e\u304f\u50cd\u304b\u306a\u3044\u30d0\u30b0\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/s><\/p>\n\n\n\n<p><s>Layers flickering\/disappearing on iOS \u00b7 Issue #6328 \u00b7 visgl\/deck.gl<\/s><\/p>\n\n\n\n<p><s>Adding an MVTLayer breaks attribute transitions on Safari (MacOS + iOS) \u00b7 Issue #6436 \u00b7 visgl\/deck.gl<\/s><\/p>\n\n\n\n<p>iOS 16.1.1\u306b\u3066\u89e3\u6d88\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<iframe src=\"https:\/\/codesandbox.io\/embed\/deck-gl-layeranimesiyon-1le4g?fontsize=14&amp;hidenavigation=1&amp;theme=dark&amp;view=split\" style=\"width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;\" title=\"deck.gl - layer\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\" 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>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u8aac<\/h2>\n\n\n\n<p>deck.gl\u306e\u30ec\u30a4\u30e4\u30fc\u3067\u306f\u3001get\u304b\u3089\u59cb\u307e\u308b\u30a2\u30af\u30bb\u30b5\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u6e21\u3059\u3053\u3068\u3067\u30c7\u30fc\u30bf\u306e\u5c5e\u6027\u5024\u3092\u5143\u306b\u9ad8\u3055\u3084\u30ab\u30e9\u30fc\u306a\u3069\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30a2\u30af\u30bb\u30b5\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u540c\u6642\u306btransitions\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u30ec\u30a4\u30e4\u30fc\u304c\u65b0\u898f\u4f5c\u6210\u3055\u308c\u305f\u3068\u304d\u306b\u3001\u73fe\u5728\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30ec\u30a4\u30e4\u30fc\u3068\u306e\u5dee\u5206\u3092\u8a08\u7b97\u3057\u305d\u306e\u9593\u306e\u5024\u3092\u88dc\u5b8c\u3057\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:js mark:14-19 decode:true \" title=\"RenderLayer.js\">const geoJSONlayer = new GeoJsonLayer({\n    id: \"geojson-layer\",\n    data: data,\n    pickable: true,\n    wireframe: true,\n    stroked: true,\n    filled: true,\n    extruded: true,\n    elevationScale: 1000,\n    getLineColor: [0, 0, 0, 255],\n    \/\/\u5c5e\u6027\u5024height\u3092\u5143\u306b\u9ad8\u3055\u3092\u6c7a\u5b9a\u3059\u308b\n    getElevation: (f) =&gt; f.properties.height,\n    \/\/\u5c5e\u6027\u5024color\u3092\u5143\u306b\u8272\u3092\u6c7a\u5b9a\u3059\u308b\n    getFillColor: (f) =&gt; f.properties.color,\n    lineWidthMinPixels: 1,\n    transitions: {\n      \/\/ \u66f4\u65b0\u6642\u3001\u9ad8\u3055\u3092\u30c8\u30e9\u30f3\u30b8\u30b7\u30e7\u30f3\u3055\u305b\u308b\u6642\u9593\u30011000ms\n      getElevation: 1000,\n      \/\/ \u66f4\u65b0\u6642\u3001\u30ab\u30e9\u30fc\u30c8\u30e9\u30f3\u30b8\u30b7\u30e7\u30f3\u3055\u305b\u308b\u6642\u9593\u30011000ms\n      getFillColor: 1000\n    }\n  });<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306fdeck.gl Advent Calen&hellip;<\/p>\n","protected":false},"author":1,"featured_media":7574,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"class_list":["post-7565","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-deck-gl","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/7565","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=7565"}],"version-history":[{"count":12,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/7565\/revisions"}],"predecessor-version":[{"id":8018,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/7565\/revisions\/8018"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/7574"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=7565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=7565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=7565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}