Options
All
  • Public
  • Public/Protected
  • All
Menu

View-model for the symbology settings view.

Hierarchy

Index

Constructors

constructor

Properties

Protected _isDestroyed

_isDestroyed: boolean

app

config

Configuration for the symbology settings view-model.

currentWidget

currentWidget: Observable<SymbologyWidget>

The currently active widget

id

id: string

imageSelector

imageSelector: PictureSymbolWidget

The picture marker symbol widget

isLine

isLine: Observable<boolean>

isPoint

isPoint: Observable<boolean>

Set relevant observables to configure, or use 'setFeatureType()' to configure for a single feature type

isPolygon

isPolygon: Observable<boolean>

libraryId

libraryId: string

noFill

noFill: Observable<boolean>

Disables availability of fill related options. DEPRECATED @ 2.8

noMarker

noMarker: Observable<boolean>

Disables availability of marker related options. DEPRECATED @ 2.8

showSymbologySelectorMenu

showSymbologySelectorMenu: Observable<boolean>

Whether to show the dropdown selector. Currently only used to switch between picture and simple markup point types

symbolSelector

symbolSelector: SimpleSymbolWidget

The symbol selector widget

symbolizeWithImagery

symbolizeWithImagery: Observable<boolean>

Observable to control visibility of the two views

symbologyWidgets

The available symbology widgets

symbols

The complete set of symbols produced by this widget

Methods

_getRenderer

  • _getRenderer(): string
  • Returns a renderer based on the current widget setttings as a JSON string PRIVATE: Call 'getRenderer' on SymbologySettingsView

    Returns string

_getSymbol

  • _getSymbol(): string
  • Returns a symbol as a json string, based on the current widget settings PRIVATE: Call 'getSymbol' on SymbologySettingsView

    Returns string

_reset

  • _reset(): void
  • Returns the widget to the default state (as defined by the configuration object) PRIVATE: Call 'reset' on SymbologySettingsView

    Returns void

_setFeatureType

  • _setFeatureType(featureType: string): void
  • Set the feature type of this widget to point, line, polygon PRIVATE: Call 'setFeatureType' on SymbologySettingsView

    Parameters

    • featureType: string

    Returns void

_setFromRenderer

  • _setFromRenderer(renderer: Renderer): void
  • Sets the state of the widget based on a supplied simple renderer PRIVATE: Call 'setFromRenderer' on SymbologySettingsView

    Parameters

    • renderer: Renderer

    Returns void

_setFromSymbol

  • _setFromSymbol(symbol: Symbol): void
  • Sets the state of the widget based on a supplied symbol PRIVATE: Call 'setFromSymbol' on SymbologySettingsView

    Parameters

    • symbol: Symbol

    Returns 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

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

initialize

onDestroy

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

    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