Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a coordinate model. A system can contain multiple coordinate models, each with its own coordinate systems. This model must be processed and registered with the CoordinatesManager.

Hierarchy

Index

Constructors

constructor

Properties

Protected _isDestroyed

_isDestroyed: boolean

app

configuration

configuration: CoordinatesModelConfig

The configuration settings for this coordinate model. Configuration must be set up by the CoordinateController for the input stream.

coordinateSystems

The coordinate systems supported by this coordinate model.

currentCoordinateSystem

currentCoordinateSystem: Observable<CoordinateSystem>

The currently selected coordinate system.

defaultGcsWkid

defaultGcsWkid: number

The default geographic coordinate system to use.

fractionalDigits

fractionalDigits: number

The number of fractional digits the output coordinates should be rounded off to.

id

id: string

inputStream

A stream of input base (read raw) coordinates. These can be mapPoints.

isActive

isActive: Observable<boolean>

An observable boolean indicating whether or not this coordinates model is currently active. Automatically activated when there are subscribers to the output stream.

isRegistered

isRegistered: boolean

A boolean indicating whether or not this coordinates model has been initialized and registered with the Coordinates Manager.

libraryId

libraryId: string

outputStream

outputStream: Observable<Coordinate>

Processed output coordinate stream. The coordinateManager will automatically convert the input stream to output when this model is active.

Methods

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

  • Application of configuration settings will be handled by the (@link mapping.modules.Map.MapCoordinatesController} once the map is initialized. This function is simply provided to enable a CoordinatesModel object to be specified as a view model in the configuration files. In such cases, the initialize function will automatically be invoked with the configuration settings.

    Parameters

    Returns void

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