|
POST
|
So the question is, how to identify which radio button is clicked? You can look at this SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SwitchMap The radio buttons in the sample above is used to switch base layer url. Notice that all radio button use the same RadioButton_Click event. In XAML, notice also that RadioButton.Tag is used to hold the url. Another way is to check by instance.
RadioButton rb = sender as RadioButton
if(rb == this.StreetsRadioButton){}
else if(rb == this.TopoRadioButton){}
else{}
... View more
03-02-2011
10:22 AM
|
0
|
0
|
632
|
|
POST
|
This is by design, map.Cursor is changed to Cursors.Hand while MeasureAction is active and then changed back to previous cursor when disabled.
... View more
03-02-2011
09:23 AM
|
0
|
0
|
871
|
|
POST
|
Can you share some code that will help us reproduce with one of the sampleserver feature services? Thanks.
... View more
03-02-2011
07:26 AM
|
0
|
0
|
2201
|
|
POST
|
You can look at the animated line symbol in this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols. I think you should be able modify it using the Storyboard from StrobeMarkerSymbol by updating TargetName ("Element") and adding RenderTransform with ScaleTransform to your Path.
... View more
03-01-2011
09:06 AM
|
0
|
0
|
670
|
|
POST
|
Oh, could you verify that the geometries have the same SpatialReference as the MapPoint? If they are found to be not equal, Intersects() will return false.
... View more
03-01-2011
07:50 AM
|
0
|
0
|
1059
|
|
POST
|
Yes, that is correct. Credentials property is only for WPF because client authentication is handled by the browser in Silverlight. Do you use a Proxy? I think you need to include the username and password in the proxy.config <!-- serverUrl options: url = location of the ArcGIS Server, either specific URL or stem matchAll = true to forward any request beginning with the url token = (optional) token to include for token secured services, usually a long-term token tokenUrl = (optional) token service for a Web site (url) timeout = (optional) short-term timeout for a token in minutes username = (optional) username for a token or http secured site password = (optional) password for a token or http secured site domain = (optional) domain for an http secured site --> <serverItem url="http://kml-samples.googlecode.com/svn/trunk" matchAll="true" domain="mydomain" username="myusername" password="mypassword" /> Also when you define Authentication on the Proxy website, make sure that Anonymous Authentication is Disabled and either Basic or Windows Authentication enabled.
... View more
03-01-2011
07:44 AM
|
0
|
0
|
2672
|
|
POST
|
Sure, this is possible. You can subscribe to the Editor's EditCompleted event and check for Editor.EditEventArgs.Action (http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Editor+EditAction.html) and Editor.EditEventArgs.Edits (http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Editor+Change_members.html). You should be able to get SelectedGraphics from the layer (edit.Layer or edit.Graphic). If your data grid contains GraphicCollection, you should be able to do something like: dataGrid.SelectedItem = edit.Graphic
... View more
03-01-2011
07:33 AM
|
0
|
0
|
554
|
|
POST
|
I tried to replicate the issue by performing an attribute value change on feature service and performing a query on its corresponding map service after the edit was submitted to the server. I was able to see the updated attribute value when my QueryTask ExecuteCompleted. I used the following code where my FeatureLayer is AutoSave=True so I did not need to call SaveEdits() explicitly. I also subscribed to EndSaveEdits and SaveEditsFailed to make sure that the edit was submitted to the server.
private void Query_Click(object sender, RoutedEventArgs e)
{
Query q = new Query()
{
OutFields = new OutFields() { "*" },
ObjectIDs = new int[] { 78597 },
};
QueryTask qt = new QueryTask("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/MapServer/2");
qt.DisableClientCaching = true;
qt.ExecuteCompleted += new EventHandler<QueryEventArgs>(qt_ExecuteCompleted);
qt.ExecuteAsync(q);
}
void qt_ExecuteCompleted(object sender, QueryEventArgs e)
{
foreach (var f in e.FeatureSet.Features)
System.Diagnostics.Debug.WriteLine(f.Attributes["description"]);
}
private void FeatureLayer_MouseLeftButtonDown(object sender, GraphicMouseButtonEventArgs e)
{
//78597
e.Graphic.Attributes["description"] = "this is a test";
}
If SaveEditsFailed event did not get raised and the edit was submitted successfully, maybe you just need to set DisableClientCaching to true on QueryTask http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.TaskBase~DisableClientCaching.html
... View more
02-28-2011
03:48 PM
|
0
|
0
|
808
|
|
POST
|
The web API's do not work with ArcMap directly. ArcMap can be used to author the map resources you host on ArcGIS Server (for which, you will need ArcGIS Server license). The ArcGIS API for Microsoft Silverlight/WPF enables you to create rich internet and desktop applications that utilize the powerful mapping, geocoding, and geoprocessing capabilities provided by ArcGIS Server and Bing�?� services.
... View more
02-28-2011
03:27 PM
|
0
|
0
|
1019
|
|
POST
|
ToolbarItemClicked event is raised on MouseLeftButtonDown. A Button raises Click event instead. You can download the toolkit from CodePlex and customize Toolbar to change this behavior.http://esrisilverlight.codeplex.com/.
... View more
02-28-2011
03:10 PM
|
0
|
0
|
1599
|
|
POST
|
As far as I know you need to set up the map document with class breaks renderer to have access to these values in the web API. There is no interface with method that will return the classes based on provided data and method of classification like in ArcGISDesktop.
... View more
02-28-2011
03:05 PM
|
0
|
0
|
1034
|
|
POST
|
You need to supply Credentials to the WMS layer before it gets initialized or added to the map control.
<esri:WmsLayer ID="AGSWMSLayer"
Credentials="{StaticResource MyCredentials}"
Url="http://secured/MapServer/WMSServer"
Initialized="WmsLayer_Initialized"/>
How do you secure the WMS service? Do you have Anonymous Authentication Disabled and either Basic or Windows Authentication Enabled? Also, can you check with Fiddler, if the web request to WMS server is followed by a 401-challenge?
... View more
02-28-2011
02:48 PM
|
0
|
0
|
2672
|
|
POST
|
You can use Intersects() method http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Envelope~Intersects.html Something like this, where args.Geometry is the MapPoint created by Draw. This code-snippet allows me to select all graphics that contain the MapPoint.
foreach (var g in graphicsLayer.Graphics)
{
if (g.Geometry.Extent.Intersects(args.Geometry.Extent))
g.Selected = true;
}
... View more
02-28-2011
02:38 PM
|
0
|
0
|
1059
|
|
POST
|
These two spatial reference are equivalent. Does your service include Shape field for points? Kindly check that graphic.Attributes["Shape"] is not null before you, call ToString() on it.
... View more
02-28-2011
10:38 AM
|
0
|
0
|
692
|
|
POST
|
Does your service contain these editable fields (TypeID, Custom1)? If yes, do they match the data type value (TypeID a number, Custom1 a string)? Kindly inspect the Error in the SaveEditsFailed. Also, you might want to run Fiddler with your app to see how the web request is formed when applying these edits. Looking at your code, I would not advice adding the graphics in the UpdateCompleted event. This event is also raised the first time feature service is querried for existing features and every time you call Update() on the layer. Just to clarify, without the attribute change, you are able to see the newly added features in your service? What version of the API are you using? Can you also share code on how FeatureLayer is created? Thanks.
... View more
02-28-2011
10:34 AM
|
0
|
0
|
1048
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-10-2026 12:13 PM | |
| 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 |
07-13-2026
09:07 AM
|