PanoramaControl

全景组件

new YS.PanoramaControl(panoramUrl, options)

全景
Name Type Description
panoramUrl String 全景图的文件夹地址
options Object options有下列属性
Name Type Description
div String | HTMLDomElement 需要显示的全景图的盒子的div的id,或者DOM对象
isClose Boolean 是否需要右上角关闭按钮
Implements:
Example:
var youScene = new YS.YouScene({sdkServerUrl: 'http://ys.infoearth.com:9090/Server/'});
youScene.init("global");

var paletteControl = new YS.PanoramaControl('http://ys.infoearth.com:9090/doc/example/img');
Demo:

Members

readonlyname : String

组件名字
Implements:

Methods

changeUrl(panoramUrl)

更换全景图片的地址
Name Type Description
panoramUrl String 全景图的文件夹地址

destroy()Undefined

销毁组件 重载时请务必调用IControl.prototype.destroy.apply(this);
Returns:
Implements:

isDestroyed()Boolean

该组件是否销毁 (true代表销毁了,false代表未销毁), 销毁后将不可以再使用
Returns:
Implements: