Table of Contents

Class orbit.webclient.ObliqueViewer

Class Summary

Constructor Attributes Constructor Name and Description
orbit.webclient.ObliqueViewer(viewerId, flash)
Class ObliqueViewer models a single oblique viewer.

Method Summary

Method Attributes Method Name and Description
addEventListener(eventType, handler)
Add an event listener.
getPhoto()
Get the current photo.
getSnapshot()
Get the last oblique snapshot.
getViewerId()
getZoomFactor()
Get the oblique viewer zoom factor.
removeEventListener(eventType, handler)
Remove an event listener.
setZoomFactor(value)
Set the oblique viewer zoom factor.
updateSnapshot()
Update the oblique snapshot.

Class Detail

orbit.webclient.ObliqueViewer(viewerId, flash)
Class ObliqueViewer models a single oblique viewer.

Parameters

{String} viewerId The viewer identifier.
{goog.ui.media.FlashObject} flash The parent flash object.

Method Detail

addEventListener

Add an event listener.

Parameters

{String} eventType The event type to listen to.
{Function} handler The function to call when the event occurs.

getPhoto

Get the current photo.

getSnapshot

Get the last oblique snapshot.

Returns

returns a base64 encoded jpeg image.

getViewerId

getZoomFactor

Get the oblique viewer zoom factor.

removeEventListener

Remove an event listener.

Parameters

{String} eventType The type of the event.
{Function} handler The handler function.

setZoomFactor

Set the oblique viewer zoom factor.

Parameters

value the new scale value.

updateSnapshot

Update the oblique snapshot. After this method is called, a snapshot is generated asynchronously. Wait for the SNAPSHOT_UPDATED event and then use getSnapshot() to retrieve the actual snapshot.