Extends the capabilities of an Esri Basemap object.

Type Parameters

Hierarchy (view full)

Constructors

Properties

_handles: Handles<unknown, ResourceHandle>
_id: string

The unique ID for this entity. Once set, this should never change.

_itemType: string = ItemType.BASEMAP_EXTENSION

The item type for this entity when it participates in an App.

Do not directly reference this property. Use EventNames and EventTypes helpers from @arcgis/core/Evented.

description?: string

A user defined description.

included: boolean = true

Whether this basemap should be included in a basemap picker.

isSeries?: boolean

If true, the layers in this basemap will be presented one at a time, rather that all at once.

onClick?: Action

An action that will be performed when the user clicks on the basemap in the basemap picker.

taskSettings: TaskSettings
factory: BasemapExtensionFactory = defaultBasemapExtensionFactory

The factory that will be used whenever a BasemapExtension needs to be created. Applications can supply their own factory to customize BasemapExtension creation.

Accessors

  • get basemap(): Basemap
  • The Esri Basemap object being extended.

    Returns Basemap

  • get iconUrl(): string
  • The URL pointing to an image that represents the basemap.

    Returns string

  • set iconUrl(value): void
  • Parameters

    • value: string

    Returns void

  • get id(): string
  • The unique ID for this entity.

    Returns string

  • get itemType(): string
  • The item type for this entity when it participates in an App.

    Returns string

Methods

  • A callback executed when a base layer is added to the basemap after the LayerExtension has been initialized.

    Parameters

    Returns Promise<void>

  • Called to perform cleanup. Subclasses should override this method rather than destroy() to perform custom cleanup.

    Returns Promise<void>

  • A callback executed when a reference layer is added to the basemap after the LayerExtension has been initialized.

    Parameters

    Returns Promise<void>

  • Called after normal initialization. Note: Child items are initialized before this is called.

    Returns Promise<void>

  • A clean-up function that should get called whenever the item is disposed of.

    Returns Promise<void>

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • key: K

    Returns T[K]

  • Initializes the item.

    Returns Promise<void>

  • Creates an item:// URI reference to this entity.

    Returns string