Options
All
  • Public
  • Public/Protected
  • All
Menu

View-model for the simple symbology settings widget. Line symbolization options are always needed (of course for polylines, but also for points and polygons as outlines). Marker and fill symbolization options are optional.

Hierarchy

Index

Constructors

constructor

Properties

Protected _isDestroyed

_isDestroyed: boolean

app

config

Configuration for the symbology settings view-model.

configuring

configuring: boolean

Configuring the widget will produce events that should be ignored

fill

The colors used in the symbology.

fillID

fillID: string

fillStyleIdLookup

fillStyleIdLookup: object

Type declaration

  • [id: string]: string

fillStyleIndex

fillStyleIndex: number

The currently selected polygon fill style

fillStyles

Styles available to polygon fills.

getTextSymbol

getTextSymbol: function

A method to get the symbol from the text widget

Type declaration

    • (): string
    • Returns string

id

id: string

initialized

initialized: boolean

View model has been configured and is ready to go

isLine

isLine: Observable<boolean>

isPoint

isPoint: Observable<boolean>

Configure the widget to display appropriate options

isPolygon

isPolygon: Observable<boolean>

libraryId

libraryId: string

lineId

lineId: string

lineStyleIdLookup

lineStyleIdLookup: object

Type declaration

  • [id: string]: string

lineStyleIndex

lineStyleIndex: number

The currently selected line style

lineStyles

Styles available to lines.

lineWidth

lineWidth: Observable<number>

Observable for the user-selected line width.

lineWidthViewModel

lineWidthViewModel: NumericInputViewModel

markerID

markerID: string

markerSize

markerSize: Observable<number>

View model for the user-selected marker size widget.

markerSizeViewModel

markerSizeViewModel: NumericInputViewModel

markerStyleIdLookup

markerStyleIdLookup: object

These are used to translate style ids from Esri JS API to Esri REST API form

Type declaration

  • [id: string]: string

markerStyleIndex

markerStyleIndex: number

The currently selected markerStyle

markerStyles

Styles available to point markers.

noOutlineSymbol

noOutlineSymbol: Observable<boolean>

Independantly of configuration, hides the outline swatch for symbols that do not support this (X and +)

outline

parentSymbologyView

parentSymbologyView: ViewBase

If this view makes up part of a symbology configuration view the parent can be attached here

showLineStyles

showLineStyles: Observable<boolean>

Allow the selection of outline styles

showOutlineColor

showOutlineColor: Observable<boolean>

Allow the user to select outline color independently of fill

symbols

Final resultant symbols, the end-product of this widget.

Methods

_getRenderer

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

    Returns string

_getSymbol

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

    Returns string

_reset

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

    Returns void

_setFeatureType

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

    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 SimpleSymbolWidget

    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 SimpleSymbolWidget

    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