项目:基本网站,使用Google的VRView for Web显示全景图像并添加热点.
问题:全景显示正常,无法添加热点,文档很差+谷歌搜索导致几乎没有结果.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>
Run Code Online (Sandbox Code Playgroud)
请求:有没有人能够实施这些热点?我也尝试添加点击按钮,无济于事.试图在laravel服务器和基本的html实现中,无济于事.
支持文档/示例: