Class: FdPanoramaViewer

FdTools. FdPanoramaViewer

全景图视景器


new FdPanoramaViewer(container)

Parameters:
Name Type Description
container HTMLElement

用于承载全景的DIV元素

Example
var panoViewer = new Freedo.FdTools.FdPanoramaViewer("panoContainer");

panoViewer.loadPanorama('./a.jpg', 0, 90);
// 销毁
panoViewer.destroy();

Members


arrowShow

获取上下帧箭头是否显示


arrowShow

设置上下帧箭头是否显示

Methods


destroy()

销毁


loadPanorama(imageFileUrl, imageHeading, cameraHeading)

加载全景图片

Parameters:
Name Type Description
imageFileUrl String | Array.<String>

全景图片Url(如果传入数组, 则认为第一个是缩略图, 第二个是原图.)

imageHeading Number

照片曝光时的heading角度(单位为度)

cameraHeading Number

加载全景图时观察相机的heading角度(单位为度)


unloadPanorama()

卸载全景图