Class EsriTileLayer

Hierarchy

  • Layer
  • SublayersOwner
  • ArcGISMapService
  • ArcGISCachedService
  • RefreshableLayer
  • ScaleRangeLayer
  • PortalLayer
  • BlendLayer
  • CustomParametersMixin
  • APIKeyMixin
    • EsriTileLayer

Constructors

  • The TileLayer allows you work with a cached map service exposed by the ArcGIS Server REST API and add it to a Map as a tile layer.

    Read more...

    Parameters

    • Optional properties: TileLayerProperties

    Returns EsriTileLayer

Properties

allSublayers: Collection<EsriSublayer>

A flat Collection of all the sublayers in the TileLayer including the sublayers of its sublayers.

Read more...

apiKey: string

An authorization string used to access a resource or service.

Read more...

attributionDataUrl: string

The URL that points to the location of the layer's attribution data.

Read more...

blendMode: "screen" | "average" | "color-burn" | "color-dodge" | "color" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "invert" | "lighten" | "lighter" | "luminosity" | "minus" | "multiply" | "normal" | "overlay" | "plus" | "reflect" | "saturation" | "soft-light" | "source-atop" | "source-in" | "source-out" | "vivid-light" | "xor"

Blend modes are used to blend layers together to create an interesting effect in a layer, or even to produce what seems like a new layer.

Default

normal

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-BlendLayer.html#blendMode)
capabilities: ArcGISMapServiceCapabilities

Indicates the layer's supported capabilities.

Read more...

copyright: string

The copyright text as defined by the service.

Read more...

customParameters: any

A list of custom parameters appended to the URL of all resources fetched by the layer.

Read more...

declaredClass: string
destroyed: boolean
effect: Effect

Effect provides various filter functions that can be performed on the layer to achieve different visual effects similar to how image filters work.

Default

null

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-BlendLayer.html#effect)
fullExtent: EsriExtent

The full extent of the layer.

Read more...

hasAttributionData: boolean

Indicates if the layer has attribution data.

Read more...

id: string

The unique ID assigned to the layer.

Read more...

initialized: boolean
legendEnabled: boolean

Indicates whether the layer will be included in the legend.

Default

true

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#legendEnabled)
listMode: "show" | "hide" | "hide-children"

Indicates how the layer should display in the LayerList widget.

Default

"show"

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#listMode)
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 layer's resources have loaded.

Default

false

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#loaded)
maxScale: number

The maximum scale (most zoomed in) at which the layer is visible in the view.

Default

0

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#maxScale)
minScale: number

The minimum scale (most zoomed out) at which the layer is visible in the view.

Default

0

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#minScale)
opacity: number

The opacity of the layer.

Default

1

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

The portal item from which the layer is loaded.

Read more...

refreshInterval: number

Refresh interval of the layer in minutes.

Default

0

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-RefreshableLayer.html#refreshInterval)
resampling: boolean

Resampling is enabled by default in 2D MapView and 3D SceneView.

Default

true

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#resampling)
sourceJSON: any

The tiled map service's metadata JSON exposed by the ArcGIS REST API.

Read more...

spatialReference: EsriSpatialReference

The spatial reference of the layer as defined by the service.

Read more...

sublayers: Collection<EsriSublayer>
tileInfo: TileInfo

Contains information about the tiling scheme for the layer.

Read more...

tileServers: string[]

An array of tile servers used for changing map tiles.

Read more...

title: string

The title of the layer used to identify it in places such as the LayerList widget.

Read more...

type: "tile"
url: string

The URL of the REST endpoint of the layer.

Read more...

version: number

The version of ArcGIS Server in which the map service is published.

Read more...

visible: boolean

Indicates if the layer is visible in the View.

Default

true

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#visible)

Methods

  • Parameters

    • propertyName: string

    Returns any

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriTileLayer

  • 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

  • Called by the views, such as MapView and SceneView, when the layer is added to the Map.layers collection and a layer view must be created for it.

    Read more...

    Parameters

    • view: any
    • Optional options: LayerCreateLayerViewOptions

    Returns Promise<LayerView>

  • Returns a deep clone of a map service's sublayers as defined by the service.

    Read more...

    Returns Collection<EsriSublayer>

  • Destroys the layer and any associated resources (including its portalItem, if it is a property on the layer).

    Read more...

    Returns void

  • Emits an event on the instance.

    Read more...

    Parameters

    • type: string
    • Optional event: any

    Returns boolean

  • Fetches custom attribution data for the layer when it becomes available.

    Read more...

    Returns Promise<any>

  • This method fetches a tile for the given level, row and column present in the view.

    Read more...

    Parameters

    • level: number
    • row: number
    • col: number
    • Optional options: TileLayerFetchTileOptions

    Returns Promise<HTMLImageElement>

  • Returns the sublayer with the given layerId.

    Read more...

    Parameters

    • id: number

    Returns EsriSublayer

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

  • This method returns a URL to a tile for a given level, row and column.

    Read more...

    Parameters

    • level: number
    • row: number
    • col: number

    Returns string

  • Indicates whether there is an event listener on the instance that matches the provided event name.

    Read more...

    Parameters

    • type: string

    Returns boolean

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

  • Parameters

    • propertyName: string

    Returns void

  • Parameters

    • name: "refresh"
    • eventHandler: TileLayerRefreshEventHandler

    Returns IHandle

  • Parameters

    • name: "layerview-create"
    • eventHandler: TileLayerLayerviewCreateEventHandler

    Returns IHandle

  • Parameters

    • name: "layerview-create-error"
    • eventHandler: TileLayerLayerviewCreateErrorEventHandler

    Returns IHandle

  • Parameters

    • name: "layerview-destroy"
    • eventHandler: TileLayerLayerviewDestroyEventHandler

    Returns IHandle

  • Deprecated

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

    Parameters

    • handles: IHandle | IHandle[]

    Returns void

  • Fetches all the data for the layer.

    Read more...

    Returns void

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    Returns void

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriTileLayer

  • Parameters

    • props: HashMap<any>

    Returns EsriTileLayer

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

Generated using TypeDoc