Skip to content
import BasemapGalleryItem from "@arcgis/core/widgets/BasemapGallery/support/BasemapGalleryItem.js";
Inheritance:
BasemapGalleryItemAccessor
Since
ArcGIS Maps SDK for JavaScript 4.3

The BasemapGalleryItem class represents one of the BasemapGalleryViewModel.items in the BasemapGallery.

See also

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

basemap

Property
Type
Basemap

The item's associated basemap.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

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

error

readonly Property
Type
EsriError | null | undefined

The Error object returned if an error occurred.

state

readonly Property
Type
BasemapGalleryItemState

The item's state.

Default value
"loading"

uid

readonlyinherited Property
Type
string
Inherited from: IdentifiableMixin
Since
ArcGIS Maps SDK for JavaScript 4.33

An automatically generated unique identifier assigned to the instance. The unique id is generated each time the application is loaded.

view

Property
Type
MapViewOrSceneView | null | undefined

The view associated with this item.

Type definitions

BasemapGalleryItemState

Type definition
Type
"ready" | "loading" | "error"