定义每个区域的点(或像素,如果指定)半径,其中多个点将被分组并可视化为单个簇。如果修改 clusterMaxSize,通常应考虑调整
clusterRadius
。例如,如果您希望集群图标不重叠,那么
clusterRadius
应该比clusterMaxSize
大很多。默认值:60
例子:
// enables clustering on the layer with a // clusterRadius of 40pt layer.featureReduction = { type: "cluster", clusterRadius: 40, clusterMaxSize: 24 };
// enables clustering on the layer with a // clusterRadius of 120px layer.featureReduction = { type: "cluster", clusterRadius: "120px", clusterMaxSize: "80px" };
基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/layers/support/FeatureReductionCluster"], (FeatureReductionCluster) => { /* code goes here */ });
ESM:
import FeatureReductionCluster from "@arcgis/core/layers/support/FeatureReductionCluster";
类:
esri/layers/support/FeatureReductionCluster
继承: FeatureReductionCluster > Accessor
自从:用于 JavaScript 4.14 的 ArcGIS API
用法说明
FeatureReductionCluster.clusterRadius
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS FeatureReductionCluster.clusterMinSize用法及代码示例
- JavaScript ArcGIS FeatureReductionCluster.clusterMaxSize用法及代码示例
- JavaScript ArcGIS FeatureReductionCluster.clone用法及代码示例
- JavaScript ArcGIS FeatureReductionCluster.type用法及代码示例
- JavaScript ArcGIS FeatureReductionCluster.popupEnabled用法及代码示例
- JavaScript ArcGIS FeatureReductionCluster.labelingInfo用法及代码示例
- JavaScript ArcGIS FeatureReductionCluster.popupTemplate用法及代码示例
- JavaScript ArcGIS FeatureReductionCluster.labelsVisible用法及代码示例
- JavaScript ArcGIS FeatureReductionCluster用法及代码示例
- JavaScript ArcGIS FeatureReductionSelection用法及代码示例
- JavaScript ArcGIS FeatureReductionSelection.type用法及代码示例
- JavaScript ArcGIS FeatureLayer.queryExtent用法及代码示例
- JavaScript ArcGIS FeatureLayer.when用法及代码示例
- JavaScript FeatureForm.when用法及代码示例
- JavaScript ArcGIS FeatureLayer refresh事件用法及代码示例
- JavaScript ArcGIS FeatureLayer.getFieldDomain用法及代码示例
- JavaScript ArcGIS FeatureLayer.queryFeatureCount用法及代码示例
- JavaScript FeatureForm.getValues用法及代码示例
- JavaScript FeatureForm.visible用法及代码示例
- JavaScript ArcGIS Feature.visible用法及代码示例
- JavaScript ArcGIS FeatureLayer.formTemplate用法及代码示例
- JavaScript ArcGIS Feature用法及代码示例
- JavaScript FeatureForm.classes用法及代码示例
- JavaScript ArcGIS FeatureLayer.relationships用法及代码示例
- JavaScript ArcGIS FeatureLayer.objectIdField用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 FeatureReductionCluster.clusterRadius。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。