You feature layer ID is WellsFeatureLayer (not WellsLayer).
Path=Layers[WellsFeatureLayer].Graphics
<esri:FeatureLayer ID="WellsFeatureLayer" Url="http://serverprd02/ArcGIS/rest/services/SilverLightDir/Wells_Timeline/MapServer/0" />
You need to initialize the OutFields property of your feature layer :
OutFields="*" or OutFields="EOM,Adj_Close"
Sorry, I should have noticed that at your previous post but I missed the point.
<esri:FeatureLayer ID="WellsFeatureLayer" Url="http://serverprd02/ArcGIS/rest/services/SilverLightDir/Wells_Timeline/MapServer/0" > <esri:FeatureLayer.OutFields> <sys:String>EOM</sys:String> <sys:String>Adj_Close</sys:String> </esri:FeatureLayer.OutFields> </esri:FeatureLayer>
any idea why I get an hour glass?
Perhaps just slow because too much objects in the chart. How many features in your layer?
If it's the case, the filtering by timeextent will help.
if (e.PropertyName == "TimeEvent") SetLastObservations();
does it need to say "== MyTimeSlider" or "== TimeEvent"?
public void TemporalRendererTracks()
{
InitializeComponent();
DataContext = this;
}
public MainPage()
{
InitializeComponent();
DataContext = this;
}
return from g in graphics
where g.TimeExtent.Intersects(map1.TimeExtent)
group g by g.Attributes["EOM"] into grp
select grp.OrderByDescending(g => g.Attributes["EOM"]).First();
return from g in graphics where g.TimeExtent.Intersects(map1.TimeExtent);
The Chart seems static though
I didn't think 2000 records would be that much for this to handle
Check with the debugger that SetLastObservations is being called when the time extent changed.
It's likely only an optimization matter.
A chart can handle 2000 objects but with this binding ItemsSource="{Binding ElementName=MyMap, Path=Layers[MyHurricaneFeatureLayer].Graphics}", as Graphics is an observable collection, the chart is reinitialized each time a graphic is added to the feature layer so 2000 times in your case.
Hovever the timeextent filtering should reduce this number. How many features are displayed at a time?
If you have too ma,y features, you can optimize by replacing the ObservableCollection by a simple collection (IEnumerable) and by firing by yourself the PropertyChanged event each time the collection changed (or another option is to use a dependency property, up to you).
LastObservations.Add(g);