1

プロジェクト:基本的な Web サイト、Google の VRView for Web でパノラマ画像を表示し、ホットスポットを追加します。

問題:パノラマは正常に表示されますが、ホットスポットを追加できませんでした。ドキュメンテーションが貧弱で、Google で検索しても結果がほとんど得られませんでした。1.5時間。

コード:

<script type="text/javascript">

window.addEventListener('load', onVrViewLoad)
function onVrViewLoad() {
  var vrView = new VRView.Player('#vrview', {
    image: 'uploads/pano.jpg',
    is_stereo: false
  });

  vrView.addHotspot('hotspot-one', {
         pitch: 30, // In degrees. Up is positive.
          yaw: 20, // In degrees. To the right is positive.
          radius:   0.05, // Radius of the circular target in meters.
          distance: 2, // Distance of target from camera in meters.
    });
}

</script>

<div id="vrview">
</div>

リクエスト:これらのホットスポットを実装できた人はいますか? また、ボタンをクリックして追加しようとしましたが、役に立ちませんでした。laravel サーバーと基本的な html 実装の両方で試してみましたが、役に立ちませんでした。

サポート ドキュメント/例:

4

1 に答える 1