-
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。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。