Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Graphic

Hierarchy

Index

Properties

attributes

attributes: any

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

Read more...

declaredClass

declaredClass: string

destroyed

destroyed: boolean

geometry

geometry: Geometry

The geometry that defines the graphic's location.

Read more...

initialized

initialized: boolean

Readonly isAggregate

isAggregate: boolean

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

Read more...

layer

layer: Layer

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

Read more...

popupTemplate

popupTemplate: PopupTemplate

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

Read more...

symbol

symbol: Symbol

The Symbol for the graphic.

Read more...

visible

visible: boolean

Indicates the visibility of the graphic.

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

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns Graphic

clone

  • Creates a deep clone of the graphic object.

    Read more...

    Returns Graphic

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

getAttribute

  • getAttribute(name: string): any
  • Returns the value of the specified attribute.

    Read more...

    Parameters

    • name: string

    Returns any

getEffectivePopupTemplate

  • getEffectivePopupTemplate(defaultPopupTemplateEnabled?: boolean): PopupTemplate
  • Returns the popup template applicable for the graphic.

    Read more...

    Parameters

    • Optional defaultPopupTemplateEnabled: boolean

    Returns PopupTemplate

getObjectId

  • getObjectId(): number
  • Returns the Object ID of the feature associated with the graphic, if it exists.

    Read more...

    Returns number

Protected notifyChange

  • notifyChange(propertyName: string): void
  • Parameters

    • propertyName: string

    Returns void

set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns Graphic

  • Parameters

    Returns Graphic

setAttribute

  • setAttribute(name: string, newValue: any): void
  • Sets a new value to the specified attribute.

    Read more...

    Parameters

    • name: string
    • newValue: any

    Returns void

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