FeatureLayer

FeatureLayer

FeatureLayer Props

proptypedefaultdescriptions
Layer Props---
defaultOptions__esri.FeatureLayerProperties{}构造函数参数
:renderer__esri.Renderer-渲染器,改变要素样式
:definitionExpressionString‘1=1’SQL过滤要素
:popupEnabledBooleantrue是否启用默认弹窗
:cursorString-hover要素时鼠标样式

FeatureLayer Emits

nameargumentsdescriptions
loadview: __esri.View
layer: __esri.FeatureLayer
实例加载后
clickview: __esri.View
layer: __esri.FeatureLayer
event: __esri.ViewClickEvent
hitTestResult: __esri.HitTestResult
result: __esri.GraphicHit // 最上层的要素
点击事件
pointerMoveview: __esri.View
layer: __esri.FeatureLayer
event: __esri.ViewPointerMoveEvent
hitTestResult: __esri.HitTestResult
result: __esri.GraphicHit // 最上层的要素
鼠标移动事件