Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LayerManager

Implements

Index

Constructors

Methods

  • addLayer<T>(name: string, layer: T, allowReplace?: boolean): ILayerInfo
  • Adds a layer to the map

    Type parameters

    • T: BaseLayer<T>

    Parameters

    • name: string
    • layer: T
    • Optional allowReplace: boolean

    Returns ILayerInfo

    The added layer

  • Parameters

    Returns void

  • getLayer<T>(name: string): undefined | T
  • Gets a layer by the given name

    Type parameters

    • T: BaseLayer<T>

    Parameters

    • name: string

    Returns undefined | T

  • Gets all custom layers on this map, sorted by draw order (First item is top-most layer. Last item is bottom-most layer.)

    Returns ILayerInfo[]

  • hasLayer(name: string): boolean
  • Gets whether the specified custom layer exists on the map

    Parameters

    • name: string

    Returns boolean

  • removeLayer(name: string): undefined | BaseLayer
  • Removes a layer by the given name

    Parameters

    • name: string

    Returns undefined | BaseLayer

  • tryGetSubjectLayer(): undefined | BaseLayer
  • Get the active subject layer if present on the current map. In a MapGuide-specific context, subject layers do not exist and this method will always return undefined in such cases

    Returns undefined | BaseLayer

Generated using TypeDoc