~~NOCACHE~~ ====== Class orbit.webclient.ObliqueViewer ====== ===== Class Summary ===== ^ Constructor Attributes ^ Constructor Name and Description ^ | | ''**[[orbit.webclient.ObliqueViewer#constructor|orbit.webclient.ObliqueViewer]]**(viewerId, flash)''\\ Class ObliqueViewer models a single oblique viewer. | ===== Method Summary ===== ^ Method Attributes ^ Method Name and Description ^ | | ''**[[orbit.webclient.ObliqueViewer#addEventListener|addEventListener]]**(eventType, handler)''\\ Add an event listener. | | | ''**[[orbit.webclient.ObliqueViewer#getPhoto|getPhoto]]**()''\\ Get the current photo. | | | ''**[[orbit.webclient.ObliqueViewer#getSnapshot|getSnapshot]]**()''\\ Get the last oblique snapshot. | | | ''**[[orbit.webclient.ObliqueViewer#getViewerId|getViewerId]]**()''\\ | | | ''**[[orbit.webclient.ObliqueViewer#getZoomFactor|getZoomFactor]]**()''\\ Get the oblique viewer zoom factor. | | | ''**[[orbit.webclient.ObliqueViewer#removeEventListener|removeEventListener]]**(eventType, handler)''\\ Remove an event listener. | | | ''**[[orbit.webclient.ObliqueViewer#setZoomFactor|setZoomFactor]]**(value)''\\ Set the oblique viewer zoom factor. | | | ''**[[orbit.webclient.ObliqueViewer#updateSnapshot|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|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|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.