LayerDefinitions Problem

689
1
10-12-2011 04:26 AM
UlfGrimhardt
New Contributor
Hi,

in my Silverlight App i have a ArcGISDynamicMapServicelayer which consists of 4 Layers.
One Layer uses Point-Feature with labels. The other Layer use Line-Feature with Label.

Now i implemented LayerDefinition in my App which is added dynamically. So depending on different TextBoxes a LayerDefinitionString is created and added to a LayerDefinitionCollection (ObservableCollection) which is connected to the ArcGISDynamicMapServiceLayer.LayerDefinitions.
This seems to work just fine.

Now i added a DatePicker where the user can add a date which should also be included in the LayerDefinitionString.

So for example only Lines and Points with a DateAttribute >= 01/01/2000 should be shown.
The result is, that all Points are shown >= 01/01/2000 but no lines at all. Even the Labeling of the Points is completly gone?!

Any Ideas about that problem?
0 Kudos
1 Reply
UlfGrimhardt
New Contributor
Ok, after days of desperation i solved the problem.
The Line-Features Attributefield was Text not Date. 😉

Glad i found that.
0 Kudos