Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ShapefileDynamicLayerSource

The ShapefileDynamicLayerSource class is an implementation of LayerSource.

example



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

Hierarchy

  • ShapefileDynamicLayerSource

Implements

Index

Constructors

constructor

  • Parameters

    Returns ShapefileDynamicLayerSource

  • 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<ShapefileLayer>

      Array of ShapefileLayer

    • Optional data: IFeatureCollection

    Returns ShapefileDynamicLayerSource

  • 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<ShapefileLayer>

      Array of ShapefileLayer

    • Optional data: IFeatureCollection

    Returns ShapefileDynamicLayerSource

Properties

Private _activeLayersChangedSource

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

Private _activeStateChangedSource

_activeStateChangedSource: any = new EventSource<void>("shapefileLayerSource: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>("shapefileLayerSource:opacityChanged")

Private _updatingStateChangedSource

_updatingStateChangedSource: any = new EventSource<void>("shapefileLayerSource: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(): IFeatureCollection
  • set data(data: IFeatureCollection): void
  • Property data IFeatureCollection

    Returns IFeatureCollection

  • Property data IFeatureCollection

    Parameters

    • data: IFeatureCollection

    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. 'shapefile:dynamic'

    Returns string

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

    Parameters

    • layerType: string

    Returns void

layers

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

    Returns Array<ShapefileLayer>

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 and raises 'shapefileLayerSource:activeLayersChanged' event.

    Returns void

  • Turns on isActive Property and raises 'shapefileLayerSource:activeLayersChanged' event.

    Returns void

  • Turns on isActive Property and raises 'shapefileLayerSource:activeLayersChanged' event.

    Returns void

deactivate

  • deactivate(): void
  • deactivate(): void
  • deactivate(): void
  • Turns off isActive Property and raises "shapefileLayerSource:activeLayersChanged" event.

    Returns void

  • Turns off isActive Property and raises "shapefileLayerSource:activeLayersChanged" event.

    Returns void

  • Turns off isActive Property and raises "shapefileLayerSource:activeLayersChanged" event.

    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