Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KmlDynamicLayerSource

The KmlDynamicLayerSource class is an implementation of LayerSource.

example



var dataSource = new KmlDynamicLayerSource(id, name, description, layers, options.data);

Hierarchy

  • KmlDynamicLayerSource

Implements

Index

Constructors

constructor

  • new KmlDynamicLayerSource(id: string, name: string, description: string, layers?: Array<KmlLayer>, data?: any): KmlDynamicLayerSource
  • new KmlDynamicLayerSource(id: string, name: string, description: string, layers?: Array<KmlLayer>, data?: any): KmlDynamicLayerSource
  • new KmlDynamicLayerSource(id: string, name: string, description: string, layers?: Array<KmlLayer>, data?: any): KmlDynamicLayerSource
  • Parameters

    • id: string

      string identifier for the layer source.

    • name: string

      string name of the layer source.

    • description: string

      string description of the layer source.

    • Optional layers: Array<KmlLayer>

      Array of KmlLayer

    • Optional data: any

      document

    Returns KmlDynamicLayerSource

  • Parameters

    • id: string

      string identifier for the layer source.

    • name: string

      string name of the layer source.

    • description: string

      string description of the layer source.

    • Optional layers: Array<KmlLayer>

      Array of KmlLayer

    • Optional data: any

      document

    Returns KmlDynamicLayerSource

  • Parameters

    • id: string

      string identifier for the layer source.

    • name: string

      string name of the layer source.

    • description: string

      string description of the layer source.

    • Optional layers: Array<KmlLayer>

      Array of KmlLayer

    • Optional data: any

      document

    Returns KmlDynamicLayerSource

Properties

Private _activeLayersChangedSource

_activeLayersChangedSource: any = new EventSource<void>("kmlLayerSource:activeLayersChanged")

Private _activeStateChangedSource

_activeStateChangedSource: any = new EventSource<void>("kmlLayerSource:activeStateChanged")

Private _data

_data: any

Private _description

_description: any

Private _id

_id: any

Private _isActive

_isActive: any = false

Private _isUpdating

_isUpdating: any = false

Private _layerType

_layerType: any

Private _layers

_layers: any

Private _name

_name: any

Private _opacity

_opacity: any = 1

Private _opacityChangedSource

_opacityChangedSource: any = new EventSource<void>("kmlLayerSource:opacityChanged")

Private _updatingStateChangedSource

_updatingStateChangedSource: any = new EventSource<void>("kmlLayerSource:updatingStateChanged")

active

  • get active(): boolean
  • set active(active: boolean): void
  • Property active boolean.

    Returns boolean

  • Property active boolean.

    Parameters

    • active: boolean

    Returns void

activeLayersChanged

  • get activeLayersChanged(): Event<void>
  • Property activeLayersChanged [[Event]].

    Returns Event<void>

activeStateChanged

  • get activeStateChanged(): Event<void>
  • Property activeStateChanged [[Event]].

    Returns Event<void>

data

  • get data(): Document
  • set data(data: Document): void
  • Property data [[Document]]

    Returns Document

  • Property data [[Document]]

    Parameters

    • data: Document

    Returns void

description

  • get description(): string
  • Property description string.

    Returns string

Private getChildren

  • getChildren(layers: Layer[]): Layer[]
  • Parameters

    • layers: Layer[]

    Returns Layer[]

id

  • get id(): string
  • Property id is a string that is the source identifier.

    Returns string

isBaselayer

  • get isBaselayer(): boolean
  • Property isBaselayer boolean.

    Returns boolean

isUpdating

  • get isUpdating(): boolean
  • set isUpdating(value: boolean): void
  • Property isUpdating boolean.

    Returns boolean

  • Property isUpdating boolean.

    Parameters

    • value: boolean

    Returns void

layerType

  • get layerType(): string
  • set layerType(layerType: string): void
  • Property layerType is a string that indicates the type of layer i.e. 'kml:dynamic'

    Returns string

  • Property layerType is a string that indicates the type of layer i.e. 'kml:dynamic'

    Parameters

    • layerType: string

    Returns void

layers

  • get layers(): Array<KmlLayer>
  • Property layers array of KmlLayer.

    Returns Array<KmlLayer>

name

  • get name(): string
  • Property name string.

    Returns string

opacity

  • get opacity(): number
  • set opacity(value: number): void
  • Property opacity number.

    Returns number

  • Property opacity number.

    Parameters

    • value: number

    Returns void

opacityChanged

  • get opacityChanged(): Event<void>
  • Property opacityChanged [[Event]].

    Returns Event<void>

updatingStateChanged

  • get updatingStateChanged(): Event<void>
  • Property updatingStateChanged [[Event]].

    Returns Event<void>

Methods

activate

  • activate(): void
  • activate(): void
  • activate(): void
  • Turns on isActive Property.

    Returns void

  • Turns on isActive Property.

    Returns void

  • Turns on isActive Property.

    Returns void

deactivate

  • deactivate(): void
  • deactivate(): void
  • deactivate(): void
  • Turns off isActive Property.

    Returns void

  • Turns off isActive Property.

    Returns void

  • Turns off isActive Property.

    Returns void

getFlattenedLayers

  • getFlattenedLayers(): Layer[]
  • getFlattenedLayers(): Layer[]
  • getFlattenedLayers(): Layer[]
  • Gets all layers in one array.

    Returns Layer[]

    an array of Layer

  • Gets all layers in one array.

    Returns Layer[]

    an array of Layer

  • Gets all layers in one array.

    Returns Layer[]

    an array of Layer