-
featureEffect
FeatureEffect
autocast
- 自從:ArcGIS 適用於 JavaScript 4.22 的 API
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/FeatureLayerView
繼承: FeatureLayerView > LayerView > Accessor
自從:用於 JavaScript 4.0 的 ArcGIS API
用法說明
FeatureLayerView.featureEffect
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS FeatureLayerView.filter用法及代碼示例
- JavaScript ArcGIS FeatureLayerView.queryFeatureCount用法及代碼示例
- JavaScript ArcGIS FeatureLayerView.highlight用法及代碼示例
- JavaScript ArcGIS FeatureLayerView.queryObjectIds用法及代碼示例
- JavaScript ArcGIS FeatureLayerView.effect用法及代碼示例
- JavaScript ArcGIS FeatureLayerView.when用法及代碼示例
- JavaScript ArcGIS FeatureLayerView.queryExtent用法及代碼示例
- JavaScript ArcGIS FeatureLayerView.availableFields用法及代碼示例
- JavaScript ArcGIS FeatureLayerView.queryFeatures用法及代碼示例
- JavaScript ArcGIS FeatureLayer.queryExtent用法及代碼示例
- JavaScript ArcGIS FeatureLayer.when用法及代碼示例
- JavaScript ArcGIS FeatureLayer refresh事件用法及代碼示例
- JavaScript ArcGIS FeatureLayer.getFieldDomain用法及代碼示例
- JavaScript ArcGIS FeatureLayer.queryFeatureCount用法及代碼示例
- JavaScript ArcGIS FeatureLayer.formTemplate用法及代碼示例
- JavaScript ArcGIS FeatureLayer.relationships用法及代碼示例
- JavaScript ArcGIS FeatureLayer.objectIdField用法及代碼示例
- JavaScript ArcGIS FeatureLayer.opacity用法及代碼示例
- JavaScript ArcGIS FeatureLayer.queryRelatedFeatures用法及代碼示例
- JavaScript ArcGIS FeatureLayer.datesInUnknownTimezone用法及代碼示例
- JavaScript ArcGIS FeatureLayer.featureEffect用法及代碼示例
- JavaScript ArcGIS FeatureLayer.timeInfo用法及代碼示例
- JavaScript ArcGIS FeatureLayer.createQuery用法及代碼示例
- JavaScript ArcGIS FeatureLayer.queryRelatedFeaturesCount用法及代碼示例
- JavaScript ArcGIS FeatureLayer.outFields用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 FeatureLayerView.featureEffect。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。