-
featureEffect
FeatureEffect
autocast
featureEffect 可用于吸引感兴趣的注意力特征。它允许通过 filter 选择特征,并且将 includedEffect 和 excludedEffect 应用于分别通过或未通过过滤器要求的那些特征。
如果在图层上设置了
featureEffect
,它将被layerView.featureEffect
继承,除非开发者在layerView上覆盖它。如果设置了这两个属性,layerView.featureEffect
将优先于layer.featureEffect
。已知限制
- 以下场景不支持FeatureEffect:
- 在 3D 中SceneViews
- 在使用HeatmapRenderer 渲染的图层中
- 当 FeatureReductionCluster 启用时
- 当Map是printed
- 在 layerView 上设置的 FeatureEffect 不能保留在 WebMap 中。
例子:
// gray out features that fall outside of the 3 mile buffer of the mouse's location // by setting feature effect on excluded features layerView.featureEffect = new FeatureEffect({ filter: new FeatureFilter({ geometry: filterGeometry, spatialRelationship: "intersects", distance: 3, units: "miles" }), excludedEffect: "grayscale(100%) opacity(30%)" });
// Apply a drop-shadow feature effect to the features that intersect the borough boundaries, // while applying blur and brightness effects to the features that are excluded from filter criteria. // The resulting map will make it easier to spot if the residents are more likely to experience deprivation // if they live on a borough boundary. const featureFilter = new FeatureFilter({ where: "BoroughEdge='true'" }); layerView.featureEffect = new FeatureEffect({ filter: featureFilter, includedEffect: "drop-shadow(3px, 3px, 3px, black)", excludedEffect: "blur(1px) brightness(65%)" });
- 以下场景不支持FeatureEffect:
基本信息
以下是所在类或对象的基本信息。
类:
esri/views/layers/OGCFeatureLayerView
用法说明
OGCFeatureLayerView.featureEffect
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS OGCFeatureLayerView.filter用法及代码示例
- JavaScript ArcGIS OGCFeatureLayerView.highlight用法及代码示例
- JavaScript ArcGIS OGCFeatureLayerView.effect用法及代码示例
- JavaScript ArcGIS OGCFeatureLayerView.queryFeatureCount用法及代码示例
- JavaScript ArcGIS OGCFeatureLayerView.queryFeatures用法及代码示例
- JavaScript ArcGIS OGCFeatureLayerView.when用法及代码示例
- JavaScript ArcGIS OGCFeatureLayerView.availableFields用法及代码示例
- JavaScript ArcGIS OGCFeatureLayerView.queryObjectIds用法及代码示例
- JavaScript ArcGIS OGCFeatureLayerView.queryExtent用法及代码示例
- JavaScript ArcGIS OGCFeatureLayerView.createQuery用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.collectionId用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.featureReduction用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.fullExtent用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.orderBy用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.maxScale用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.portalItem用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.geometryType用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.objectIdField用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.customParameters用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.effect用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.fieldsIndex用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.url用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.on用法及代码示例
- JavaScript ArcGIS OGCFeatureLayer.title用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 OGCFeatureLayerView.featureEffect。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。