when i tried putting my server's url, it doesn't work... it shows a exclamation icon....
will the code work for wpf?
the reference to ESRI.ArcGIS is missing.
<!--<TextBox Grid.Column="1" Grid.Row="3" Foreground="White" FontWeight="Normal" FontStyle="Italic" TextWrapping="Wrap" BorderBrush="Transparent" Background="Transparent" Text="{Binding Path=MapServiceInfo.SingleFusedMapCache, Mode=OneWay}"/>--> <TextBox Grid.Column="0" Grid.Row="3" Foreground="White" FontWeight="Bold" FontStyle="Normal" TextWrapping="Wrap" BorderBrush="Transparent" Background="Transparent" Text="Layers"/> <ListBox Grid.Column="1" Grid.Row="3" FontWeight="Bold" FontStyle="Normal" BorderBrush="Transparent" Background="Transparent" ItemsSource="{Binding MapServiceInfo.Layers}" DisplayMemberPath="Name"/>
foreach (Service service in catalog.Services) { switch (service.Type) { case MapService.TYPE: ........
{ "id" : 0, "name" : "Earthquakes from last 7 days", "type" : "Feature Layer", "description" : "Latest Earthquakes from the USGS CSV repository.\n\nhttp://earthquake.usgs.gov/earthquakes/catalogs/eqs7day-M1.txt \n\nThe source network, ID, version, date, location, magnitude, depth (km) and number of reporting stations are in this layer. This layer is updated every 5 minutes.", "definitionExpression" : "", ......
"parentLayer" : {"id" : 2, "name" : "Water"},
[DataContract] public class ParentLayerInfo { [DataMember(Name="id")] public int ID { get; set; } [DataMember(Name = "name")] public string Name { get; set; } }
[DataContract] public class SubLayerInfo { //Properties .... .... [DataMember(Name = "parentLayer")] public ParentLayerInfo ParentLayer { get; set; } }
Sample of a server explorer showing in a treeview a dynamic catalog of the ArcGIS Server map services : http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=16243You can also test it live : http://maps.esri.com/serverexplorer/default.htm
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.