This is documentation of an archived release.
For documentation on the current version, please check Knowledge Base.
For documentation on the current version, please check Knowledge Base.
ObliqueViewer
The ObliqueViewer
Class models an individual oblique photo viewer.
An oblique viewer has no real scale, because an oblique photo is not orthographic. Use the viewer zoom factor to zoom in or out. Zoom factor 1.0 represents a full extent view on the photo, zoom factor 2.0 represents a 50% zoom. The default zoom factor for a viewer can be changed by setting the ObliqueDefaultZoomFactor setting.
Functions
These functions are available :
Function Name | Since | Arguments | Return Type | Description |
---|---|---|---|---|
getPhoto | 11.0.3 | <obliquephoto> | Get the currently loaded photo object. | |
getSnapshot | 11.0.3 | <string> | Get the last recorded snapshot image. Returns a base64-encoded string holding an encoded jpeg image. |
|
updateSnapshot | 11.0.3 | void | Updates the snapshot image. Calling this function will generate a snapshot image in the background. After the obliqueViewerSnapshotUpdated event has been fired use getSnapshot() to retrieve the actual snapshot. |
|
getZoomFactor | 11.0.3 | <float> | Get the oblique viewer zoom factor. | |
setZoomFactor | 11.0.3 | <float> | <void> | Set the oblique viewer zoom factor. |
Events
The following events can be fired :
Event Name | Since | Event Properties | Description |
---|---|---|---|
obliqueViewerPhotoChanged | 11.0.3 | viewerId : <string> obliquePhoto : <obliquephoto> | Fired when the photo in the viewer has changed. The new photoposition object is stored in the obliquePhoto property. |
obliqueViewerSnapshotUpdated | 11.0.3 | viewerId : <string> | Fired when the snapshot image of the viewer has changed. The snapshot image can be retrieved by using the getSnapshot() function on the panorama viewer instance. |
Last modified:: 2019/03/25 11:36