-
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/GeoJSONLayerView
繼承: GeoJSONLayerView > LayerView > Accessor
自從:用於 JavaScript 4.11 的 ArcGIS API
用法說明
GeoJSONLayerView.featureEffect
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS GeoJSONLayerView.filter用法及代碼示例
- JavaScript ArcGIS GeoJSONLayerView.queryFeatureCount用法及代碼示例
- JavaScript ArcGIS GeoJSONLayerView.queryFeatures用法及代碼示例
- JavaScript ArcGIS GeoJSONLayerView.createQuery用法及代碼示例
- JavaScript ArcGIS GeoJSONLayerView.availableFields用法及代碼示例
- JavaScript ArcGIS GeoJSONLayerView.queryObjectIds用法及代碼示例
- JavaScript ArcGIS GeoJSONLayerView.highlight用法及代碼示例
- JavaScript ArcGIS GeoJSONLayerView.queryExtent用法及代碼示例
- JavaScript ArcGIS GeoJSONLayerView.when用法及代碼示例
- JavaScript ArcGIS GeoJSONLayerView.effect用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.minScale用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.url用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.createQuery用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.queryFeatureCount用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.orderBy用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.applyEdits用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.maxScale用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.labelingInfo用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.fullExtent用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.refresh用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer edits事件用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.featureEffect用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.fields用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.queryFeatures用法及代碼示例
- JavaScript ArcGIS GeoJSONLayer.opacity用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 GeoJSONLayerView.featureEffect。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。