Class EsriGraphic

Hierarchy

  • Accessor
  • JSONSupport
    • EsriGraphic

Constructors

  • A Graphic is a vector representation of real world geographic phenomena.

    Read more...

    Parameters

    • Optional properties: GraphicProperties

    Returns EsriGraphic

Properties

aggregateGeometries: any

The aggregateGeometries contains spatial aggregation geometries when statistics query is executed with envelope-aggregate, centroid-aggregate and/or convex-hull-aggregate statistics type.

Read more...

attributes: any

Name-value pairs of fields and field values associated with the graphic.

Read more...

declaredClass: string
destroyed: boolean
geometry: EsriGeometry

The geometry that defines the graphic's location.

Read more...

initialized: boolean
isAggregate: boolean

Indicates whether the graphic refers to an aggregate, or cluster graphic.

Read more...

layer: Layer

If applicable, references the layer in which the graphic is stored.

Read more...

popupTemplate: PopupTemplate

The template for displaying content in a Popup when the graphic is selected.

Read more...

symbol: EsriSymbol

The Symbol for the graphic.

Read more...

visible: boolean

Indicates the visibility of the graphic.

Default

true

[Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#visible)

Methods

  • Parameters

    • propertyName: string

    Returns any

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriGraphic

  • Type Parameters

    • T

    Parameters

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

    Returns void

  • Returns void

  • Type Parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

  • Returns the value of the specified attribute.

    Read more...

    Parameters

    • name: string

    Returns any

  • Returns the popup template applicable for the graphic.

    Read more...

    Parameters

    • Optional defaultPopupTemplateEnabled: boolean

    Returns PopupTemplate

  • Returns the Object ID of the feature associated with the graphic, if it exists.

    Read more...

    Returns number

  • Type Parameters

    • T

    Parameters

    • Optional groupKey: Exclude<T, IHandle>

    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

  • Type Parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns EsriGraphic

  • Parameters

    • props: HashMap<any>

    Returns EsriGraphic

  • Sets a new value to the specified attribute.

    Read more...

    Parameters

    • name: string
    • newValue: any

    Returns void

  • Converts an instance of this class to its ArcGIS portal JSON representation.

    Read more...

    Returns any

  • Parameters

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

    Returns WatchHandle

  • Parameters

    • json: any

    Returns EsriGraphic

Generated using TypeDoc