Class: Selection

Selection

new Selection()

选择集类。该类用于处理地图上被选中的对象。
Source:

Methods

(static) clear() → {Promise.<void>}

清空选择对象
Source:
Returns:
Type
Promise.<void>

(static) fromQueryResult(result) → {Promise.<Promise.fromRecordset>}

从查询结果获取地图被选要素
Parameters:
Name Type Description
result object 经DataVector的query方法查询出的结果
Deprecated:
  • Yes
Source:
Returns:
Type
Promise.<Promise.fromRecordset>

(static) fromRecordset(recordset) → {Promise.<Promise.fromRecordset>}

将记录集转换成Selection
Parameters:
Name Type Description
recordset object 记录集
Deprecated:
  • Yes
Source:
Returns:
Type
Promise.<Promise.fromRecordset>

(static) setStyle(geoStyle) → {Promise.<void>}

设置样式风格
Parameters:
Name Type Description
geoStyle object 样式风格
Source:
Returns:
Type
Promise.<void>

(static) toRecordset() → {Promise.<Recordset>}

转成recordset数据集
Deprecated:
  • Yes
Source:
Returns:
Type
Promise.<Recordset>