import BasemapsSource from "@arcgis/core/basemapGallery/BasemapsSource.js";
Inheritance
BasemapsSource→Accessor
Subclasses
LocalBasemapsSource
Since
ArcGIS Maps SDK for JavaScript 5.2

Defines a source of basemaps.

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.
PropertyTypeClass
readonly inherited
readonly

basemaps

Property
Type
Collection<Basemap>

The collection of basemaps provided by the source.

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.

state

readonly Property
Type
BasemapsSourceState

The current state of the source.

Methods

MethodSignatureClass
refresh(): void

refresh

Method
Signature
refresh (): void

Refreshes the basemaps provided by the source.

Returns
void