DefinitionExpression Features Hide/Show speed

228
1
04-11-2022 07:20 AM
MartijnDekker
New Contributor

Hello,

We have build an application  that uses a couple of featureCollectionLayers (around 15)
In those featureCollectionLayers we have features (around 1000 in total).

We want to be able to show/hide those feature individually. currently we set an DefinitionExpression on each featureLayer in a FeatureCollection layer.
Although this work, this is very slow....
How can we show.hide single features and still have an responsive map ? 

Using C#, latest .net SDK

Cheers

0 Kudos
1 Reply
Nicholas-Furness
Esri Regular Contributor

Have you tried DisplayFilters? The Definition Expression determines what's obtained from the data source, so if you change that it will make a new request (hence the delay). Display Filters just work with the data in hand. Sounds like you want to use a ManualDisplayFilterDefinition.

0 Kudos