VectorLayerFeatureSelection

VectorLayerFeatureSelection

矢量要素选择类。该类对象不需要用户创建。 在VectorLayerollection中设置enableFeatureSelection属性为true,创建该类对象实例; 设置enableFeatureSelection属性为false,销毁该类对象实例。使用featureSelection时,获取该对象实例。

Constructor

new VectorLayerFeatureSelection(options)

Author:
  • zpc
Example
// 矢量要素选择示例
var vectorLayers = mainControl.vectorLayers;
vectorLayers.enableFeatureSelection = true;    // 开启矢量要素选择
vectorLayers.enableFeatureSelection = false;    // 关闭矢量要素选择
var featureSelection = vectorLayers.featureSelection;    // 获取矢量要素选择实例
Parameters:
Name Type Description
options Object 拥有以下属性的对象。
Properties
Name Type Description
viewer Cesium.Viewer Cesium原生可视化器。
popups Popups 弹出框。

Methods

destroy()

销毁该类的实例。