Select to view content in your preferred language

how to get the time extent of individual layers

1004
5
09-25-2012 12:19 PM
FrancoisGilbert
Deactivated User
Hello,

I am looking for a code example to browse through the sub-layers of a "ArcGISDynamicMapServiceLayer". I want to spot the first layer that is "time enabled" and if I find one, I want to set the extent of that time enabled layer. Afterwhile, I need to set the timeslider property according to that enabled layer. If possible, I would like the code to work for all types of time enabled layers including mosaic raster dataset that contains weather forecast in my case.

François
0 Kudos
5 Replies
DominiqueBroux
Esri Frequent Contributor
This Silverlight sample might help : http://broux.dominique.free.fr/Silverlight/InteractiveSDK/Default.htm#AutoTimeSliderSample.

It's getting the time extent info from the layers in order to set automatically the time slider.
0 Kudos
FrancoisGilbert
Deactivated User
Excellent,

That's exactly what I was looking for. I am coding in "vb.net" so I will make the translation if it is not available in vb.

François
0 Kudos
FrancoisGilbert
Deactivated User
Hello,

I cannot get the silverlight sample running in a wpf user control library. The NameSpace "ArcGISSilverlightSDK" is not recognized in the assembly. Do you have the same code sample running for WPF user control.

François
0 Kudos
FrancoisGilbert
Deactivated User
Sorry,

The sample now works. I have given-up on translating in vb.net and the c# sample works. I had to clean the project, delete pregenerated files and rebuild several times but it works

François
0 Kudos
FrancoisGilbert
Deactivated User
Hello Dominique,

The "Auto Time Slider" sample application in Silverlight you have mentionned will be pretty helpful for me. However, the sample does not work when the time slider is set to "Time Instant Mode". This might be an ESRI bug as I also have some problems with ArcMap with this functionality.

François
0 Kudos