Class EsriPolygon

Hierarchy

Constructors

Properties

cache: any

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

Read more...

centroid: EsriPoint

The centroid of the polygon.

Read more...

declaredClass: string
destroyed: boolean
extent: EsriExtent

The extent of the geometry.

Read more...

hasM: boolean

Indicates if the geometry has M values.

Read more...

hasZ: boolean

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

Read more...

initialized: boolean
isSelfIntersecting: boolean

Checks to see if polygon rings cross each other and indicates if the polygon is self-intersecting, which means the ring of the polygon crosses itself.

Read more...

rings: number[][][]

An array of rings.

Read more...

spatialReference: EsriSpatialReference

The spatial reference of the geometry.

Default

WGS84 (wkid: 4326)

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#spatialReference)
type: "polygon"

The string value representing the type of geometry.

Read more...

Methods

  • Parameters

    • propertyName: string

    Returns any

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriPolygon

  • Type Parameters

    • T

    Parameters

    • handles: IHandle | IHandle[]
    • Optional groupKey: Exclude<T, IHandle>

    Returns void

  • Checks on the client if the input point is inside the polygon.

    Read more...

    Parameters

    Returns boolean

  • Returns void

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

  • Returns a point specified by a ring and point in the path.

    Read more...

    Parameters

    • ringIndex: number
    • pointIndex: number

    Returns EsriPoint

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    Returns boolean

  • Inserts a new point into the polygon.

    Read more...

    Parameters

    • ringIndex: number
    • pointIndex: number
    • point: number[] | EsriPoint

    Returns EsriPolygon

  • Checks if a Polygon ring is clockwise.

    Read more...

    Parameters

    Returns boolean

  • Parameters

    • propertyName: string

    Returns void

  • Deprecated

    Since 4.25. Use addHandles(), removeHandles() and hasHandles() instead.

    Parameters

    • handles: IHandle | IHandle[]

    Returns void

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    Returns void

  • Removes a point from the polygon at the given pointIndex within the ring identified by ringIndex.

    Read more...

    Parameters

    • ringIndex: number
    • pointIndex: number

    Returns EsriPoint[]

  • Removes a ring from the Polygon.

    Read more...

    Parameters

    • index: number

    Returns EsriPoint[]

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriPolygon

  • Parameters

    • props: HashMap<any>

    Returns EsriPolygon

  • Updates a point in the polygon.

    Read more...

    Parameters

    • ringIndex: number
    • pointIndex: number
    • point: number[] | EsriPoint

    Returns EsriPolygon

  • Parameters

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

    Returns WatchHandle

Generated using TypeDoc