A LayerPreset that can be applied to a map or a map extension.

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.LAYER_PRESET

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.

Current basemap of a map.

basemapOptions: (WellKnownBasemap | BasemapProperties)[]

Available basemap options of a map.

description: string

A human readable description of the LayerPreset.

icon: string

An optional icon that can be displayed when listing the LayerPreset.

iconUrl: string

An optional url to an image that can be displayed when listing the LayerPreset.

LayerPresetSettings that can be applied to the layers of a map.

title: string

A human readable title for the LayerPreset.

Accessors

  • 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>

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

    Returns Promise<void>

  • Applies this LayerPreset to a map extension or a collection of map extensions.

    Parameters

    • mapOrExtension:
          | Map
          | MapExtension
          | Iterable<Map, any, any>
          | Iterable<MapExtension, any, any>

      The map extension or collection of map extensions to apply the LayerPreset to.

    Returns Promise<void>

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

    Returns Promise<void>

  • Initializes the item.

    Returns Promise<void>

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

    Returns string

  • Creates a LayerPreset from an ESRI map or map extension.

    Parameters

    • mapOrExtension: Map | MapExtension

      The map or map extension to create a LayerPreset from.

    Returns LayerPreset