Select to view content in your preferred language

MapLayer.DisplayExpression [Help]

653
0
04-18-2011 11:53 AM
AkhilParujanwala
Regular Contributor
Hi, I am trying to use MapLayer.DisplayExpression and it doesn't seem to be working.

Here is the code:

ERSI.ArcGIS.Mobile.WPF Map. mMap = MobileApplication.Current.Map;
MapLayer mapLayer1 = mMap.Layers["Dose Rates"];

string currentEvent = "Event7";
QueryFilter pQueryFilter = new QueryFilter();
pQueryFilter.WhereClause = "EVENT_NAME = " + "'" + currentEvent + "'"
mapLayer1.DisplayExpression = pQueryFilter.WhereClause;


Kindly advise on how to implement this properly. The code does not work, I still see all the points on the map, when I should only see 2 points.

Thanks,

Akhil P.
0 Kudos
0 Replies