| 包 | com.supermap.web.events |
| 类 | public class FeatureLayerEvent |
| 继承 | FeatureLayerEvent flash.events.Event |
该类目前提供了三种与要素图层相关的事件类型:添加要素、删除要素、删除所有要素。
另请参见
| 方法 | 定义方 | ||
|---|---|---|---|
|
FeatureLayerEvent(type:String, feature:Feature = null)
初始化 FeatureLayerEvent 类的新实例。
|
FeatureLayerEvent | ||
| 常量 | 定义方 | ||
|---|---|---|---|
| FEATURE_ADD : String = featureAdd
[static] 添要要素事件。
|
FeatureLayerEvent | ||
| FEATURE_REMOVE : String = featureRemove
[static] 移除要素事件。
|
FeatureLayerEvent | ||
| FEATURE_REMOVE_ALL : String = featureRemoveAll
[static] 删除所有要素事件。
|
FeatureLayerEvent | ||
| feature | 属性 |
feature:Feature
获取或设置与事件关联的矢量要素。
public function get feature():Feature public function set feature(value:Feature):void| FeatureLayerEvent | () | 构造函数 |
public function FeatureLayerEvent(type:String, feature:Feature = null)
初始化 FeatureLayerEvent 类的新实例。
参数type:String — 事件类型。必设参数。 |
|
feature:Feature (default = null) — 与事件关联的矢量要素。 |
| FEATURE_ADD | 常量 |
public static const FEATURE_ADD:String = featureAdd
添要要素事件。
| FEATURE_REMOVE | 常量 |
public static const FEATURE_REMOVE:String = featureRemove
移除要素事件。
| FEATURE_REMOVE_ALL | 常量 |
public static const FEATURE_REMOVE_ALL:String = featureRemoveAll
删除所有要素事件。