Table of Contents

WebClient → Oblique

Oblique

The Oblique Class manages the ObliqueViewers and implements other oblique-related functions that are not viewer-specific.

In contrast to the Panorama component, the Oblique component automatically shows the best photo's. It does so by looking at the focus coordinate and loading the closest photo's. As the focus coordinate changes, it is centered everywhere. The initial startup coordinate is the publication's startup coordinate.

Panning the map updates the focus coordinate to the center of the map.

Enabling the Follow Focus mode allows the user to update the focus coordinate by dragging in any of the viewers.
Enabling the Follow Zoom mode allows the other viewers to synchronize with zoom changes in the other viewers.

Functions

Function Name Since Arguments Return Type Description
getFocusCoordinate 11.0.3 <coordinate> Get the current focus coordinate.
The coordinate CRS is the current API crs.
setFocusCoordinate 11.0.3 coordinate : <coordinate>
crs : <string>
approximate : <boolean>
Set the current focus coordinate.
- x,y : The coordinate to focus on.
- crs : CRS of the coordinate.
- approximate : Approximate coordinate conversions instead of calling the server.
Returns true if local approximation was successful.
Approximation can be used when fast updates are required, for example during a mouse drag. When the user releases the mouse drag, you can set the focus coordinate with approximation set to false, to get a 100% accurate end-result. Approximation only works if you specify a coordinate in the Publication CRS or the Oblique Project CRS.
getViewerIds 11.0.3 [<string>,…] Get the identifiers of the opened oblique viewers.
getViewer 11.0.3 viewerId : <string> ObliqueViewer Get an individual oblique viewer.
- viewerId : The identifier of the viewer to return.
Returns a viewer or null incase it was not found.
getSnapshotButtonVisible 11.0.3 <boolean> Get the visibility of the “Snapshot” toolbar button.
setSnapshotButtonVisible 11.0.3 visibility : <boolean> void Set the visibility of the “Snapshot” toolbar button.
getToolsButtonVisible 11.0.3 <boolean> Get the visibility of the “Oblique tools” toolbar button.
setToolsButtonVisible 11.0.3 visibility : <boolean> void Set the visibility of the “Oblique tools” toolbar button.

Measuring

Function Name Since Arguments Return Type Description
startMeasuring 11.1.0 mode : <string> void Start the measure function.
The user can complete a measurement by double-clicking.
stopMeasuring 11.1.0 void Stop the measuring function and return to navigation.

Events

The following events can be fired :

Event Name Since Event Properties Description
obliqueFocusCoordinateChanged
11.0.3 coordinate : <coordinate>
coordinateCRS : <crs>
Fired when the focus coordinate is changed.
The coordinate CRS will always be the current API crs.
obliqueMeasureStart
11.1.0 mode : <string> Fired when the measure function started.
obliqueMeasureStop
11.1.0 mode : <string> Fired when the measure function stopped.
obliqueMeasureUpdate
11.1.0 mode : <string>
properties : <properties>
Fired when the measurement was updated.
A measurement is updated when a new coordinate is measured.
obliqueMeasureComplete
11.1.0 mode : <string>
properties : <properties>
Fired when the measurement was completed.
A measurement is completed when a final coordinate is measured.
A final coordinate is measured by double-clicking.
obliqueMeasureClear
11.1.0 mode : <string> Fired when the current measurement was cleared.