|
POST
|
Check to see if the web request was a POST or a GET. I believe we had a fix some time after 2.1. Can you see if you can repro with 2.4? To answer your questions: a. Failed event is raised when web request failed. b. "Server: NotFound" is usually thrown when the URL is wrong or method is incorrect. To know if this is an API bug, copy the URL from Fiddler and see if you can make the request from web browser.
... View more
02-25-2012
08:48 AM
|
0
|
0
|
3328
|
|
POST
|
Can you share the feature symbol? Is it coming from service renderer or client renderer? EditVertices will clone the geometry, attribute and symbol so it should not be different from the original graphic.
... View more
02-25-2012
08:39 AM
|
0
|
0
|
1718
|
|
POST
|
I am a little bit confused with SelectPoints_Click. If you are using Editor.Select, you don't have to add a click event. The Select command will just work. You can try this SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave. If you check Continuous Action check box, this sets Editor.ContinuousMode=True, which means any active command will remain active until you cancel it explicitly using CancelActive or another command gets activated. This should help you make continuous selection.
... View more
02-25-2012
08:36 AM
|
0
|
0
|
1300
|
|
POST
|
Editor has EditorActivated and EditCompleted events, which you can use to do the additional operation you wish to do. If you want these commands triggered in code-behind, you can do:
if(editor.Cut.CanExecute(null))
editor.Cut.Execute(null); //where null is the Command parameter
... View more
02-25-2012
08:26 AM
|
0
|
0
|
1272
|
|
POST
|
You can probably use GraphicsLayer with ClassBreaksRenderer or UniqueValueRenderer if you want the symbol to be based on attributes. The following SDK samples might help: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RenderersXAML http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Thematic_Interactive There are some custom symbols here that might help: http://help.arcgis.com/en/webapi/silverlight/samples/SymbolGalleryWeb/start.htm
... View more
02-25-2012
08:17 AM
|
0
|
0
|
501
|
|
POST
|
IdentifyTask and QueryTask do not share parameters, so setting MaxAllowableOffset in one should not affect the other. Negative MaxAllowableOffset is not sent in the request so if the service use some MaxAllowableOffset when your app did not send it, it sounds like server issue. Do you get the same results when you run Identify and Query using REST end point from web browser?
... View more
02-25-2012
08:09 AM
|
0
|
0
|
2232
|
|
POST
|
I googled the error and result show Desktop forum threads: http://www.google.com/search?q=HRESULT+%3D+0x80041538
... View more
02-25-2012
08:04 AM
|
0
|
0
|
748
|
|
POST
|
You can probably refer to this sample: http://esrislcontrib.codeplex.com/. I know this is Silverlight-specific but you can probably tweak it for WPF.
... View more
02-22-2012
10:09 AM
|
0
|
0
|
1902
|
|
POST
|
The SDK samples have VB version as well. As for the code below, you can try online conversion C# to VB. I think you're the same person that posted in Silverlight forum. It sounds like you're making progress already 🙂
... View more
02-22-2012
10:05 AM
|
0
|
0
|
1600
|
|
POST
|
You can use a GraphicsLayer on top of your FeatureLayer to hold the label.
... View more
02-22-2012
10:03 AM
|
0
|
0
|
2611
|
|
POST
|
I could not reproduce with the following code. Does query need to be complicated? Do both QueryTask point to the same service URL? This prints to OutputWindow that both QueryTask executes fine. Have you tried sampleserver or is it service-specific perhaps? Please tweak the following code, I would like to reproduce and see if we can fix the bug. Thanks.
var query = new Query() { Where = "1=1", ReturnGeometry = true };
query.OutFields.Add("*");
var firstQT = new QueryTask("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0");
firstQT.Failed += (s, e) =>
{
System.Diagnostics.Debug.WriteLine("firstQT.Failed");
};
firstQT.ExecuteCompleted += (s, e) =>
{
System.Diagnostics.Debug.WriteLine("firstQT.ExecuteCompleted");
};
var secondQT = new QueryTask("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0");
secondQT.Failed += (s, e) =>
{
System.Diagnostics.Debug.WriteLine("secondQT.Failed");
};
secondQT.ExecuteCompleted += (s, e) =>
{
System.Diagnostics.Debug.WriteLine("secondQT.ExecuteCompleted");
};
firstQT.ExecuteAsync(query);
secondQT.ExecuteAsync(query);
... View more
02-22-2012
10:01 AM
|
0
|
0
|
2594
|
|
POST
|
What are you using to reshape? The following SDK sample might help: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Reshape. It could also be that Reshape failed. Initialize failed or Update is not called. It is best to run Fiddler with your application to see the last web request made and/or set breakpoints to see which code is not hit.
... View more
02-22-2012
09:42 AM
|
0
|
0
|
1045
|
|
POST
|
Can you run your code without workaround and run Fiddler? You should be able to see if IdentifyTask pass MaxAllowableOffset even if you did not set it. If it was never set and the request still sends it, then it must be a bug in our API. I do not find us setting this to a default value though. It is only when IdentifyParameters.MaxAllowableOffset > 0 that we send it. So maybe if you need to set it at some point but succeeding request should clear it then reset by setting to a negative value?
... View more
02-22-2012
09:37 AM
|
0
|
0
|
2232
|
|
POST
|
Try to use Fiddler with your application and see what web request it's making. See if that URL can be visited from your web browser. Also check the web response if there's any useful error message.
... View more
02-22-2012
09:15 AM
|
0
|
0
|
3328
|
|
POST
|
We don't support this out-of-the-box so would require you to write your own code. Orlando's suggestion sound like a good solution. DrawBegin will not give you the current location but after this is raised, you can use VertexAdded event and get the start point from there.
... View more
02-22-2012
08:52 AM
|
0
|
0
|
890
|
| 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
|