refresh a feature layer after changing definition expression

3129
2
Jump to solution
06-14-2016 01:24 AM
albavoli
New Contributor III

i am changing the definition expression of the layer on toggle but how can i do a refresh of the map to display the same layer but with new changes?

0 Kudos
1 Solution

Accepted Solutions
albavoli
New Contributor III

i resolve it using requery of the feature layer after changing the definition expression.

Thanks Luke

View solution in original post

0 Kudos
2 Replies
LucasDanzinger
Esri Frequent Contributor

If you set a definition expression on the layer, the map should automatically update the view to show only the features that match the definition expression. Can you post some code that shows what you are trying to do but doesn't work?

0 Kudos
albavoli
New Contributor III

i resolve it using requery of the feature layer after changing the definition expression.

Thanks Luke

0 Kudos