Fx构造函数
# new Feature(option)
要素信息对象
参数:
名称 | 类型 | 属性 | 默认值 | 描述 |
---|---|---|---|---|
option |
Object | 属性键值对 |
||
AttValue |
Array |
<optional> |
null | 属性值 Array,String in an Array |
FID |
Number |
<optional> |
0 | 要素id号 |
bound |
Zondy.Object.Rectangle |
<optional> |
null | 要素的外包矩形 |
fGeom |
Zondy.Object.FeatureGeometry |
<optional> |
null | 要素的几何图形描述 |
ftype |
FeatureType |
<optional> |
null | 要素几何类型 Zondy.Enum.FeatureType类型,只对简单要素类有效 |
GraphicInfo |
Zondy.Object.WebGraphicsInfo |
<optional> |
null | 几何图形参数 |
成员变量
方法
# getAttValue(attKey) → {String}
获取当前要素的属性值
参数:
名称 | 类型 | 描述 |
---|---|---|
attKey |
Number | 属性字段关键字或者属性序号 |
获取当前要素的属性值
String
# setBound(bound) → {ol.extent}
设置当前要素的外包矩形
参数:
名称 | 类型 | 描述 |
---|---|---|
bound |
String | Zondy.Object.Rectangle | 'xmin,ymin,xmax,ymax' | Rectangle |
外包矩形描述,可以是字符串,zondy矩形或者openlayers矩形
ol.extent