Class EsriMap

Hierarchy

  • Accessor
  • LayersMixin
  • TablesMixin
    • EsriMap

Constructors

  • The Map class contains properties and methods for storing, managing, and overlaying layers common to both 2D and 3D viewing.

    Read more...

    Parameters

    • Optional properties: MapProperties

    Returns EsriMap

Properties

allLayers: Collection<Layer>

A flattened collection of all layers in the map.

Read more...

allTables: Collection<Layer>

A flattened collection of tables anywhere in the map's hierarchy.

Read more...

basemap: EsriBasemap

Specifies a basemap for the map.

Read more...

declaredClass: string
destroyed: boolean
editableLayers: Collection<EsriFeatureLayer | SceneLayer | SubtypeGroupLayer>

A collection of editable layers.

Read more...

ground: Ground

Specifies the surface properties for the map.

Read more...

initialized: boolean
layers: Collection<Layer>

A collection of operational layers.

Read more...

tables: Collection<Layer>

A collection of layer instances that are tables saved in a Map and/or a WebMap.

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 EsriMap

  • Adds a layer to the layers collection.

    Read more...

    Parameters

    • layer: Promise<any> | Layer
    • Optional index: number

    Returns void

  • Type Parameters

    • T

    Parameters

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

    Returns void

  • Adds a layer or an array of layers to the layers collection.

    Read more...

    Parameters

    • layers: Layer[]
    • Optional index: number

    Returns void

  • Destroys the map, and any associated resources, including its layers, basemap, tables, and ground.

    Read more...

    Returns void

  • Returns a layer based on the given layer ID.

    Read more...

    Parameters

    • layerId: string

    Returns Layer

  • Returns a table based on the given table ID.

    Read more...

    Parameters

    • tableId: string

    Returns Layer

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    Returns boolean

  • Parameters

    • propertyName: string

    Returns void

  • Deprecated

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

    Parameters

    • handles: IHandle | IHandle[]

    Returns void

  • Removes the specified layer from the layers collection.

    Read more...

    Parameters

    • layer: Layer

    Returns Layer

  • Removes all layers.

    Read more...

    Returns Layer[]

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    Returns void

  • Removes the specified layers.

    Read more...

    Parameters

    • layers: Layer[]

    Returns Layer[]

  • Changes the layer order.

    Read more...

    Parameters

    • layer: Layer
    • index: number

    Returns Layer

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriMap

  • Parameters

    • props: HashMap<any>

    Returns EsriMap

  • Parameters

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

    Returns WatchHandle

Generated using TypeDoc