Class EsriBasemap

Hierarchy

  • Accessor
  • Loadable
  • JSONSupport
    • EsriBasemap

Constructors

  • Creates a new basemap object.

    Read more...

    Parameters

    • Optional properties: BasemapProperties

    Returns EsriBasemap

Properties

baseLayers: Collection<Layer>

A collection of tile layers that make up the basemap's features.

Read more...

declaredClass: string
destroyed: boolean
id: string

An identifier used to refer to the basemap when referencing it elsewhere.

Read more...

initialized: boolean
loadError: Error

The Error object returned if an error occurred while loading.

Default

null

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#loadError)
loadStatus: "loaded" | "loading" | "not-loaded" | "failed"

Represents the status of a load operation.

Default

not-loaded

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#loadStatus)
loadWarnings: any[]

A list of warnings which occurred while loading.

Read more...

loaded: boolean

Indicates whether the basemap instance has loaded.

Default

false

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#loaded)
portalItem: PortalItem

The portal item.

Read more...

referenceLayers: Collection<Layer>

A collection of tiled reference layers for displaying labels.

Read more...

spatialReference: EsriSpatialReference

The spatial reference of the Basemap.

Read more...

thumbnailUrl: string

The URL pointing to an image that represents the basemap.

Read more...

title: string

The title of the basemap.

Read more...

Methods

  • Parameters

    • propertyName: string

    Returns any

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriBasemap

  • Type Parameters

    • T

    Parameters

    • handles: IHandle | IHandle[]
    • Optional groupKey: Exclude<T, IHandle>

    Returns void

  • Cancels a load() operation if it is already in progress.

    Read more...

    Returns void

  • Destroys the basemap, and any associated resources, including its layers and portalItem.

    Read more...

    Returns void

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    Returns boolean

  • isFulfilled() may be used to verify if creating an instance of the class is fulfilled (either resolved or rejected).

    Read more...

    Returns boolean

  • isRejected() may be used to verify if creating an instance of the class is rejected.

    Read more...

    Returns boolean

  • isResolved() may be used to verify if creating an instance of the class is resolved.

    Read more...

    Returns boolean

  • Loads the resources referenced by this class.

    Read more...

    Parameters

    • Optional signal: AbortSignal

    Returns Promise<any>

  • Loads all the externally loadable resources associated with the basemap.

    Read more...

    Returns Promise<EsriBasemap>

  • Parameters

    • propertyName: string

    Returns void

  • Deprecated

    Since 4.25. Use addHandles(), removeHandles() and hasHandles() instead.

    Parameters

    • handles: IHandle | IHandle[]

    Returns void

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    Returns void

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriBasemap

  • Parameters

    • props: HashMap<any>

    Returns EsriBasemap

  • Converts an instance of this class to its ArcGIS portal JSON representation.

    Read more...

    Returns any

  • Parameters

    • path: string | string[]
    • callback: WatchCallback
    • Optional sync: boolean

    Returns WatchHandle

  • when() may be leveraged once an instance of the class is created.

    Read more...

    Parameters

    • Optional callback: Function
    • Optional errback: Function

    Returns Promise<any>

  • Parameters

    • json: any

    Returns EsriBasemap

Generated using TypeDoc