Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ViewState

Hierarchy

Index

Properties

Readonly center

center: number[]

Represents the view's center point as an array of two numbers [x, y].

Read more...

declaredClass

declaredClass: string

destroyed

destroyed: boolean

Readonly extent

extent: Extent

The extent represents the visible portion of a map within the view as an instance of Extent.

Read more...

initialized

initialized: boolean

Readonly resolution

resolution: number

Represents the size of one pixel in map units.

Read more...

Readonly rotation

rotation: number

The clockwise rotation of due north in relation to the top of the view in degrees.

Read more...

Readonly scale

scale: number

Represents the map scale at the center of the view.

Read more...

Readonly size

size: number[]

Represents the width and height of the view in pixels, e.g.

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

  • _set<T>(propertyName: string, value: T): ViewState
  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns ViewState

clone

  • Creates a deep clone of ViewState object.

    Read more...

    Returns ViewState

copy

  • Copies the properties from a given view state.

    Read more...

    Parameters

    Returns ViewState

destroy

  • destroy(): void
  • Returns void

get

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

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

Protected notifyChange

  • notifyChange(propertyName: string): void
  • Parameters

    • propertyName: string

    Returns void

set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns ViewState

  • Parameters

    Returns ViewState

toJSON

  • toJSON(): any
  • Converts an instance of this class to its ArcGIS portal JSON representation.

    Read more...

    Returns any

toMap

  • toMap(out: number[], x: number, y: number): number[]
  • Converts the x and y screen coordinates to map coordinates.

    Read more...

    Parameters

    • out: number[]
    • x: number
    • y: number

    Returns number[]

toScreen

  • toScreen(out: number[], x: number, y: number): number[]
  • Converts the x and y map coordinates to screen coordinates.

    Read more...

    Parameters

    • out: number[]
    • x: number
    • y: number

    Returns number[]

toScreenNoRotation

  • toScreenNoRotation(out: number[], x: number, y: number): number[]
  • Converts the x and y map coordinates to screen coordinates.

    Read more...

    Parameters

    • out: number[]
    • x: number
    • y: number

    Returns number[]

watch

  • Parameters

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

    Returns WatchHandle

Generated using TypeDoc