Javascript PhotoSphereViewer:<;a href="…&引用&燃气轮机;不在触摸屏上工作

Javascript PhotoSphereViewer:<;a href="…&引用&燃气轮机;不在触摸屏上工作,javascript,iphone,three.js,Javascript,Iphone,Three.js,我用“PhotoSphereViewer”库制作了一个简单的页面,我想用“Markers插件”添加几个链接 它在firefox和safari上很有魅力,但不幸的是,它在触摸屏/手机浏览器上根本不起作用 链接看起来“可点击”(变为活动状态,红色),但不会打开。。。 我的理论是,它和球体的导航有关,因为当“PhotoSphereViewer”设置为“TwoFingerMode”时,链接确实会打开 有没有办法解决这个问题 谢谢 plugins: [PhotoSphereViewer.Gyros

我用“PhotoSphereViewer”库制作了一个简单的页面,我想用“Markers插件”添加几个链接

它在firefox和safari上很有魅力,但不幸的是,它在触摸屏/手机浏览器上根本不起作用

链接看起来“可点击”(变为活动状态,红色),但不会打开。。。 我的理论是,它和球体的导航有关,因为当“PhotoSphereViewer”设置为“TwoFingerMode”时,链接确实会打开

有没有办法解决这个问题

谢谢

plugins:    [PhotoSphereViewer.GyroscopePlugin, 
            [PhotoSphereViewer.MarkersPlugin,{markers:[{
                    id: '1',
                    className: 'link',
                    longitude: 0.7,
                    latitude: 0,
                    html: '<a href="http://google.com">1234</a>',
                    anchor: 'bottom right',
                    scale: [0.5, 1.5],
                    style: {
                      maxWidth: '200px',
                      color: 'white',
                      fontSize: '30px',
                      fontFamily: 'Helvetica, sans-serif',
                      textAlign: 'center',

                      },
                    }, 
                  ]
                }]
              ]
plugins:[PhotoSphereViewer.plugin,
[PhotoSphereViewer.MarkersPlugin,{markers:[{
id:'1',
类名:“链接”,
经度:0.7,
纬度:0,
html:“”,
主播:“右下角”,
比例:[0.5,1.5],
风格:{
maxWidth:'200px',
颜色:'白色',
fontSize:'30px',
fontFamily:“Helvetica,无衬线”,
textAlign:'中心',
},
}, 
]
}]
]

无法添加指向html标记的链接,因为单击被拦截。相反,您应该将自定义
数据
附加到标记上,并使用
选择标记
事件

const-viewer=新的PhotoSphereViewer({
插件:[PhotoSphereViewer.plugin,
[PhotoSphereViewer.MarkersPlugin,{markers:[{
id:'1',
类名:“链接”,
经度:0.7,
纬度:0,
html:'1234',
主播:“右下角”,
比例:[0.5,1.5],
风格:{
maxWidth:'200px',
颜色:'白色',
fontSize:'30px',
fontFamily:“Helvetica,无衬线”,
textAlign:'中心',
},
},
数据:{href:'http://google.com' },
]
}]
]
});
const-markersPlugin=viewer.getPlugin(PhotoSphereViewer.markersPlugin);
markersPlugin.on('select-marker',(e,marker)=>{
window.location.href=marker.data.href;
});

无法添加指向html标记的链接,因为单击被拦截。相反,您应该将自定义
数据
附加到标记上,并使用
选择标记
事件

const-viewer=新的PhotoSphereViewer({
插件:[PhotoSphereViewer.plugin,
[PhotoSphereViewer.MarkersPlugin,{markers:[{
id:'1',
类名:“链接”,
经度:0.7,
纬度:0,
html:'1234',
主播:“右下角”,
比例:[0.5,1.5],
风格:{
maxWidth:'200px',
颜色:'白色',
fontSize:'30px',
fontFamily:“Helvetica,无衬线”,
textAlign:'中心',
},
},
数据:{href:'http://google.com' },
]
}]
]
});
const-markersPlugin=viewer.getPlugin(PhotoSphereViewer.markersPlugin);
markersPlugin.on('select-marker',(e,marker)=>{
window.location.href=marker.data.href;
});

控制台显示什么内容?:p你知道你可以将android手机上的chrome浏览器连接到电脑浏览器上,以检查开发者控制台吗?不幸的是,我没有安卓手机……这很不幸。我对该库的了解不够,无法提供帮助:/console会说什么?:p你知道你可以将android手机上的chrome浏览器连接到电脑浏览器上,以检查开发者控制台吗?不幸的是,我没有安卓手机……这很不幸。我对该图书馆了解不够,无法帮助:/