Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapLayerConfig

Class that manages the configuration and style providers based on layer code.

export

Hierarchy

  • MapLayerConfig

Index

Constructors

constructor

  • Initializes and returns a map configuration instance with the provided styles.

    memberof

    MapLayerConfig

    Parameters

    Returns MapLayerConfig

Methods

getConfig

  • getConfig(layer: string): LayerOptions
  • Returns the layer configuration for the specified layer code.

    memberof

    MapLayerConfig

    Parameters

    • layer: string

    Returns LayerOptions

getStyle

  • getStyle(layer: string, type: "marker" | "polyline" | "polygon" | "raster"): LayerStyle
  • Returns the style associated with the specified layer code, if any.

    memberof

    MapLayerConfig

    Parameters

    • layer: string
    • type: "marker" | "polyline" | "polygon" | "raster"

    Returns LayerStyle

getTextStyle

  • Returns the text style.

    memberof

    MapLayerConfig

    Returns MarkerStyleProvider

setConfig

  • setConfig(layer: string, config: LayerOptions): void
  • Parameters

    • layer: string
    • config: LayerOptions

    Returns void

setStyle

  • Sets the style(s) for the specified layer code.

    memberof

    MapLayerConfig

    Parameters

    Returns void

setStyles

  • setStyles(layers: {}): void
  • Sets the style(s) for the specified layers.

    memberof

    MapLayerConfig

    Parameters

    Returns void

setTextStyle

  • Sets the text style to use for text annotations.

    memberof

    MapLayerConfig

    Parameters

    Returns void

Generated using TypeDoc