Graphic

Graphic

基础用法

InLayer

Change

Graphic Props

proptypedefaultdescriptions
defaultOptions__esri.GraphicProperties{}构造函数参数
:geometry*__esri.Geometry-图形空间信息
:symbol*__esri.Symbol-图形样式
:attributesRecord<string, any>{}关联信息
:indexNumber-图形叠加顺序
:visibleBooleantrueshow
orphanBooleanfalse若为true, 则实例为待挂载的状态
spatialReference__esri.SpatialReferenceProperties-坐标系

Graphic Emits

nameargumentsdescriptions
loadview: __esri.View
graphic: __esri.Graphic
实例加载后
clickview: __esri.View
hitTestResult: __esri.HitTestResult
event: __esri.ViewClickEvent
graphic: __esri.Graphic
result?: __esri.GraphicHit // 最上层的要素
点击事件