POST
|
Any ideas please? I tried using the same feature layer even without omitting the TimeExtent property on my map but removing the timeslider and it works. But as soon as i add the timeslider it goes back to being slow again. Here is the code i am using <esri:Map x:Name="MyMap" TimeExtent="{Binding ElementName=MyTimeSlider, Path=Value}"> <esri:FeatureLayer ID="MyFeatureLayer" Initialized="MyFeatureLayer_Initialized" Url="...../TemporalData/MapServer/0"/> </esri:Map> <esri:TimeSlider x:Name="MyTimeSlider" TimeMode="TimeExtent" MinimumValue="{Binding ElementName=MyMap, Path=Layers[MyFeatureLayer].TimeExtent.Start, Mode=OneWay}" MaximumValue="{Binding ElementName=MyMap, Path=Layers[MyFeatureLayer].TimeExtent.End, Mode=OneWay}" Value="{Binding ElementName=MyMap, Path=Layers[MyFeatureLayer].TimeExtent, Mode=OneWay}" > </esri:TimeSlider> private void MyFeatureLayer_Initialized(object sender, EventArgs e) { List<DateTime> intervals = new List<DateTime>(); DateTime dt = MyTimeSlider.MinimumValue; while (dt < MyTimeSlider.MaximumValue) { intervals.Add(dt); dt = dt.AddYears(1); } MyTimeSlider.Intervals = intervals; }
... View more
09-18-2011
11:25 PM
|
0
|
0
|
825
|
POST
|
I tried using the same feature layer even without omitting the TimeExtent property on my map but removing the timeslider and it works. But as soon as i add the timeslider it goes back to being slow again. Here is the code i am using <esri:Map x:Name="MyMap" TimeExtent="{Binding ElementName=MyTimeSlider, Path=Value}"> <esri:FeatureLayer ID="MyFeatureLayer" Initialized="MyFeatureLayer_Initialized" Url="...../TemporalData/MapServer/0"/> </esri:Map> <esri:TimeSlider x:Name="MyTimeSlider" TimeMode="TimeExtent" MinimumValue="{Binding ElementName=MyMap, Path=Layers[MyFeatureLayer].TimeExtent.Start, Mode=OneWay}" MaximumValue="{Binding ElementName=MyMap, Path=Layers[MyFeatureLayer].TimeExtent.End, Mode=OneWay}" Value="{Binding ElementName=MyMap, Path=Layers[MyFeatureLayer].TimeExtent, Mode=OneWay}" > </esri:TimeSlider> private void MyFeatureLayer_Initialized(object sender, EventArgs e) { List<DateTime> intervals = new List<DateTime>(); DateTime dt = MyTimeSlider.MinimumValue; while (dt < MyTimeSlider.MaximumValue) { intervals.Add(dt); dt = dt.AddYears(1); } MyTimeSlider.Intervals = intervals; }
... View more
09-08-2011
11:59 PM
|
0
|
0
|
825
|
POST
|
I have a time aware layer. When i use it as a map service(ArcGISDynamicMapServiceLayer) it loads fast and the time slider works. When i render my features with a feature layer instead, it is extremely slow but eventually loads and time slider doesn't work anymore. But when i use a service as a feature layer from the sample server it works perfectly and isn't slow. What am i missing?
... View more
09-07-2011
10:59 PM
|
0
|
5
|
2067
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|