Select to view content in your preferred language

How to set a new where clause on feature layer

657
1
Jump to solution
12-12-2012 06:23 AM
RickHendrickson
Occasional Contributor
Hello, here is my problem:
I define a featurelayer in code-behind with a where clause. Then user chooses a value from a combo box and the map zooms to a new area. I am trying to change the where clause on the feature layer so only features with the new area will be shown. Well, the new features are showing up but the old features are still on as well. I can't 'clear' out the old where clause. Any ideas?
Thanks
Rick
0 Kudos
1 Solution

Accepted Solutions
RickHendrickson
Occasional Contributor
I got it to work by creating the featurelayer in xaml and then just modifying the where clause in code behind. For some reason that works.
Thanks.
Rick

View solution in original post

0 Kudos
1 Reply
RickHendrickson
Occasional Contributor
I got it to work by creating the featurelayer in xaml and then just modifying the where clause in code behind. For some reason that works.
Thanks.
Rick
0 Kudos