Types
import type { ReloadableLayer } from "@arcgis/core/layers/mixins/ReloadableLayer.js";
Subclasses
AnnotationFeatureLayer, CatalogLayer, DimensionFeatureLayer, FeatureLayer, SubtypeGroupLayer
Since
ArcGIS Maps SDK for JavaScript 5.2

ReloadableLayer is a mixin that adds support for reloading layer's schema and properties.

Properties

PropertyTypeClass
readonly

reloading

readonly Property
Type
boolean

Indicates if the layer is in the process of reloading its properties and schema after a call to reload().

See also

Methods

MethodSignatureClass
reload(): Promise<boolean>

reload

Method
Signature
reload (): Promise<boolean>

Reloads the layer's schema and properties.

This method is debounced to prevent redundant, concurrent network requests. If called while an update is already in progress, a single subsequent execution is queued, and any other intermediate calls are discarded.

See also
Returns
Promise<boolean>

true when the layer is successfully updated with data from the portal item or service; false when the layer is not updated, not loaded, or does not reference a service.