{"id":9599,"date":"2021-09-13T07:00:22","date_gmt":"2021-09-12T22:00:22","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=9599"},"modified":"2021-09-03T16:54:37","modified_gmt":"2021-09-03T07:54:37","slug":"laravel-%e3%81%a7-360-%e3%83%91%e3%83%8e%e3%83%a9%e3%83%9e%e5%86%99%e7%9c%9f%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=9599","title":{"rendered":"Laravel \u3067 360\u00b0 \u30d1\u30ce\u30e9\u30de\u5199\u771f\u3092\u8868\u793a\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u79c1\u306f\u30b5\u30a4\u30af\u30ea\u30f3\u30b0\u304c\u8da3\u5473\u306a\u306e\u3067\u3001\u884c\u3063\u305f\u5148\u3067\u3088\u304f\u5199\u771f\u3092\u3068\u308a\u3001\u5f8c\u3067\u6687\u306a\u3068\u304d\u306b\u300c<strong>\u3042\u30fc\u3001\u3042\u306e\u3068\u304d\u697d\u3057\u304b\u3063\u305f\u306a\ud83d\ude0a<\/strong>\u300d\u306a\u3093\u3066\u30ab\u30f3\u30b8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u3069\u3093\u306a\u306b\u3044\u3044\u5199\u771f\u3067\u3082\u5f53\u6642\u76f4\u63a5\u898b\u305f\u666f\u8272\u306b\u306f\u52dd\u3066\u306a\u3044\u3067\u3059\u3088\u306d\u3002<br \/>\n\u3084\u3063\u3071\u308a\u5199\u771f\u306b\u306f\u98a8\u3001\u97f3\u3001\u306b\u304a\u3044\u306f\u3042\u308a\u307e\u305b\u3093\u3057\u3001\u4e00\u90e8\u5206\u3092\u5207\u308a\u53d6\u3063\u305f\u666f\u8272\u306a\u306e\u3067\u6ca1\u5165\u611f\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u3082\u3001\u79d1\u5b66\u306f\u9032\u6b69\u3057\u3066\u307e\u3059\uff01<\/p>\n<p>\u305d\u3046\u3067\u3059\u3002<br \/>\n\u3053\u306e\u300c<strong>\u6ca1\u5165\u611f<\/strong>\u300d\u3092\u3088\u308a\u611f\u3058\u3055\u305b\u3066\u304f\u308c\u308b\u6280\u8853\u304c\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">360\u00b0\u30d1\u30ce\u30e9\u30de\u5199\u771f<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u6b21\u306e\u3088\u3046\u306a\u5199\u771f\u3067\u3059\u3002<\/p>\n<p><iframe style=\"width: 100%; height: 350px;\" src=\"https:\/\/demo-laravel8x.capilano-fw.com\/panorama_photo\/normal\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe>\u203b \u306a\u304a\u3001<code>iframe<\/code>\u7248\u306a\u306e\u3067\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u306f\u52d5\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u308c\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u7528\u610f\u3057\u3066\u305f\u3089\u3059\u3054\u304f\u30af\u30fc\u30eb\u3067\u3059\u3088\u306d\ud83d\udc4d<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Laravel<\/code>\u3067\u3053\u306e\u300c<strong>360\u00b0\u30d1\u30ce\u30e9\u30de\u5199\u771f<\/strong>\u300d\u6a5f\u80fd\u3092\u3064\u304f\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3467 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png\" alt=\"\" width=\"216\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png 216w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9-203x300.png 203w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/>\u300c\u96fb\u52d5\u306e\u6298\u308a\u305f\u305f\u307f\u81ea\u8ee2\u8eca\u307b\u3057\u3044\u2757\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 8.x\u3001Photo Sphere Viewer<\/p>\n<h1>\u30d1\u30ce\u30e9\u30de\u753b\u50cf\u3092\u7528\u610f\u3059\u308b<\/h1>\n<p>\u307e\u305a\u306f\u8868\u793a\u3059\u308b\u753b\u50cf\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b63\u76f4\u306a\u3068\u3053\u308d\u3001\u300c<strong>RICOH THETA<\/strong>\u300d\u306e\u3088\u3046\u306a360\u00b0\u5bfe\u5fdc\u306e\u30ab\u30e1\u30e9\u3092\u8cb7\u304a\u3046\u304b\u3068\u3082\u601d\u3044\u307e\u3057\u305f\u304c\u3001\u4e00\u56de\u4f7f\u3046\u3060\u3051\u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\ud83d\ude02\u3001\u4eca\u56de\u306f <strong>pixabay<\/strong> \u304b\u3089\u4ee5\u4e0b\u306e\u753b\u50cf\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u305b\u3066\u3082\u3089\u3046\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9601\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/09\/laravel_360_panorama_1.jpg\" alt=\"\" width=\"640\" height=\"319\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/09\/laravel_360_panorama_1.jpg 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/09\/laravel_360_panorama_1-300x150.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><br \/>\n\u26a0 \u3054\u6ce8\u610f\uff1a\u3053\u306e\u5199\u771f\u306f\u7e2e\u5c0f\u3057\u3066\u307e\u3059<\/p>\n<p><strong>\u3010\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9URL\u3011<\/strong><br \/>\n<a href=\"https:\/\/pixabay.com\/photos\/winter-panorama-mountains-snow-2383930\/\">https:\/\/pixabay.com\/photos\/winter-panorama-mountains-snow-2383930\/<\/a><\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u753b\u50cf\u306e\u6700\u5927\u89e3\u50cf\u5ea6\u306f\u306a\u3093\u3068\u300c19968\u00d79979\u300d\ud83d\ude33\u306a\u306e\u3067\u3059\u304c\u3001\u3055\u3059\u304c\u306b\u5927\u304d\u3059\u304e\u308b\u306e\u3067\u4e00\u6bb5\u968e\u5c11\u306a\u3044\u89e3\u50cf\u5ea6\u300c1920\u00d7959\u300d\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u300c<strong>public\/images\/<\/strong>\u300d\u30d5\u30a9\u30eb\u30c0\u306b\u8a2d\u7f6e\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9602\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/09\/laravel_360_panorama_2.png\" alt=\"\" width=\"365\" height=\"276\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/09\/laravel_360_panorama_2.png 365w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/09\/laravel_360_panorama_2-300x227.png 300w\" sizes=\"auto, (max-width: 365px) 100vw, 365px\" \/><\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7528\u610f\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001<code>JavaScript<\/code>\u3067360\u00b0\u30d1\u30ce\u30e9\u30de\u5199\u771f\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u4f7f\u3046\u306e\u306f\u300c<strong><a href=\"https:\/\/github.com\/mistic100\/Photo-Sphere-Viewer\" target=\"_blank\" rel=\"noopener\">Photo Sphere Viewer<\/a><\/strong>\u300d\u3067\u3059\u3002<\/p>\n<p>\u4ed6\u306b\u3082\u540c\u69d8\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u70b9\u3067<code>Photo Sphere Viewer<\/code>\u3092\u9078\u3073\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>\u4eca\u3067\u3082\u983b\u7e41\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b<\/li>\n<li>\u30b9\u30bf\u30fc\u304c1000\u3092\u8d85\u3048\u3066\u3044\u308b<\/li>\n<li>\u5b9f\u969b\u306b\u8a66\u3057\u3066\u307f\u305f\u3089\u52d5\u304d\u304c\u30b9\u30e0\u30fc\u30ba\u3060\u3063\u305f<\/li>\n<li>\u30a2\u30a4\u30b3\u30f3\u304c\u304d\u308c\u3044\u3060\u3063\u305f<\/li>\n<li>Photo Sphere Viewer \u3068\u3044\u3046\u97ff\u304d\u304c\u306a\u3093\u304b\u597d\u304d\ud83d\ude0a<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067<code>Photo Sphere Viewer<\/code>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u203b \u306a\u304a\u3001Photo Sphere Viewer\u306b\u306f<code>CDN<\/code>\u3082\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3082\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3081\u3093\u3069\u3046\u306a\u65b9\u306f\u3053\u3053\u306f\u98db\u3070\u3057\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>npm install photo-sphere-viewer<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u306e\u3067\u3001\u30d3\u30eb\u30c9\u3057\u3066\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u307e\u305a\u306f<code>JavaScript<\/code>\u3067\u3059\u3002<\/p>\n<p><strong>resources\/js\/app.js<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>window.PhotoSphereViewer = require('photo-sphere-viewer'); \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001<code>CSS<\/code>\u306e\u65b9\u3082\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p><strong>resources\/css\/app.css<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>@import \"photo-sphere-viewer\/dist\/photo-sphere-viewer.css\"; \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong><\/pre>\n<p>\u3067\u306f\u3001\u30d3\u30eb\u30c9\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>npm run dev<\/strong><\/pre>\n<p>\u3053\u308c\u3067\u3001<code>\/js\/app.js<\/code>\u3068<code>\/css\/app.css<\/code>\u306b<code>Photo Sphere Viewer<\/code>\u304c\u5165\u308a\u307e\u3057\u305f\u3002\u3042\u3068\u306f\u3001\u3053\u306e\uff12\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u305d\u308c\u305e\u308c\u8aad\u307f\u8fbc\u3080\u3060\u3051\u3067OK\u3067\u3059\uff01<\/p>\n<h1>\u30eb\u30fc\u30c8\uff06\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u4eca\u56de\u306f\u30e1\u30a4\u30f3\u304c<code>JavaScript<\/code>\u306b\u306a\u308b\u306e\u3067\u30d3\u30e5\u30fc\uff06\u30eb\u30fc\u30c8\u3060\u3051\u3067\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u30eb\u30fc\u30c8\u3067\u3059\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>Route::get('360_panorama', fn() =&gt; view('360_panorama'));<\/strong><\/pre>\n<p>\u203b \u30a2\u30ed\u30fc\u95a2\u6570\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001<code>php 7.4<\/code>\u672a\u6e80\u306e\u5834\u5408\u306f\u901a\u5e38\u306e<code>function<\/code>\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u30d3\u30e5\u30fc\u3067\u3059\u3002<\/p>\n<p><strong>resources\/views\/360_panorama.blade.php<\/strong><\/p>\n<pre><strong>&lt;html&gt;<\/strong>\r\n<strong>&lt;head&gt;<\/strong>\r\n<strong>    &lt;link rel=\"stylesheet\" href=\"\/css\/app.css\"\/&gt;<\/strong>\r\n<strong>&lt;\/head&gt;<\/strong>\r\n\r\n<strong>&lt;div id=\"app\"&gt;<\/strong>\r\n<strong>    &lt;div id=\"viewer\"&gt;&lt;\/div&gt;<\/strong>\r\n<strong>&lt;\/div&gt;<\/strong>\r\n\r\n<strong>&lt;script src=\"\/js\/app.js\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>&lt;script&gt;<\/strong>\r\n\r\n<strong>    new PhotoSphereViewer.Viewer({<\/strong>\r\n<strong>        container: document.querySelector('#viewer'),<\/strong>\r\n<strong>        panorama: '\/images\/winter-2383930_1920.jpg' \/\/ \ud83d\udc48 \u3053\u3053\u304c\u3055\u3063\u304d\u30bb\u30c3\u30c8\u3057\u305f\u753b\u50cf\u3067\u3059<\/strong>\r\n<strong>    });<\/strong>\r\n\r\n<strong>&lt;\/script&gt;<\/strong>\r\n<strong>&lt;\/html&gt;<\/strong><\/pre>\n<p>\u306f\u3044\u3001\u305f\u3063\u305f\u3053\u308c\u3060\u3051\u3067\u5b8c\u6210\u3067\u3059\u2757<\/p>\n<p>\u3042\u3068\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u300c<strong>http:\/\/******\/360_panorama<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3060\u3051\u3067360\u00b0\u753b\u50cf\u3092\u4f53\u9a13\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\ud83d\udc4d<\/p>\n<p>\u306a\u304a\u3001<code>npm<\/code>\u3092\u4f7f\u308f\u305a\u306b<code>cdn<\/code>\u3067\u5b9f\u88c5\u3059\u308b\u5834\u5408\u306f\u3053\u3061\u3089\u3002<\/p>\n<pre><strong>&lt;html&gt;<\/strong>\r\n<strong>&lt;head&gt;<\/strong>\r\n<strong>    &lt;link rel=\"stylesheet\" href=\"https:\/\/cdn.jsdelivr.net\/npm\/photo-sphere-viewer@4\/dist\/photo-sphere-viewer.min.css\"\/&gt;<\/strong>\r\n<strong>&lt;\/head&gt;<\/strong>\r\n\r\n<strong>&lt;div id=\"app\"&gt;<\/strong>\r\n<strong>    &lt;div id=\"viewer\"&gt;&lt;\/div&gt;<\/strong>\r\n<strong>&lt;\/div&gt;<\/strong>\r\n\r\n<strong>&lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/three\/build\/three.min.js\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>&lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/uevent@2\/browser.min.js\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>&lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/photo-sphere-viewer@4\/dist\/photo-sphere-viewer.min.js\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>&lt;script&gt;<\/strong>\r\n\r\n<strong>    new PhotoSphereViewer.Viewer({<\/strong>\r\n<strong>        container: document.querySelector('#viewer'),<\/strong>\r\n<strong>        panorama: '\/images\/winter-2383930_1920.jpg'<\/strong>\r\n<strong>    });<\/strong>\r\n\r\n<strong>&lt;\/script&gt;<\/strong>\r\n<strong>&lt;\/html&gt;<\/strong><\/pre>\n<p>\u3053\u3061\u3089\u3082\u6570\u884c\u5897\u3048\u305f\u3060\u3051\u3067\u5b8c\u4e86\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3042\u308a\u304c\u305f\u3044\u8a71\u3067\u3059\u306d\ud83d\ude0a<\/p>\n<h1>\u30aa\u30d7\u30b7\u30e7\u30f3<\/h1>\n<p>\u3055\u3059\u304c\u306b\u3053\u308c\u3060\u3051\u3060\u3068\u9762\u767d\u304f\u306a\u3044\u306e\u3067\u3001\u81ea\u7531\u306b\u8a2d\u5b9a\u5909\u66f4\u3067\u304d\u308b\u57fa\u672c\u7684\u306a\u300c<strong>\u30aa\u30d7\u30b7\u30e7\u30f3\u5024<\/strong>\u300d\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h4>plugins<\/h4>\n<p>\u5404\u7a2e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002\uff08\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4f7f\u3044\u65b9\u306f\u3001<a href=\"#marker\">\u30de\u30fc\u30ab\u30fc\u3092\u8868\u793a\u3059\u308b<\/a> \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff09<\/p>\n<h4>caption<\/h4>\n<p>\u30d3\u30e5\u30fc\u30a2\u306e\u4e0b\u306b\u30bf\u30a4\u30c8\u30eb\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/p>\n<h4>size<\/h4>\n<p>\u30d3\u30e5\u30fc\u30a2\u306e\u8868\u793a\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><strong>size: { width:500, height:300 }<\/strong><\/pre>\n<h4>navbar<\/h4>\n<p>\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u306b\u8868\u793a\u3059\u308b\u30dc\u30bf\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>navbar: [<\/strong>\r\n<strong>    'autorotate', \/\/ \u81ea\u52d5\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u30dc\u30bf\u30f3<\/strong>\r\n<strong>    'caption',  \/\/ \u30bf\u30a4\u30c8\u30eb\u8868\u793a<\/strong>\r\n<strong>    'download'  \/\/ \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30dc\u30bf\u30f3<\/strong>\r\n<strong>]<\/strong><\/pre>\n<p>\u3053\u306e\u72b6\u614b\u3067\u8868\u793a\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u2193\u2193\u2193<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9606\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/09\/laravel_360_panorama_3.png\" alt=\"\" width=\"500\" height=\"39\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/09\/laravel_360_panorama_3.png 500w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/09\/laravel_360_panorama_3-300x23.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>\u306a\u304a\u3001\u5168\u30dc\u30bf\u30f3\u306f\u672c\u5bb6\u30da\u30fc\u30b8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3010\u53c2\u8003\u30da\u30fc\u30b8\u3011<a href=\"https:\/\/photo-sphere-viewer.js.org\/guide\/navbar.html#core-buttons\" target=\"_blank\" rel=\"noopener\">https:\/\/photo-sphere-viewer.js.org\/guide\/navbar.html#core-buttons<\/a><\/p>\n<h4>minFov\u3001maxFov<\/h4>\n<p>\u8996\u91ce\u304c\u3069\u3053\u307e\u3067\u306e\u3044\u3051\u308b\u304b\u306e\u6307\u5b9a\u3002<br \/>\n1\u301c179\u306e\u7bc4\u56f2\u3067\u6307\u5b9a\u3002<\/p>\n<h4>defaultZoomLvl<\/h4>\n<p>\u30ba\u30fc\u30e0\u30ec\u30d9\u30eb\u3002<br \/>\n0\u301c100\u3067\u6307\u5b9a\u3002<\/p>\n<h4>fisheye<\/h4>\n<p>\u9b5a\u773c\u30ec\u30f3\u30ba\u3092\u6709\u52b9\u306b\u3059\u308b\u304b\u3057\u306a\u3044\u304b\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u3001<code>false<\/code>\u3002<\/p>\n<h4>defaultLong\u3001defaultLat<\/h4>\n<p>\u521d\u671f\u306e\u56de\u8ee2\u4f4d\u7f6e\u3002<\/p>\n<h4>autorotateDelay<\/h4>\n<p>\u25cf\u79d2\u5f8c\u306b\u81ea\u52d5\u56de\u8ee2\u304c\u306f\u3058\u307e\u308b\u3002\u30df\u30ea\u79d2\u3067\u6307\u5b9a\u3002<\/p>\n<pre><strong>autorotateDelay: 3000<\/strong><\/pre>\n<h4>autorotateSpeed<\/h4>\n<p>\u56de\u8ee2\u901f\u5ea6\u3002<\/p>\n<pre><strong>autorotateSpeed: '5rpm'<\/strong><\/pre>\n<h4>autorotateLat<\/h4>\n<p>\u56de\u8ee2\u3059\u308b\u3068\u304d\u306e\u7e26\u306e\u79fb\u52d5\u3002\uff08\u3064\u307e\u308a\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u771f\u6a2a\u306b\u56de\u8ee2\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\uff09<\/p>\n<h4>lang<\/h4>\n<p>\u7ffb\u8a33\u30c7\u30fc\u30bf\u3002<br \/>\n\u65e5\u672c\u8a9e\u306e\u5834\u5408\u306f\u6b21\u306e\u3088\u3046\u306b\u30bb\u30c3\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>lang: {<\/strong>\r\n<strong>    autorotate: '\u81ea\u52d5\u56de\u8ee2',<\/strong>\r\n<strong>    zoom      : '\u30ba\u30fc\u30e0',<\/strong>\r\n<strong>    zoomOut   : '\u30ba\u30fc\u30e0\u30a2\u30a6\u30c8',<\/strong>\r\n<strong>    zoomIn    : '\u30ba\u30fc\u30e0\u30a4\u30f3',<\/strong>\r\n<strong>    move      : '\u79fb\u52d5',<\/strong>\r\n<strong>    download  : '\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9',<\/strong>\r\n<strong>    fullscreen: '\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3',<\/strong>\r\n<strong>    menu      : '\u30e1\u30cb\u30e5\u30fc',<\/strong>\r\n<strong>    twoFingers: '\uff12\u672c\u306e\u6307\u3067\u64cd\u4f5c',<\/strong>\r\n<strong>    ctrlZoom  : '\u30ba\u30fc\u30e0\u306b ctrl + scroll \u3092\u4f7f\u3046',<\/strong>\r\n<strong>    loadError : '\u753b\u50cf\u304c\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f',<\/strong>\r\n<strong>}<\/strong><\/pre>\n<h4>loadingImg\u3001loadingTxt<\/h4>\n<p>\u8d77\u52d5\u6642\u306b\u8868\u793a\u3059\u308b\u753b\u50cf\u3068\u30c6\u30ad\u30b9\u30c8<\/p>\n<h4>mousewheel\u3001mousemove<\/h4>\n<p>\u30de\u30a6\u30b9\u30db\u30a4\u30fc\u30eb\u3001\u30de\u30a6\u30b9\u30c9\u30e9\u30c3\u30b0\u3092\u6709\u52b9\u306b\u3059\u308b\u304b\u3069\u3046\u304b\u3002<br \/>\n\u521d\u671f\u5024\u306f<code>true<\/code>\u3067\u3059\u3002<\/p>\n<h4>mousewheelCtrlKey<\/h4>\n<p>\u30ba\u30fc\u30e0\u3059\u308b\u5834\u5408\u306f<code>ctrl<\/code>\u30ad\u30fc\u3092\u62bc\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u304f\u306a\u308b\u3002<br \/>\n\u521d\u671f\u5024\u306f<code>false<\/code>\u3002<\/p>\n<h4>captureCursor<\/h4>\n<p>\u30de\u30a6\u30b9\u3092\u79fb\u52d5\u3059\u308b\u3060\u3051\u3067\u56de\u8ee2\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002<br \/>\n\u521d\u671f\u5024\u306f<code>false<\/code>\u3002<\/p>\n<h4>touchmoveTwoFingers<\/h4>\n<p>\u56de\u8ee2\u3059\u308b\u305f\u3081\u306b\uff12\u672c\u6307\u3067\u306e\u30bf\u30c3\u30c1\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002<br \/>\n\u521d\u671f\u5024\u306f<code>false<\/code>\u3002<\/p>\n<h1 id=\"marker\">\u30de\u30fc\u30ab\u30fc\u3092\u8868\u793a\u3059\u308b<\/h1>\n<p>\u3055\u3089\u306b\u3001360\u00b0\u30d1\u30ce\u30e9\u30de\u30d3\u30e5\u30fc\u30a2\u306e\u7279\u5b9a\u306e\u5834\u6240\u306b\u4ee5\u4e0b\u306e\u30d4\u30f3\u3092\u8868\u793a\u3057\u3001\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u6587\u7ae0\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9607\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/09\/laravel_360_panorama_4.png\" alt=\"\" width=\"100\" height=\"100\" \/><\/p>\n<p>\u30de\u30fc\u30ab\u30fc\u306e\u8868\u793a\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u306e\u3067\u3001\u518d\u5ea6\u30d3\u30eb\u30c9\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u307e\u305a\u306f<code>JavaScript<\/code>\u3067\u3059\u3002<\/p>\n<p><strong>resources\/js\/app.js<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\nwindow.PhotoSphereViewer = require('photo-sphere-viewer');\r\n<strong>window.PhotoSphereViewer.MarkersPlugin = require('photo-sphere-viewer\/dist\/plugins\/markers'); \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001<code>CSS<\/code>\u3067\u3059\u3002<\/p>\n<p><strong>resources\/css\/app.css<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\n@import \"photo-sphere-viewer\/dist\/photo-sphere-viewer.css\";\r\n<strong>@import \"photo-sphere-viewer\/dist\/plugins\/markers.css\"; \/\/ \ud83d\udc48 \u3053\u3053\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f<\/strong><\/pre>\n<p>\u3053\u308c\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>npm run dev<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>PhotoSphereViewer.MarkersPlugin<\/code>\u304c\u30de\u30fc\u30ab\u30fc\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u672c\u4f53\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>resources\/views\/360_panorama.blade.php<\/strong><\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;link rel=\"stylesheet\" href=\"\/css\/app.css\"\/&gt;\r\n&lt;\/head&gt;\r\n\r\n&lt;div id=\"app\"&gt;\r\n    &lt;div id=\"viewer\"&gt;&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;script src=\"\/js\/app.js\"&gt;&lt;\/script&gt;\r\n&lt;script&gt;\r\n\r\n    new PhotoSphereViewer.Viewer({\r\n        container: document.querySelector('#viewer'),\r\n        panorama: '\/images\/winter-2383930_1920.jpg',\r\n\r\n        <strong>plugins: [<\/strong>\r\n<strong>            [PhotoSphereViewer.MarkersPlugin, {<\/strong>\r\n<strong>                markers: [{<\/strong>\r\n<strong>                    id: 'image',<\/strong>\r\n<strong>                    longitude: 0.06,<\/strong>\r\n<strong>                    latitude: 0.03,<\/strong>\r\n<strong>                    image: '\/images\/pin-1976106_100.png',<\/strong>\r\n<strong>                    width: 100,<\/strong>\r\n<strong>                    height: 100,<\/strong>\r\n<strong>                    anchor: 'bottom center',<\/strong>\r\n<strong>                    tooltip: '\u30af\u30ea\u30c3\u30af\u3057\u3066\u306d\uff01',<\/strong>\r\n<strong>                    content: '\u5b9d\u7269\u3092\u3046\u3081\u307e\u3057\u305f\uff08\u30a6\u30bd\uff09'<\/strong>\r\n<strong>                }]<\/strong>\r\n<strong>            }],<\/strong>\r\n<strong>        ],<\/strong>\r\n    });\r\n\r\n&lt;\/script&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u306a\u304a\u3001<code>CDN<\/code>\u306e\u5834\u5408\u306f\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u3092\u8a2d\u7f6e\u3059\u308b\u3053\u3068\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><strong>&lt;link rel=\"stylesheet\" href=\"https:\/\/cdn.jsdelivr.net\/npm\/photo-sphere-viewer@4\/dist\/plugins\/markers.min.css\"\/&gt;<\/strong><\/pre>\n<pre><strong>&lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/photo-sphere-viewer@4\/dist\/plugins\/markers.min.js\"&gt;&lt;\/script&gt;<\/strong><\/pre>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u30c7\u30e2\u30da\u30fc\u30b8\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<br \/>\n\u4ee5\u4e0b\u304b\u3089\u3054\u81ea\u8eab\u3067\u30c6\u30b9\u30c8\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\ud83d\udc4d<\/p>\n<p><strong>\u3010\u30c7\u30e2\u30da\u30fc\u30b8\u3011<\/strong> <a href=\"https:\/\/demo-laravel8x.capilano-fw.com\/panorama_photo\/normal\" target=\"_blank\" rel=\"noopener\">\u30ce\u30fc\u30de\u30eb\u7248<\/a>\u3001<a href=\"https:\/\/demo-laravel8x.capilano-fw.com\/panorama_photo\/with_marker\" target=\"_blank\" rel=\"noopener\">\u30de\u30fc\u30ab\u30fc\u4ed8\u304d\u7248<\/a><\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>360\u00b0\u30d1\u30ce\u30e9\u30de\u5199\u771f\u3092\u4f7f\u3046\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30de\u30f3\u30b7\u30e7\u30f3\u3084\u4f4f\u5b85\u3001\u30db\u30c6\u30eb\u306e\u4e2d\u3092\u300c\u6ca1\u5165\u611f\u300d\u3092\u4f34\u3063\u3066\u5185\u89a7\u3057\u3066\u3082\u3089\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u3088\u308a\u304a\u5ba2\u3055\u3093\u306b\u30a4\u30e1\u30fc\u30b8\u3057\u3066\u3082\u3089\u3044\u3084\u3059\u3044\u3002<\/li>\n<li>\u65c5\u884c\u5148\u306e\u666f\u8272\u3092\u30d1\u30ce\u30e9\u30de\u3067\u898b\u305b\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u9b45\u529b\u306e\u3042\u308b\u5546\u54c1\u3092\u63d0\u6848\u3067\u304d\u308b\u3002<\/li>\n<li>\u64ae\u5f71\u7bc4\u56f2\u304c\u5e83\u3044\u306e\u3067\u3001\u5927\u52e2\u3067\u3042\u3063\u3066\u3082\uff11\u679a\u306e\u5199\u771f\u306b\u5199\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li>\n<li>\u30de\u30fc\u30ab\u30fc\u4ed8\u304d\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u3072\u3068\u3064\u3072\u3068\u3064\u306e\u5bb6\u5177\u306e\u8aac\u660e\u3084\u6599\u91d1\u3092\u8868\u793a\uff06\u30ea\u30f3\u30af\u3067\u305d\u306e\u5546\u54c1\u30da\u30fc\u30b8\u3078\u79fb\u52d5\u3067\u304d\u308b\uff08\u3082\u3057\u304f\u306f\u30ab\u30fc\u30c8\u306b\u5546\u54c1\u3092\u8ffd\u52a0\u3067\u304d\u308b\uff09<\/li>\n<\/ul>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4eca\u56de\u306f\u300c<strong>360\u00b0\u30d1\u30ce\u30e9\u30de\u5199\u771f<\/strong>\u300d\u6a5f\u80fd\u3092<code>Laravel<\/code>\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u76ee\u7684\u306b\u3088\u308a\u307e\u3059\u304c\u3001\u73fe\u5730\u306b\u884c\u3063\u3066\u4f53\u9a13\u3092\u3057\u3066\u3082\u3089\u3046\u305f\u3081\u306b\u306f\u304d\u3063\u3068\u3044\u3044\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u306a\u308b\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3057\u304b\u3082\u3001<code>Insta360 Nano S<\/code>\u306e\u3088\u3046\u306a\u6a5f\u6750\u3092\u4f7f\u3048\u3070 <strong>iPhone\u3092360\u00b0\u30ab\u30e1\u30e9\u5316\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b<\/strong>\u306e\u3067\u3001\u305d\u308c\u307b\u3069\u96e3\u3057\u3044\u77e5\u8b58\u304c\u3057\u306a\u304f\u3066\u3082\u5c0e\u5165\u3067\u304d\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u6311\u6226\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9439 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/07\/no_30.png\" alt=\"\" width=\"224\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/07\/no_30.png 224w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/07\/no_30-210x300.png 210w\" sizes=\"auto, (max-width: 224px) 100vw, 224px\" \/>\u300c\u5ff5\u306e\u305f\u3081\uff11\u30f6\u6240\u3067\u4f55\u679a\u3082\u5199\u771f\u3068\u308b\u306e\u3067\u3001<br \/>\n\u30b9\u30de\u30db\u304c\u30d1\u30f3\u30d1\u30f3\u3067\u3059\ud83d\ude02\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u79c1\u306f\u30b5\u30a4\u30af\u30ea\u30f3\u30b0\u304c\u8da3\u5473\u306a\u306e\u3067\u3001\u884c\u3063\u305f\u5148\u3067\u3088\u304f\u5199\u771f\u3092\u3068\u308a\u3001\u5f8c\u3067\u6687\u306a\u3068\u304d\u306b\u300c\u3042\u30fc\u3001\u3042\u306e\u3068\u304d\u697d\u3057\u304b\u3063\u305f\u306a\ud83d\ude0a\u300d\u306a\u3093\u3066\u30ab\u30f3\u30b8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u305f\u3060\u3001\u3069\u3093\u306a\u306b\u3044\u3044 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=9599\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel \u3067 360\u00b0 \u30d1\u30ce\u30e9\u30de\u5199\u771f\u3092\u8868\u793a\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":9617,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,3],"tags":[],"class_list":["post-9599","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-laravel"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/9599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9599"}],"version-history":[{"count":13,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/9599\/revisions"}],"predecessor-version":[{"id":9616,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/9599\/revisions\/9616"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/9617"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}