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

A collection-driven source for Basemaps in a BasemapGalleryModel.

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

basemaps

autocast Property
Type
Collection<Basemap>

A collection of Basemaps.

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 source's state. The state is always ready.

Methods

MethodSignatureClass
destroy(): void
refresh(): void

destroy

Method
Signature
destroy (): void

Destroys the local basemaps source.

Returns
void

refresh

Method
Signature
refresh (): void

Refreshes the source basemaps. Note: refresh will not affect LocalBasemapsSource. Modify basemaps directly instead.

Returns
void