Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Polyline

Hierarchy

Index

Properties

Readonly cache

cache: any

The cache is used to store values computed from geometries that need to cleared or recomputed upon mutation.

Read more...

declaredClass

declaredClass: string

destroyed

destroyed: boolean

Readonly extent

extent: Extent

The extent of the geometry.

Read more...

hasM

hasM: boolean

Indicates if the geometry has M values.

Read more...

hasZ

hasZ: boolean

Indicates if the geometry has z-values (elevation).

Read more...

initialized

initialized: boolean

paths

paths: number[][][]

An array of paths, or line segments, that make up the polyline.

Read more...

spatialReference

spatialReference: SpatialReference

The spatial reference of the geometry.

Read more...

Readonly type

type: "polyline"

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): Polyline
  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns Polyline

addPath

  • Adds a path, or line segment, to the polyline.

    Read more...

    Parameters

    • points: number[][] | Point[]

    Returns Polyline

clone

  • Creates a deep clone of Polyline object.

    Read more...

    Returns Polyline

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

getPoint

  • getPoint(pathIndex: number, pointIndex: number): Point
  • Returns a point specified by a path and point in the path.

    Read more...

    Parameters

    • pathIndex: number
    • pointIndex: number

    Returns Point

insertPoint

  • insertPoint(pathIndex: number, pointIndex: number, point: Point | number[]): Polyline
  • Inserts a new point into a polyline.

    Read more...

    Parameters

    • pathIndex: number
    • pointIndex: number
    • point: Point | number[]

    Returns Polyline

Protected notifyChange

  • notifyChange(propertyName: string): void
  • Parameters

    • propertyName: string

    Returns void

removePath

  • removePath(index: number): Point[]
  • Removes a path from the Polyline.

    Read more...

    Parameters

    • index: number

    Returns Point[]

removePoint

  • removePoint(pathIndex: number, pointIndex: number): Point
  • Removes a point from the polyline at the given pointIndex within the path identified by the given pathIndex.

    Read more...

    Parameters

    • pathIndex: number
    • pointIndex: number

    Returns Point

set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns Polyline

  • Parameters

    Returns Polyline

setPoint

  • setPoint(pathIndex: number, pointIndex: number, point: Point | number[]): Polyline
  • Updates a point in a polyline.

    Read more...

    Parameters

    • pathIndex: number
    • pointIndex: number
    • point: Point | number[]

    Returns Polyline

toJSON

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

    Read more...

    Returns any

watch

  • Parameters

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

    Returns WatchHandle

Generated using TypeDoc