|
POST
|
Thank you for reporting this. I was able to replicate the issue and we'll try to get it fixed in future release of the API.
... View more
02-28-2011
09:11 AM
|
0
|
0
|
562
|
|
POST
|
Oh cuz you called it your base map service, I assumed you were using the ArcGISDynamicMapServiceLayer as base layer, this is why I added it as first layer of the map. And since you were doing a check if layer had been initialized, I thought you expect it to already be initialized by maybe adding the layer to your map. So the main function of your ArcGISDynamicMapServiceLayer is to determine the sub layers and create FeatureLayers against them? This should not be a problem. From my code snippet, you can remove the part where the ArcGISDynamicMapServiceLayer is added to your map. I think other than those two discrepancies, your code and mine are identical and I do not see the features deleted from the layer by doing so.
... View more
02-28-2011
08:01 AM
|
0
|
0
|
1715
|
|
POST
|
I believe you are referring to this http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Classifying_numerical_fields_for_graduated_symbology/00s50000001r000000/. Using Web API's you can use the same symbology defined in your service or you may overwrite with your own ClassBreaksRenderer as shown in two following examples: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RenderersXAML http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerRendering Here's more documentation about it: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ClassBreaksRenderer.html
... View more
02-28-2011
07:50 AM
|
0
|
0
|
1034
|
|
POST
|
That is right, MouseClick event is dependent on MouseLeftButtonDown and MouseLeftButtonUp events and will not fire if MouseLeftButtonDown had been marked handled. Can you use MouseLeftButtonDown event to perform the add instead? In doing so, you can mark the same event handled to prevent zoom on Double click.
... View more
02-28-2011
07:32 AM
|
0
|
0
|
1218
|
|
POST
|
It's hard to tell what could be wrong in your application. Try to debug through it and see if ComboBox.Items.Count gets updated. Also, you can change your Binding statements to include a FallbackValue. For example: <TextBlock Text="{Binding Path=Value, FallbackValue=BindingToValueFailed}"/> In this sample, if anything goes wrong with the binding, I will see "BindingToValueFailed" text. I can then check to see what this TextBlock's DataContext is and if it contain a Value property.
... View more
02-25-2011
12:14 PM
|
0
|
0
|
1638
|
|
POST
|
Sure you can customize the existing FeatureDataForm, the source code can be downloaded from CodePlex. http://esrisilverlight.codeplex.com/ You also might want to look at this thread: http://forums.arcgis.com/threads/23331-How-to-create-a-non-editable-field-in-a-FeatureDataForm.
... View more
02-25-2011
12:04 PM
|
0
|
0
|
649
|
|
POST
|
This is related thread: http://forums.arcgis.com/threads/17438-Clustering-time-aware-queries. This bug will be addressed in v2.2 beta.
... View more
02-25-2011
11:53 AM
|
0
|
0
|
660
|
|
POST
|
Yes, the FeatureDataForm's Fields is based on the OutFields of the FeatureLayer it is set to bind against. If you want to include/exclude fields, do not use "*" on your FeatureLayer.OutFields, instead specify the fields you want displayed on your FeatureDataForm.
... View more
02-25-2011
11:26 AM
|
0
|
0
|
649
|
|
POST
|
Sure, you can still populate items in combo box with your Query. You will be working with QueryEventArgs.FeatureSet which contains the following members: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.FeatureSet_members.html instead. ComboBox is just an ItemsControl. How you define the items to populate it with is completely up to you. Just as in the Identify sample, they used another class to simplify retrieving result and binding to the control. You are free to write your own class or use QueryEventArgs.FeatureSet directly.
... View more
02-25-2011
11:14 AM
|
0
|
0
|
1638
|
|
POST
|
You can look at this Silverlight forum thread: http://forums.silverlight.net/forums/p/153166/346812.aspx Or do you mean to run the report from ArcGISDesktop? If so, look at this doc: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00qp0000000s000000.htm
... View more
02-25-2011
09:06 AM
|
0
|
0
|
399
|
|
POST
|
_dataItem is an instance of the DataItem object with Title (IdentifyResult.Value + IdentifyResult.LayerName) and Data (IdentifyResult.Features.Attributes). It acts as a wrapper class to IdentifyResult, where only specific values from the IdentifyResult are retrieved and displayed in the IdentifyGrid. I think once you know the function of this class and how it plays its part in populating values for the IdentifyGrid (see XAML and code-behind). You can update the sample as you see fit.
... View more
02-25-2011
08:53 AM
|
0
|
0
|
1638
|
|
POST
|
This sounds serious. However, I am not able to repro it. I tried the following code. It is close to what you have, except that I find no reason for the check if layer is already initialized since the check is done at layer creation where layer has not yet been added to the map. I also set Extent so I can define SpatialReference, but you can run the sample without it. I am using SampleServer3. I also added UpdateCompleted event to show in your OutputWindow how many features exist in the feature layer for that given extent (since the layers are OnDemand mode). XAML-Code:
<Grid x:Name="LayoutRoot" Background="White">
<esri:Map x:Name="MyMap">
<esri:Map.Extent>
<esri:Envelope XMin="-118.207462406372" YMin="33.5439110882534" XMax="-117.255773795146" YMax="34.8265277847467" >
<esri:Envelope.SpatialReference>
<esri:SpatialReference WKID="4326"/>
</esri:Envelope.SpatialReference>
</esri:Envelope>
</esri:Map.Extent>
</esri:Map>
<Button Content="add layers" VerticalAlignment="Top" HorizontalAlignment="Center" Click="Button_Click"/>
</Grid>
Code-Behind:
private void Button_Click(object sender, RoutedEventArgs e)
{
ArcGISDynamicMapServiceLayer dynamicLayer = new ArcGISDynamicMapServiceLayer()
{
Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/MapServer"
};
dynamicLayer.Initialized += dynamicLayer_Initialized;
dynamicLayer.Initialize();
}
void dynamicLayer_Initialized(object sender, System.EventArgs e)
{
ArcGISDynamicMapServiceLayer layer = sender as ArcGISDynamicMapServiceLayer;
MyMap.Layers.Add(layer);
string featureService =layer.Url.Replace("MapServer", "FeatureServer");
foreach (var l in layer.Layers)
{
FeatureLayer featureLayer = new FeatureLayer()
{
ID = l.Name,
Mode = FeatureLayer.QueryMode.OnDemand,
Url = string.Format("{0}/{1}",featureService, l.ID)
};
featureLayer.UpdateCompleted += featureLayer_UpdateCompleted;
featureLayer.Initialized += featureLayer_Initialized;
featureLayer.Initialize();
}
}
void featureLayer_UpdateCompleted(object sender, System.EventArgs e)
{
FeatureLayer layer = sender as FeatureLayer;
System.Diagnostics.Debug.WriteLine("{0} Graphics Count: {1}", layer.ID, layer.Graphics.Count);
}
void featureLayer_Initialized(object sender, System.EventArgs e)
{
FeatureLayer layer = sender as FeatureLayer;
MyMap.Layers.Add(layer);
}
... View more
02-25-2011
08:33 AM
|
0
|
0
|
1715
|
|
POST
|
Toolbar item is not limited to an image content, you can replace this with button or a button that has image content.
... View more
02-24-2011
10:22 PM
|
0
|
0
|
1598
|
|
POST
|
The SL API equivalent method is FeatureLayer.SaveEdits() http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~SaveEdits.html. As you can see, they don't have the same signature. This is because internally, the API would already know which edits you are trying to save, whether you've added/removed graphics, updated graphics' geometry and/or attributes. SaveEdits() will call an internal method EditTask.ApplyEdits() that accepts the same parameter as Flex counterpart.
... View more
02-24-2011
02:18 PM
|
0
|
0
|
585
|
|
POST
|
Just to clarify, are you able to see the features on your map when you use ArcGISDynamicMapServiceLayer using secured service and supplying the proper credentials? On your server, do you have Anonymous Authentication Disabled and either Basic Authentication or Windows Authentication Enabled? I just wanted to know if the failure is in the authentication or if we missed something in the Legend control.
... View more
02-24-2011
11:27 AM
|
0
|
0
|
2070
|
| 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
|