Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected _isDestroyed

_isDestroyed: boolean

app

appInfo

appInfo: AppInfo

clearAllButtonText

clearAllButtonText: Observable<string>

clearAllButtonTitle

clearAllButtonTitle: Observable<string>

id

id: string

items

layerSelector

layerSelector: LayerSelector

layerSelectorInitialized

layerSelectorInitialized: Observable<boolean>

libraryId

libraryId: string

selectAllButtonText

selectAllButtonText: Observable<string>

selectAllButtonTitle

selectAllButtonTitle: Observable<string>

Methods

Protected _handleMapServiceLayersChanged

Protected _handleMapServiceRemoved

  • Parameters

    Returns void

Protected _handleMapServicesAdded

  • Parameters

    Returns void

Protected _subscribeEvents

  • _subscribeEvents(): void
  • Returns void

Protected _waitUntilLayerSelectorInitialized

  • _waitUntilLayerSelectorInitialized(): Promise<void>
  • Returns Promise<void>

auto

  • auto(arg0: any, arg1: any, arg2: any): void
  • Binds a handler to an Observable or to a dojo.connect. Binding to an Observable:

    ``` this.auto(someObservable, function (newValue) { });

    with explicit scope:

    this.auto(someObservable, this, function (newValue) { });

    Alternately, pass an event name as a string to use dojo.connect:

    this.auto(window, "onclick", function () { }); ```

    Parameters

    • arg0: any

      Either an Observable (for observable bindings) or a regular object (if arg1 is a string)

    • arg1: any

      If arg0 is an Observable, a function or scope object. Otherwise, an event name (to use with dojo.connect).

    • arg2: any

      If arg0 is an Observable, a function handler.

    Returns void

destroy

  • destroy(): void
  • Destroys the object completely

    Returns void

destroyBindings

  • destroyBindings(): void

filter

  • The filter based on which the layers are included in the 'items' collection. Can be modified at runtime. Override this method in a sub class to define the filter.

    Parameters

    Returns boolean

getAllItems

  • Recursively walks the tree of items and returns a flat array of all items.

    Returns LayerSelectorItem[]

    all LayerSelectorItems of any depth.

getResource

  • getResource(resourceKey: string, locale?: string): string
  • Gets a language resource from the Application's resource dictionary, given a key, and optional locale. Returns null if the resource does not exist.

    Parameters

    • resourceKey: string
    • Optional locale: string

      The locale of the resource to fetch. Defaults to the current application locale.

    Returns string

handleAllLayersDisabled

  • handleAllLayersDisabled(): void
  • The handler that is invoked when all layers are disabled. Override this method in a sub class to define the handler.

    Returns void

handleAllLayersEnabled

  • handleAllLayersEnabled(): void
  • The handler that is invoked when all layers are set to enabled. Override this method in a sub class to define the handler.

    Returns void

handleLayerStateChange

initialize

  • initialize(config: any): void
  • Parameters

    • config: any

    Returns void

onDestroy

  • onDestroy(): void
  • Override or attach to provide custom clean-up behaviour.

    Returns void

onInitialized

  • This handler fires exactly once when the layer selector is initialized. Override this method in a sub class to define the handler.

    Parameters

    Returns void

onLayerSelectorFolderItemCreated

  • Called when a new LayerSelectorFolderItem is created. Override this method in a sub class to define the handler.

    Parameters

    Returns void

onLayerSelectorLayerItemCreated

  • Called when a new LayerSelectorLayerItem is created. Override this method in a sub class to define the handler.

    Parameters

    Returns void

onLayerSelectorServiceLayerItemCreated

  • Called when a new LayerSelectorServiceLayerItem is created. Override this method in a sub class to define the handler.

    Parameters

    Returns void

setupLayerSelector

  • setupLayerSelector(): void
  • Returns void

trackCommandHandler

  • trackCommandHandler(command: any, token: any): void
  • Tracks a subscription to an {@link geocortex.framework.commands.Command}, disposing it when this object is disposed with the destroy method.

    Parameters

    • command: any
    • token: any

    Returns void

trackSubscription

  • trackSubscription(event: any, token: any): void
  • Tracks a subscription to an {@link geocortex.framework.events.Event}, disposing it when this object is disposed with the destroy method.

    Parameters

    • event: any
    • token: any

    Returns void