embedpanoInit(name) {
if (document.getElementById(‘krpanoObject‘)) {
document.getElementById(‘krpanoObject‘).innerHTML = ‘‘
}
embedpano({
vars: {
startscene: name,
},
xml: this.details.qjxxXml,
// swf: configBase.mapUrl.jiejingSWF,
target: ‘krpanoObject‘,
passQueryParameters: true,
focus: false,
html5: ‘auto‘,
onready: this.krpano_onready_callback //重点在这接收krpano变量
})
},
krpano_onready_callback(krpano_interface) {
this.krpano = krpano_interface;//获取krpano变量
//接下来就可以执行krpano的内部动作或自定义动作--call 内容必须用双引号括起来
// this.krpano.call("loadscene(‘pano38‘, OPENBLEND(0.9, 0.0, 0.8, 0.9, easeOutQuad)");//切换场景
// this.krpano.call("stopallsounds()");//关闭所有背景音乐
},