FeatureLayer
FeatureLayer
FeatureLayer Props
prop | type | default | descriptions |
---|---|---|---|
Layer Props | - | - | - |
defaultOptions | __esri.FeatureLayerProperties | {} | 构造函数参数 |
:renderer | __esri.Renderer | - | 渲染器,改变要素样式 |
:definitionExpression | String | ‘1=1’ | SQL过滤要素 |
:popupEnabled | Boolean | true | 是否启用默认弹窗 |
:cursor | String | - | hover要素时鼠标样式 |
FeatureLayer Emits
name | arguments | descriptions |
---|---|---|
load | view: __esri.View layer: __esri.FeatureLayer | 实例加载后 |
click | view: __esri.View layer: __esri.FeatureLayer event: __esri.ViewClickEvent hitTestResult: __esri.HitTestResult result: __esri.GraphicHit // 最上层的要素 | 点击事件 |
pointerMove | view: __esri.View layer: __esri.FeatureLayer event: __esri.ViewPointerMoveEvent hitTestResult: __esri.HitTestResult result: __esri.GraphicHit // 最上层的要素 | 鼠标移动事件 |