|
POST
|
Ambiguous call means you have defined that method more than once so it is unsure which method to call. Find all references on GeoprocessorTask_ExecuteCompleted, to see if it was duplicated.
... View more
10-13-2010
11:45 AM
|
0
|
0
|
324
|
|
POST
|
I think what you can do is first know the groups, which you can do by:
foreach (Field field in fl.LayerInfo.Fields)
{
if (field.Domain is CodedValueDomain)
{
CodedValueDomain domain = field.Domain as CodedValueDomain;
foreach (var item in domain.CodedValues)
{
//item.Key is an object this is what you need in your query
}
}
}
If your FeatureLayer was HomelandSecurity as in my previous post, you can see that ftype is CodedValueDomain and you can perform your query where "ftype = 10801".
... View more
10-13-2010
11:41 AM
|
0
|
0
|
1561
|
|
POST
|
The live sample seems to work fine for me. There are three editors here, one for each GraphicsLayer, each performs an Add, and each editor may raise EditCompleted everytime you click a button. It is normal for a Cancel EditAction to occur before Add EditAction. Are you saying Add EditAction never gets raised after you add a barrier/point/etc to the map? Also the best way to know which layer the edit was applied on is to do
void editor_EditCompleted(object sender, Editor.EditEventArgs e)
{
foreach (var edit in e.Edits)
{
if (e.Action== Editor.EditAction.Add)
{
if (edit.Layer == MyFacilitiesGraphicsLayer)
{
//do something here
}
}
}
}
... View more
10-13-2010
11:23 AM
|
0
|
0
|
330
|
|
POST
|
I think what you need is to define DefaultSymbol (for 3). If graphic does not fall under 1 or 2, it will return the DefaultSymbol (3). Or if you really want 3 to be a ClassBreakInfo, maybe use double.MaxValue as the MaximumValue?
... View more
10-13-2010
10:51 AM
|
0
|
0
|
354
|
|
POST
|
The Editor supports GraphicsLayer too, you can look at this sample for guide:http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave. Look at the "Select" buttons. The only thing you will need to do is when you create your GraphicsLayer, give it an ID. The Editor ignores layers that do not have IDs. Also you can set Editor's Map property but leave its LayerIDs alone, you don't need to specify this if your layers will be added at runtime and you do not have this information yet. Setting the Map property is sufficient.
... View more
10-13-2010
07:04 AM
|
0
|
0
|
1079
|
|
POST
|
If you want to undo the last vertex while drawing the graphic, this feature enhancement is still in the works for v2.1. If you want to edit vertices of a graphic that has already been drawn, you should be able to do this on a GraphicsLayer with no problem. You can create a button and set its DataContext to an Editor. It is similar to this except you are working with GraphicsLayer not FeatureLayer. Look at the button for "Edit Vertices" http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave
... View more
10-13-2010
06:58 AM
|
0
|
0
|
978
|
|
POST
|
Each graphic have Attributes property which is of type Dictionary<string, object>. You can easily observe what the values are by doing: foreach(var item in graphic.Attributes) MessageBox.Show(string.Format("{0}: {1}", item.Key, item.Value)); To know the field type, you can go to FeatureLayer.LayerInfo.Fields. Each field will tell you if it is Editable, if it has Length restriction, and what type it falls under. You can check out the API Reference tab, specifically this: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Field_members.html You should then be able to do something like to edit a certain attribute. graphic.Attributes["fieldName"] = fieldValue; //where fieldValue matches the type of "fieldName"
... View more
10-13-2010
06:49 AM
|
0
|
0
|
559
|
|
POST
|
Have you looked at this? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#HeatMapLayerSimple
... View more
10-13-2010
06:35 AM
|
0
|
0
|
857
|
|
POST
|
Do you mean this? In this feature service http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0 ftype is CodedValueDomain, each number represent a category that can be one of the following values (Hydro-Meteorlogical, Public Health, ... Vehicle) If I want to see only features that are "Vehicle", my query's Where is "ftype = 10801"
... View more
10-13-2010
06:29 AM
|
0
|
0
|
1561
|
|
POST
|
Have you checked this blogpost? http://rexdotnet.blogspot.com/2010/09/use-google-maps-with-arcgis-silverlight.html
... View more
10-12-2010
10:41 AM
|
0
|
0
|
352
|
|
POST
|
Sure, the fix will be in post-beta. But basically, if the URL request becomes very large (exceeding 2048 bytes), GET request fails and therefore we added support that this request be able to automatically switch to a POST. For ArcGISDynamicMapServiceLayer, increasing the number of your layer definitions can make the URL request very large. This case is now supported in 2.1.
... View more
10-12-2010
10:35 AM
|
0
|
0
|
414
|
|
POST
|
For your first question: identifyParams.LayerOption = LayerOption.visible; For your second question: identifyParams.LayerIds.AddRange(new int[] {1,5,17,18});
... View more
10-12-2010
10:18 AM
|
0
|
0
|
2651
|
|
POST
|
You can subscribe to the MouseLeftButtonDown event on the GraphicsLayer that contains the graphics with point geometry. The GraphicEventArgs contain e.Graphic so you will know exactly which Graphic had been clicked.
... View more
10-12-2010
07:06 AM
|
0
|
0
|
1026
|
|
POST
|
If you have Expression Blend, you can edit existing template and create a new EditorWidgetStyle as in the attached sample here http://forums.arcgis.com/threads/9756-Undo-edits-of-the-EditorWidget. Using the link Morten provided, you can also update the style of the TemplatePicker contained in your EditorWidgetStyle.
... View more
10-12-2010
06:42 AM
|
0
|
0
|
613
|
|
POST
|
Double-click on the vertex you want to delete. If you are using Editor, the command is EditVertices.
... View more
10-08-2010
06:54 AM
|
0
|
0
|
541
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 1 | 04-05-2024 06:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-12-2026
09:38 AM
|