Extends the capabilities of an Esri Ground object.

Hierarchy (view full)

Constructors

Properties

_id: string

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

_itemType: string = ItemType.GROUND_EXTENSION

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

_watchHandles: IHandle[] = []

A set of watch handles that get cleaned up when the class instance is destroyed.

taskSettings: TaskSettings
factory: GroundExtensionFactory = defaultGroundExtensionFactory

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

Accessors

  • get ground(): Ground
  • The Esri Ground object being extended.

    Returns Ground

  • 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

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

    Returns Promise<void>

  • A callback executed when a layer is added as a child of the GroundExtension, after the GroundExtension 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>

  • Emits an event on the instance.

    Parameters

    Returns boolean

  • Initializes the item.

    Returns Promise<void>

  • Registers an event handler on the instance.

    Parameters

    Returns IHandle

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

    Returns string

  • Checks if the Ground object is the one created by default when the EsriAPI parses a ground.

    Parameters

    • ground: Ground

      The Ground object to check.

    Returns boolean