Filter features by geometry with SceneLayer
Filter (masking) features is useful in urban planning. In this sample users can hide buildings and trees by drawing a masking polygon, polyline or points with buffers.
The polygon, polyline or point used for filtering is drawn using the SketchViewModel. We define it by passing in the view and a GraphicsLayer where the polygon, polyline or point is drawn. Optionally we can set a symbol for the polygon, polyline or point:
Spatial filtering can be easily achieved by setting a filter on a SceneLayerView:
Currently for 3D object SceneLayerViews spatial FeatureFilter only works when spatialRelationship is one of contains
, intersects
, disjoint
.