Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected _isDestroyed

_isDestroyed: boolean

app

config

currentImage

currentImage: Observable<ImageTemplate>

The currently selected image swatch

currentImages

currentLibrary

currentLibrary: Observable<string>

customLibraryName

customLibraryName: string

A place to put new images we encounter on processed renderers

id

id: string

imageHeight

imageHeight: Observable<number>

Track these values separately as they will change with image size

imageLibraries

imageLibraries: ObservableCollection<string>

Names of the image libraries to use

imageRotation

imageRotation: Observable<number>

View model for the user-selected rotation

imageRotationViewModel

imageRotationViewModel: NumericInputViewModel

imageSize

imageSize: Observable<number>

View model for the user-selected image size.

imageSizeViewModel

imageSizeViewModel: NumericInputViewModel

imageSwatchIdBase

imageSwatchIdBase: string

A string used to create unique ids for the image swatches

imageTemplates

imageTemplates: object

Collection of templates found in libraries

Type declaration

imageWidth

imageWidth: Observable<number>

initialized

initialized: boolean

libraryId

libraryId: string

librarySwitcherId

librarySwitcherId: string

loading

loading: boolean

Stops multiple image loads from being started at the same time

markupSymbol

markupSymbol: Symbol

Current markup symbol

noLibraries

noLibraries: Observable<boolean>

Flag for the error state of no valid libraries

parentSymbologyView

parentSymbologyView: ViewBase

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

showLibrarySwitcher

showLibrarySwitcher: Observable<boolean>

Flag to hide/show the picker to switch libraries

viewRoot

viewRoot: HTMLElement

Static customImages

customImages: ImageTemplate[]

Methods

_checkForSymbol

  • Checks for a supplied symbol in loaded libraries, returns the template if found A found template will also be selected Private: Call 'setFromSymbol' on PictureSymbolWidget

    Parameters

    • symbol: PictureMarkerSymbol

    Returns ImageTemplate

_getRenderer

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

    Returns string

_handleInvalidLibrary

  • _handleInvalidLibrary(library: string): void
  • Parameters

    • library: string

    Returns void

_loadImages

  • This will be updated to load images from an Essentials hosted library Private: Don't call this directly

    Parameters

    • library: string

    Returns Promise<ImageTemplate[]>

_reset

  • _reset(): void
  • Reset the widget to the initial state Private: Call 'reset' on PictureSymbolWidget

    Returns void

_setFromSymbol

  • _setFromSymbol(symbol: PictureMarkerSymbol): Promise<any>
  • Set the state of the widget from a supplied picturemarkersymbol. If a symbol with an identical url already exists in the widget it will be selected. If the symbol appears to be new, it will be added to the widget's collection and selected. Private: Call the method on PictureSymbolWidget instead

    Parameters

    • symbol: PictureMarkerSymbol

    Returns Promise<any>

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

loadAllLibraries

  • loadAllLibraries(): Promise<any>
  • Returns Promise<any>

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