com.supermap.web.events
public class FeatureLayerEvent
继承 FeatureLayerEvent Inheritance flash.events.Event

要素图层 FeatureLayer 事件类.

该类目前提供了三种与要素图层相关的事件类型:添加要素、删除要素、删除所有要素。

另请参见

com.supermap.web.mapping.FeaturesLayer


公共属性
  属性 定义方
    feature : Feature
获取或设置与事件关联的矢量要素。
FeatureLayerEvent
公共方法
  方法 定义方
   
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

获取或设置与事件关联的矢量要素。


Implementation
    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

删除所有要素事件。