Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BasemapToggleViewModel

Hierarchy

Index

Properties

Readonly activeBasemap

activeBasemap: Basemap

The map's basemap.

Read more...

declaredClass

declaredClass: string

destroyed

destroyed: boolean

initialized

initialized: boolean

nextBasemap

nextBasemap: Basemap

The next basemap for toggling.

Read more...

Readonly state

state: "disabled" | "ready"

The view model's state.

Read more...

view

The view from which the widget will operate.

Read more...

Methods

Protected _get

  • _get(propertyName: string): any
  • _get<T>(propertyName: string): T
  • Parameters

    • propertyName: string

    Returns any

  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

Protected _set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns BasemapToggleViewModel

destroy

  • destroy(): void
  • Returns void

emit

  • emit(type: string, event?: any): boolean
  • Emits an event on the instance.

    Read more...

    Parameters

    • type: string
    • Optional event: any

    Returns boolean

get

  • get<T>(propertyName: string): T
  • get(propertyName: string): any
  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

hasEventListener

  • hasEventListener(type: string): boolean
  • Indicates whether there is an event listener on the instance that matches the provided event name.

    Read more...

    Parameters

    • type: string

    Returns boolean

Protected notifyChange

  • notifyChange(propertyName: string): void
  • Parameters

    • propertyName: string

    Returns void

on

  • Registers an event handler on the instance.

    Read more...

    Parameters

    Returns IHandle

set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns BasemapToggleViewModel

  • Parameters

    Returns BasemapToggleViewModel

toggle

  • toggle(): void
  • Toggles to the next basemap.

    Read more...

    Returns void

watch

  • Parameters

    • path: string | string[]
    • callback: WatchCallback
    • Optional sync: boolean

    Returns WatchHandle

Generated using TypeDoc