Graphic
Graphic
基础用法
InLayer
Change
Graphic Props
prop | type | default | descriptions |
---|---|---|---|
defaultOptions | __esri.GraphicProperties | {} | 构造函数参数 |
:geometry* | __esri.Geometry | - | 图形空间信息 |
:symbol* | __esri.Symbol | - | 图形样式 |
:attributes | Record<string, any> | {} | 关联信息 |
:index | Number | - | 图形叠加顺序 |
:visible | Boolean | true | show |
orphan | Boolean | false | 若为true, 则实例为待挂载的状态 |
spatialReference | __esri.SpatialReferenceProperties | - | 坐标系 |
Graphic Emits
name | arguments | descriptions |
---|---|---|
load | view: __esri.View graphic: __esri.Graphic | 实例加载后 |
click | view: __esri.View hitTestResult: __esri.HitTestResult event: __esri.ViewClickEvent graphic: __esri.Graphic result?: __esri.GraphicHit // 最上层的要素 | 点击事件 |