|
POST
|
To use with multiple map services, you can subscribe to the same ArcGISDynamicMapServiceLayer_Initialized event in Post#2. And modify it so that you can exclude sublayers that contains 'label' in their name. foreach (LayerInfo l in dynamicServiceLayer.Layers)
{
if(!l.Name.Contains("label)")
MySubLayers.Add(new MyLayerInfo(l));
}
... View more
02-22-2012
07:44 AM
|
0
|
0
|
1294
|
|
POST
|
This SDK sample might help: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave and API reference: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Editor.html The Toolkit.EditorWidget is using Toolkit.TemplatePicker and Editor (Select, EditVertices, Cut, Reshape, Union, DeleteSelected, ClearSelection, SaveEdits). TemplatePicker is also using Editor (Add). This becomes more apparent when you get the EditorWidget or TemplatePicker style using the following blog post: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/28/Localizing-ArcGIS-Controls.aspx.
... View more
02-22-2012
07:36 AM
|
0
|
0
|
1272
|
|
POST
|
Oh I understand. If you can isolate the code that reproduce this XAML exception and use sample services instead, that will be great.
... View more
02-22-2012
07:30 AM
|
0
|
0
|
1415
|
|
POST
|
The following resource might help: http://help.arcgis.com/en/webapi/silverlight/help/index.html#//016600000004000000 To access an ArcGIS Server site on a different domain than the Silverlight application host site, the ArcGIS Server site must enable remote access to services. This is accomplished using clientaccesspolicy.xml or crossdomain.xml. In most cases, just place the XML file at the root of your website (for example, for IIS, C:\inetpub\wwwroot\).
... View more
02-22-2012
07:10 AM
|
0
|
0
|
1050
|
|
POST
|
You can use the following code: XAML
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center">
<ComboBox x:Name="LayerNames">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Value.Name}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<ComboBox x:Name="FieldNames" DataContext="{Binding ElementName=LayerNames, Path=SelectedItem}"
ItemsSource="{Binding Value.Fields}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</StackPanel>
Code-Behind
var layer = new ArcGISDynamicMapServiceLayer() { Url = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/MapServer" };
layer.GetAllDetails((a, b) =>
{
if (b != null)
MessageBox.Show(b.Message);
else
LayerNames.ItemsSource = a;
});
... View more
02-22-2012
07:02 AM
|
0
|
0
|
981
|
|
POST
|
That is correct only one Draw object is enabled at a time. Even though you may have multiple instances of Draw. For example, Editor.Add, Editor.Select, Editor.Cut, Editor.Reshape, Editor.Union, TemplatePicker, EditorWidget, Measure, etc. - activating one of these will deactivate the current Draw object. This is by design.
... View more
02-22-2012
06:42 AM
|
0
|
0
|
893
|
|
POST
|
What version of the API and Expression Blend are you using? Can you share XAML-code? What properties do you have for the map control? We'd like to reproduce it here so we can fix it if there's a design-view bug. Thanks.
... View more
02-14-2012
05:37 AM
|
0
|
0
|
1415
|
|
POST
|
This code project seem to do what you're trying to do using WCF Services: http://www.codeproject.com/Articles/32700/Access-Sessions-from-Silverlight-and-ASP-NET
... View more
02-14-2012
05:35 AM
|
0
|
0
|
613
|
|
POST
|
The following resource might be useful: http://help.arcgis.com/en/webapi/silverlight/help/index.html#//016600000019000000. You first need to publish your service in order to be consumed by Silverlight app. http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//00930000004r000000 However, you are not limited to using ArcGIS Server. There are several samples you can look at: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm. (see DataSources, Graphics, WebMap section).
... View more
02-10-2012
07:50 PM
|
0
|
0
|
430
|
|
POST
|
Kindly see reply to post: http://forums.arcgis.com/threads/49818-Editing-using-EDITOR
... View more
02-10-2012
06:21 PM
|
0
|
0
|
1602
|
|
POST
|
You can switch between two renderers using the following code:
var l = MyMap.Layers["California"] as GraphicsLayer;
var firstRenderer = LayoutRoot.Resources["MyRenderer"] as IRenderer;
var secondRenderer = LayoutRoot.Resources["MyRenderer"] as IRenderer;
l.Renderer = l.Renderer == firstRenderer ? secondRenderer : firstRenderer;
There's also an SDK sample that builds renderer at run-time: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Thematic_Interactive This may be similar concept for scaling your line symbols: http://forums.arcgis.com/threads/28787-Scaling-Text-Symbols This seem related to getting Distinct values: http://forums.arcgis.com/threads/16305-Attribute-Query-Task-Question
... View more
02-10-2012
06:20 PM
|
0
|
0
|
871
|
|
POST
|
This may have already been fixed in v3.0 Beta 2. You can download it from here: http://resourcesbeta.arcgis.com/en/webapis/silverlight-api/community/index.html http://resourcesbeta.arcgis.com/en/webapis/silverlight-api/concepts/index.html#/What_s_new_in_3_0/0166000000m9000000/ �?�Memory leak when calling Clear on child layers in a GroupLayer
... View more
02-10-2012
06:03 PM
|
0
|
0
|
1017
|
|
POST
|
You can look at the following SDK samples: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LoadWebMap http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#KmlLayerSimple http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#WmsLayerSimple http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GeoRssSimple
... View more
02-10-2012
05:58 PM
|
0
|
0
|
540
|
|
POST
|
You can look at the following SDK samples: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LoadWebMap http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#KmlLayerSimple http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#WmsLayerSimple http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GeoRssSimple
... View more
02-10-2012
05:57 PM
|
0
|
0
|
2405
|
|
POST
|
FeatureDataGrid.GraphicsLayer can only be one GraphicsLayer. If your GraphicsLayer is inside a GroupLayer, you can use the following code: <esri:FeatureDataGrid Grid.Row="2" x:Name="MyDataGrid"
Map="{Binding ElementName=MyMap}"
GraphicsLayer="{Binding ElementName=MyMap, Path=Layers.[MyGroupLayerID].ChildLayers[MySubLayerID]}" />
... View more
02-10-2012
05:53 PM
|
0
|
0
|
405
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 1 | 09-11-2025 01:30 PM | |
| 1 | 06-06-2025 10:14 AM | |
| 1 | 03-17-2025 09:47 AM | |
| 1 | 07-24-2024 07:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|