Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ILayerManager

Manages custom layers for a map

export
interface

ILayerManager

Hierarchy

  • ILayerManager

Implemented by

Index

Methods

addLayer

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

    template

    T

    memberof

    ILayerManager

    Type parameters

    • T: olLayerBase

    Parameters

    • name: string

      The name of the layer

    • layer: T

      The layer object

    • Optional allowReplace: undefined | false | true

    Returns ILayerInfo

    The added layer

addLayerFromParsedFeatures

getLayer

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

    template

    T

    memberof

    IMapViewer

    Type parameters

    • T: olLayerBase

    Parameters

    • name: string

    Returns T | undefined

getLayers

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

    memberof

    ILayerManager

    Returns ILayerInfo[]

hasLayer

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

    Parameters

    • name: string

    Returns boolean

parseFeaturesFromFile

  • Attempts to parse features for the given input file. A failed attempt is when calling hasFeatures() on the returned parsed features returns false.

    memberof

    ILayerManager

    since

    0.13

    Parameters

    Returns Promise<IParsedFeatures>

removeLayer

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

    memberof

    IMapViewer

    Parameters

    • name: string

    Returns olLayerBase | undefined

Generated using TypeDoc