| Constructor Attributes | Constructor Name and Description |
|---|---|
orbit.webclient.ObliqueViewer(viewerId, flash)Class ObliqueViewer models a single oblique viewer. |
| 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. |
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. |
Add an event listener.
Parameters
{String} eventType | The event type to listen to. |
{Function} handler | The function to call when the event occurs. |
Get the current photo.
Get the last oblique snapshot.
Returns
returns a base64 encoded jpeg image.
Get the oblique viewer zoom factor.
Remove an event listener.
Parameters
{String} eventType | The type of the event. |
{Function} handler | The handler function. |
Set the oblique viewer zoom factor.
Parameters
| value | the new scale value. |
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.