OrientedImageryViewerViewModel

AMD: require(["esri/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel"], (OrientedImageryViewerViewModel) => { /* code goes here */ });
ESM: import OrientedImageryViewerViewModel from "@arcgis/core/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js";
Class: esri/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel
Inheritance: OrientedImageryViewerViewModel Accessor
Since: ArcGIS Maps SDK for JavaScript 4.28
beta

Provides the logic for the OrientedImageryViewer widget. Read the Widget development - ViewModel pattern guide topic to get a better understanding of how to use this class.

See also

Constructors

OrientedImageryViewerViewModel

Constructor
new OrientedImageryViewerViewModel(properties)
Parameter
properties Object
optional

See the properties for a list of all the properties that may be passed into the constructor.

Property Overview

Any properties can be set, retrieved or listened to. See the Working with Properties topic.
Show inherited properties Hide inherited properties
Name Type Summary Class
Number

Changes the image brightness loaded in the viewer.

OrientedImageryViewerViewModel
Number

Changes the image contrast loaded in the viewer.

OrientedImageryViewerViewModel
Boolean

Toggles the visibility of the current footprint polygon associated with the selected image loaded in the viewer.

OrientedImageryViewerViewModel
String

The name of the class.

Accessor
Boolean

When false, the view click interaction enabled for the oriented imagery viewer widget.

OrientedImageryViewerViewModel
Boolean

When true, the image gallery functionality is available in the widget.

OrientedImageryViewerViewModel
Boolean

Indicates if the image has been loaded onto the oriented imagery viewer.

OrientedImageryViewerViewModel
Boolean

Indicates if the additional footprint polygons are visible for the selected image loaded in the viewer.

OrientedImageryViewerViewModel
Boolean

Indicates if the additional camera locations are visible for the selected image loaded in the viewer.

OrientedImageryViewerViewModel
OrientedImageryLayer

OrientedImageryLayer associated with the widget.

OrientedImageryViewerViewModel
Boolean

Indicates if the map-image location tool available in the widget.

OrientedImageryViewerViewModel
Number

Changes the image sharpness loaded in the viewer.

OrientedImageryViewerViewModel

Property Details

brightness

Property
brightness Number

Changes the image brightness loaded in the viewer. Brightness is adjusted in the oriented imagery viewer using interactive sliders. Settings will be preserved for subsequent images loaded in the oriented imagery viewer. The value must be between -10 and 10.

Default Value:0

contrast

Property
contrast Number

Changes the image contrast loaded in the viewer. Contrast is adjusted in the oriented imagery viewer using interactive sliders. Settings will be preserved for subsequent images loaded in the oriented imagery viewer. The value must be between -10 and 10.

Default Value:0

currentCoverageVisible

Property
currentCoverageVisible Boolean

Toggles the visibility of the current footprint polygon associated with the selected image loaded in the viewer. Current footprint coverage allows you to better understand how the images in the oriented imagery layer relate to the map. The footprint of the image is symbolized with red fill on the map. If you zoom or pan in the oriented imagery viewer, the footprint coverage graphic will update on the map to highlight the area on the map that is visible in the image.

declaredClass

Inherited
Property
declaredClass Stringreadonly
Inherited from Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

disabled

Property
disabled Boolean

When false, the view click interaction enabled for the oriented imagery viewer widget. This allows users to pick a location on the map and display the best image will the viewer. When true the view click interaction will be defaulted to map navigation.

Default Value:false

imageGalleryEnabled

Property
imageGalleryEnabled Boolean

When true, the image gallery functionality is available in the widget. Image gallery currently only supports MRF and Tif image formats.

Default Value:true

imageLoaded

Property
imageLoaded Boolean

Indicates if the image has been loaded onto the oriented imagery viewer.

Default Value:false

isAdditionalCoverageVisible

Property
isAdditionalCoverageVisible Boolean

Indicates if the additional footprint polygons are visible for the selected image loaded in the viewer. The footprint graphics (appearing in blue) show the coverage footprints of all the additional images in the layer that depict the location selected by the user.

Default Value:false

isAdditionalPointSourcesVisible

Property
isAdditionalPointSourcesVisible Boolean

Indicates if the additional camera locations are visible for the selected image loaded in the viewer. The point location graphics (appearing in blue) shows the camera locations for additional images that depict the location selected by the user.

layer

Property
layer OrientedImageryLayer

OrientedImageryLayer associated with the widget. The layer contains feature data and oriented imagery properties required by the viewer to load the image and generate the associated graphics.

mapImageConversionToolState

Property
mapImageConversionToolState Boolean

Indicates if the map-image location tool available in the widget. When activated, the user can select a point on the map and corresponding a location in pixel space will be displayed in the image, and vice versa.

Default Value:false

sharpness

Property
sharpness Number

Changes the image sharpness loaded in the viewer. Sharpness is adjusted in the oriented imagery viewer using interactive sliders. Settings will be preserved for subsequent images loaded in the oriented imagery viewer." The value must be between 0 and 1.

Default Value:0

Method Overview

Show inherited methods Hide inherited methods
Name Return Type Summary Class

Adds one or more handles which are to be tied to the lifecycle of the object.

Accessor
Boolean

Returns true if a named group of handles exist.

Accessor

Removes a group of handles owned by the object.

Accessor

Method Details

addHandles

Inherited
Method
addHandles(handleOrHandles, groupKey)
Inherited from Accessor

Adds one or more handles which are to be tied to the lifecycle of the object. The handles will be removed when the object is destroyed.

// Manually manage handles
const handle = reactiveUtils.when(
  () => !view.updating,
  () => {
    wkidSelect.disabled = false;
  },
  { once: true }
);

this.addHandles(handle);

// Destroy the object
this.destroy();
Parameters
handleOrHandles WatchHandle|WatchHandle[]

Handles marked for removal once the object is destroyed.

groupKey *
optional

Key identifying the group to which the handles should be added. All the handles in the group can later be removed with Accessor.removeHandles(). If no key is provided the handles are added to a default group.

hasHandles

Inherited
Method
hasHandles(groupKey){Boolean}
Inherited from Accessor

Returns true if a named group of handles exist.

Parameter
groupKey *
optional

A group key.

Returns
Type Description
Boolean Returns true if a named group of handles exist.
Example
// Remove a named group of handles if they exist.
if (obj.hasHandles("watch-view-updates")) {
  obj.removeHandles("watch-view-updates");
}

removeHandles

Inherited
Method
removeHandles(groupKey)
Inherited from Accessor

Removes a group of handles owned by the object.

Parameter
groupKey *
optional

A group key or an array or collection of group keys to remove.

Example
obj.removeHandles(); // removes handles from default group

obj.removeHandles("handle-group");
obj.removeHandles("other-handle-group");

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.