▾
import "@arcgis/map-components/components/arcgis-oriented-imagery-viewer";- Inheritance
- ArcgisOrientedImageryViewer→
HTMLElement
- Since
- ArcGIS Maps SDK for JavaScript 4.31
The Oriented Imagery Viewer component allows the user to explore and use their oriented images.
Demo
Properties
| Property | Attribute | Type |
|---|---|---|
| action-bar-position | "bottom" | "end" | "start" | "top" | |
| auto-destroy-disabled | ||
| current-coverage-visible | ||
| data-capture-enabled | ||
| disabled | ||
| gallery-opened | ||
| hide-additional-camera-locations-toggle | ||
| hide-additional-footprints-toggle | ||
| hide-current-footprint-toggle | ||
| hide-directional-navigation-toggle | ||
| hide-display-image-toggle | ||
| hide-enhancement-tool-toggle | ||
| hide-explore-images3d-toggle | ||
| hide-explore-images-toggle | ||
| hide-header | ||
| hide-image-gallery-toggle | ||
| hide-image-measurement-tools-group | ||
| hide-image-navigation-group | ||
| hide-image-overlays-toggle | ||
| hide-map-image-location-tool-toggle | ||
| hide-menu | ||
| hide-navigation-tool-toggle | ||
| hide-overlays-group | ||
| hide-popups-action | ||
| hide-search-group | ||
| hide-sequential-navigation-toggle | ||
| hide-superimpose-view-toggle | ||
| hide-utilities-group | ||
| icon | Icon["icon"] | |
| image-enhancement-tool-active | ||
| readonly | | |
| image-overlays-opened | ||
| is-additional-coverage-visible | ||
| is-additional-point-sources-visible | ||
| label | ||
| | ||
| map-image-conversion-tool-state | ||
| map-layer-id | ||
| navigation-tool-active | ||
| oriented-imagery-layer-item-id | ||
| preload-media | ||
| reference-element | ||
| readonly | | |
| readonly | | |
| readonly | | |
| readonly | | |
| |
actionBarPosition
- Type
- "bottom" | "end" | "start" | "top"
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Specifies the position of the action bar within the oriented imagery viewer.
| Position | Description |
|---|---|
| bottom | Action bar is positioned at the bottom of the viewer. |
| end | Action bar is positioned at the end of the viewer. |
| start | Action bar is positioned at the start of the viewer. |
| top | Action bar is positioned at the top of the viewer. |
- Attribute
- action-bar-position
autoDestroyDisabled
- Type
- boolean
If true, the component will not be destroyed automatically when it is disconnected from the document. This is useful when you want to move the component to a different place on the page, or temporarily hide it. If this is set, make sure to call the destroy() method when you are done to prevent memory leaks.
- Attribute
- auto-destroy-disabled
- Default value
- false
- Example
- <arcgis-oriented-imagery-viewer auto-destroy-disabled></arcgis-oriented-imagery-viewer>orientedImageryViewerElement.autoDestroyDisabled = true;
currentCoverageVisible
- Type
- 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.
- Attribute
- current-coverage-visible
- Default value
- false
dataCaptureEnabled
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 4.32
Indicates whether the data capture tools are enabled in the oriented imagery viewer for digitization.
When set to true, the data capture (edit) option will be visible on the digitizable overlayed feature layers available in the image overlays tab.
On clicking the data capture option, the digitization tools will appear at the bottom of the viewer once the overlay tab is closed.
- Attribute
- data-capture-enabled
- Default value
- false
disabled
- Type
- boolean
When false, the view click interaction is enabled for the oriented imagery viewer component. This allows users to pick a location on the map and display the best image to the viewer.
When true, the view click interaction will be defaulted to map navigation.
- Attribute
- disabled
- Default value
- false
galleryOpened
- Type
- boolean
Indicates if the image gallery functionality is available in the component. To visualize additional images of the same location, select the image gallery from the oriented imagery viewer. The gallery is a carousel of low-resolution thumbnails of all images that depict the selected map location. Click a thumbnail to view the full-resolution image in the oriented imagery viewer.
- Attribute
- gallery-opened
- Default value
- false
hideAdditionalCameraLocationsToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that toggles visibility of camera locations for additional images, meaning images other than the currently displayed image.
- Attribute
- hide-additional-camera-locations-toggle
- Default value
- false
hideAdditionalFootprintsToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that toggles visibility of footprints for additional images, meaning images other than the currently displayed image.
- Attribute
- hide-additional-footprints-toggle
- Default value
- false
hideCurrentFootprintToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that toggles visibility of the footprint for the currently displayed image.
- Attribute
- hide-current-footprint-toggle
- Default value
- false
hideDirectionalNavigationToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that toggles directional navigation mode.
- Attribute
- hide-directional-navigation-toggle
- Default value
- false
hideDisplayImageToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that displays imagery for the clicked feature. Unlike explore-images mode, this action uses the feature returned from the click location instead of performing a spatial query for the best image.
- Attribute
- hide-display-image-toggle
- Default value
- false
hideEnhancementToolToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that opens the image enhancement controls.
- Attribute
- hide-enhancement-tool-toggle
- Default value
- false
hideExploreImages3dToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that toggles 3D explore-images mode.
- Attribute
- hide-explore-images3d-toggle
- Default value
- false
hideExploreImagesToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that toggles explore-images mode, allowing the user to click the map and load imagery for that location.
- Attribute
- hide-explore-images-toggle
- Default value
- false
hideHeader
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Indicates whether to hide the header of the widget.
- Attribute
- hide-header
- Default value
- false
hideImageGalleryToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that opens the image gallery.
- Attribute
- hide-image-gallery-toggle
- Default value
- false
hideImageMeasurementToolsGroup
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the top-level action bar group for measurement tools.
- Attribute
- hide-image-measurement-tools-group
- Default value
- false
hideImageNavigationGroup
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the top-level action bar group for image navigation tools.
- Attribute
- hide-image-navigation-group
- Default value
- false
hideImageOverlaysToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that opens the image overlays UI.
- Attribute
- hide-image-overlays-toggle
- Default value
- false
hideMapImageLocationToolToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that toggles the map-image conversion tool.
- Attribute
- hide-map-image-location-tool-toggle
- Default value
- false
hideMenu
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Indicates whether to hide the action bar of the widget.
- Attribute
- hide-menu
- Default value
- false
hideNavigationToolToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that toggles the navigation tool.
- Attribute
- hide-navigation-tool-toggle
- Default value
- false
hideOverlaysGroup
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the top-level action bar group for overlay controls.
- Attribute
- hide-overlays-group
- Default value
- false
hidePopupsAction
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that shows image popups and attributes.
- Attribute
- hide-popups-action
- Default value
- false
hideSearchGroup
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the top-level action bar group for search and image discovery tools.
- Attribute
- hide-search-group
- Default value
- false
hideSequentialNavigationToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that toggles sequential navigation mode.
- Attribute
- hide-sequential-navigation-toggle
- Default value
- false
hideSuperimposeViewToggle
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the action button that toggles superimposition of the current image in a 3D scene when the required camera properties and metadata are available.
- Attribute
- hide-superimpose-view-toggle
- Default value
- false
hideUtilitiesGroup
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates whether to hide the top-level action bar group for utility tools.
- Attribute
- hide-utilities-group
- Default value
- false
icon
- Type
- Icon["icon"]
Icon which represents the component. Typically used when the component is controlled by another component (e.g. by the Expand component).
- See also
- Attribute
- icon
- Default value
- "oriented-imagery-widget"
imageEnhancementToolActive
- Type
- boolean
Indicates if the image enhancement tool is active. When true, the component displays the functionalities to adjust the brightness, contrast, and sharpness of the
image in the oriented imagery viewer using interactive sliders.
Settings will be preserved for subsequent images loaded in the oriented imagery viewer.
- Attribute
- image-enhancement-tool-active
- Default value
- false
imageGalleryEnabled
- Type
- boolean
When true, the image gallery functionality is available in the component.
Image gallery currently only supports MRF and TIFF image formats.
- Default value
- false
imageOverlaysOpened
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 4.32
Indicates whether the image overlays tab in the oriented imagery viewer is open.
When set to true, the overlays tab appears at the bottom of the viewer. It includes two toggle options: overlay camera locations and overlay map features.
These options enable users to visualize and overlay map features that intersect with the image’s footprint within the viewer.
- Attribute
- image-overlays-opened
- Default value
- false
isAdditionalCoverageVisible
- Type
- 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.
- Attribute
- is-additional-coverage-visible
- Default value
- false
isAdditionalPointSourcesVisible
- Type
- boolean
Indicates if the additional camera locations are visible for the selected image loaded in the viewer. The point location graphics (appearing in blue) show the camera locations for additional images that depict the location the user selects.
- Attribute
- is-additional-point-sources-visible
- Default value
- false
layer
- Type
- OrientedImageryLayer | null | undefined
Specifies the current OrientedImageryLayer to use. The layer is one that the component connects to and utilizes to populate the image. The layer contains the feature data and oriented imagery properties required by the viewer to load the image and generate the associated graphics.
Use layer, mapLayerId, and orientedImageryLayerItemId independently; only one should be set at a time.
mapImageConversionToolState
- Type
- boolean
Indicates if the map-image location tool is available in the component.
When true, the user can select a point on the map and the corresponding location in pixel space will be displayed in the image, and vice versa.
- Attribute
- map-image-conversion-tool-state
- Default value
- false
mapLayerId
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The layer ID of an Oriented Imagery Layer in the associated map. When set, the component will attempt to find and use the layer with the provided ID from the map.
Use layer, mapLayerId, and orientedImageryLayerItemId independently; only one should be set at a time.
- Attribute
- map-layer-id
- Example
- <arcgis-scene item-id="aa1c036445824e06a2d1b0e12e02a924"><arcgis-oriented-imagery-viewer slot="top-right" map-layer-id="1962adf1de1-layer-82"></arcgis-oriented-imagery-viewer></arcgis-scene>
navigationToolActive
- Type
- boolean
When true, the navigation tool is available in the component.
The navigation tool can be used to explore the images that contain the selected location on the map using a compass.
To view a different image of the selected map location, click the camera locations (blue dots), or click a segment to view
the best image from that segment (segments with images are shown in white; segments without images are gray).
- Attribute
- navigation-tool-active
- Default value
- false
preloadMedia
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
When true, loading an image via directional or sequential navigation caches all neighboring images associated with that image. Navigating to adjacent images then uses the cached assets, reducing load times and improving viewer performance.
- Attribute
- preload-media
- Default value
- false
referenceElement
- Type
- ArcgisReferenceElement | string | undefined
By assigning the id attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
- Attribute
- reference-element
view
- Type
- MapViewOrSceneView | null | undefined
The view associated with the component.
Note: The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this
viewproperty which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-oriented-imagery-viewer component will be associated with a map or scene component rather than using theviewproperty.
Methods
| Method | Signature |
|---|---|
| inherited | componentOnReady(): Promise<this> |
| destroy(): Promise<void> | |
| loadBestImage(mapPoint: Point, options?: AbortOptions): Promise<void> | |
| reset(): void | |
| showImageByObjectId(objectId: ObjectId, options?: ShowImageByObjectIdOptions): Promise<void> |
componentOnReady
- Signature
-
componentOnReady (): Promise<this>
Creates a promise that resolves once the component is fully loaded.
- Returns
- Promise<this>
- Example
- const arcgisOrientedImageryViewer = document.createElement("arcgis-oriented-imagery-viewer");document.body.append(arcgisOrientedImageryViewer);await arcgisOrientedImageryViewer.componentOnReady();console.log("arcgis-oriented-imagery-viewer is ready to go!");
loadBestImage
- Signature
-
loadBestImage (mapPoint: Point, options?: AbortOptions): Promise<void>
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Loads the best available image for a given map point and displays it in the viewer. The method takes a Point object as an argument, which represents the location on the map for which the best image should be loaded. The viewer will analyze the available images for that location and select the one that best matches the given location.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| mapPoint | The point object representing the location on the map for which to load the best image. | | |
| options | Optional parameters for aborting the image loading process. This can be used to cancel the operation if it takes too long or if the user navigates away from the location before the image is loaded. | |
reset
- Signature
-
reset (): void
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Resets the viewer to its initial state. This method clears the currently displayed image or video from the viewer and removes all associated graphics from the map.
- Returns
- void
showImageByObjectId
- Signature
-
showImageByObjectId (objectId: ObjectId, options?: ShowImageByObjectIdOptions): Promise<void>
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Displays the image corresponding to the specified object ID.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| objectId | The object ID of the image to display. | | |
| options | Optional parameters for displaying the image. | |
Events
| Name | Type |
|---|---|
| CustomEvent<{ name: "imageGalleryEnabled" | "layer" | "selectedPoint" | "selectedFeatureObjectId" | "state"; }> | |
arcgisPropertyChange
arcgisPropertyChange: CustomEvent<{ name: "imageGalleryEnabled" | "layer" | "selectedPoint" | "selectedFeatureObjectId" | "state"; }> Emitted when the value of a property is changed. Use this to listen to changes to properties.
arcgisReady
arcgisReady: CustomEvent<void> Emitted when the component associated with a map or scene view is ready for user interaction.