|
POST
|
I'm not sure I understood correctly but it sounds like you're doing something similar to this SDK sample ArcGIS API for Silverlight - Interactive Samples | ArcGIS for Developers You can use ArcGISDynamicMapServiceLayer to render all features (server-side rendering). With FeatureLayer in SelectionOnly mode, you can use Editor to select a region where you see features. These features get added to your FeatureLayer and they become available for editing. Another way is to use IdentifyTask on ArcGISDynamicMapServiceLayer to get the feature you're interested in editing and then use FeatureLayer.ObjectIDs filter. You might need to call FeatureLayer.Update().
... View more
12-01-2014
05:15 PM
|
0
|
0
|
761
|
|
POST
|
Hi. Could you share us the stack trace? Does this happen if it were the only FeatureLayer on your map? Thanks.
... View more
12-01-2014
11:43 AM
|
0
|
1
|
1827
|
|
POST
|
Hi Anatolii, The equivalent code-behind to your XAML is this: Since you also asked about FeatureLayer and MapTips (in another post), the FeatureLayer in following XAML-code ArcGIS Runtime SDK for WPF is equivalent to the following code-behind. Notice that code-behind tends to be more lengthy and less intuitive as XAML, this is why our SDK samples to be as short and readable as possible is mostly in XAML whenever possible.
... View more
11-26-2014
02:28 PM
|
0
|
0
|
618
|
|
POST
|
Hi Anatolii, This SDK sample might interest you: ArcGIS API for Silverlight - Interactive Samples | ArcGIS for Developers There is no need to subscribe to MouseEnter to get to the feature whose attributes will be displayed. Notice this sample has no code-behind but let me highlight the following code. <esri:FeatureLayer.MapTip>
<Border CornerRadius="10" BorderBrush="#FF222957" BorderThickness="3" Margin="0,0,15,15">
<Border.Background>
<LinearGradientBrush EndPoint="1.038,1.136" StartPoint="0.015,0.188">
<GradientStop Color="#FFD1DFF2"/>
<GradientStop Color="#FF0088FF" Offset="0.946"/>
</LinearGradientBrush>
</Border.Background>
<Border.Effect>
<DropShadowEffect ShadowDepth="10" BlurRadius="14" Direction="300" />
</Border.Effect>
<StackPanel Margin="7">
<TextBlock Text="{Binding [CITY_NAME]}" FontWeight="Bold" Foreground="Black" />
<StackPanel Orientation="Horizontal">
<TextBlock Text="Population: " Foreground="Black" />
<TextBlock Text="{Binding [POP1990]}" Foreground="Black" />
</StackPanel>
</StackPanel>
</Border>
</esri:FeatureLayer.MapTip>
</esri:FeatureLayer> MapTip can be constructed with any UIElement, its content can also be bound to an attribute. These bindings will resolve itself when your mouse enters a feature. {Binding [CITY_NAME]} assumes that CITY_NAME is a requested OutField.
... View more
11-26-2014
01:33 PM
|
2
|
1
|
1492
|
|
POST
|
Hi. As you have observed there is no Geometry filter on ArcGISDynamicMapServiceLayer, unlike FeatureLayer which can be filtered by current map extent if you have Mode=OnDemand. I know it's not equivalent but perhaps you can set MaximumResolution so the layer is not visible beyond this resolution. You can zoom to the desired geometry and get Map.Resolution then when you create the layer set its MaximumResolution to that value. <esri:Map x:Name="MyMap"
WrapAround="True">
<esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"
Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"
/>
<esri:ArcGISDynamicMapServiceLayer ID="DynamicLayer"
Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/RecentEarthquakesRendered/MapServer"
MaximumResolution="13014.99815945433">
<esri:ArcGISDynamicMapServiceLayer.LayerDefinitions>
<esri:LayerDefinition Definition=""
</esri:ArcGISDynamicMapServiceLayer.LayerDefinitions>
</esri:ArcGISDynamicMapServiceLayer>
</esri:Map> Or maybe subscribe to ExtentChanged and make the layer Visible=False. LayerDefinition is meant to filter by attribute. ArcGIS REST API - Services and Data Types
... View more
11-26-2014
01:21 PM
|
3
|
1
|
2710
|
|
POST
|
This seems to be a question for ArcGIS Server Team (FeatureServices). Upon forwarding your question to them, these were their follow-up questions. I assume that the data is versioned. If multiple people are editing the same data at the same time then this error can happen. The code should re-attempt several times before getting the error. For this one user, can they repro this issue easily? If so, can you send is the logs? Have they versioned the data between 10.0 and 10.1? Or have they increased the load on the server between 10.0 and 10.1? Thanks. Jennifer
... View more
11-26-2014
10:57 AM
|
0
|
0
|
3141
|
|
POST
|
Hi Margo, PrintTask already does this for you if you had chosen a Format other than MapOnly, if LayoutOptions.LegendOptions was provided and if the layers for printing have their ID property set. You can use Linq query to iterate through ArcGISSDynamicMapSerivceLayer .VisibleLayers. Since it is different type for ArcGISSDynamicMapSerivceLayer (int) and WmsLayer (string), we opted to use object. if (l.ShowLegend)
{
var legendLayer = new LegendLayer() { LayerId = l.ID };
if (l is ArcGISDynamicMapServiceLayer)
{
if ((l as ArcGISDynamicMapServiceLayer).VisibleLayers != null)
{
legendLayer.SubLayerIds = from s in (l as ArcGISDynamicMapServiceLayer).VisibleLayers
select s as object;
}
else if ((l as ArcGISDynamicMapServiceLayer).DynamicLayerInfos != null)
{
legendLayer.SubLayerIds = from s in (l as ArcGISDynamicMapServiceLayer).DynamicLayerInfos
select s.ID as object;
}
else if ((l as ArcGISDynamicMapServiceLayer).Layers != null)
{
legendLayer.SubLayerIds = from s in (l as ArcGISDynamicMapServiceLayer).Layers
select s.ID as object;
}
}
else if (l is WmsLayer)
{
if ((l as WmsLayer).Layers != null)
{
legendLayer.SubLayerIds = from s in (l as WmsLayer).Layers
select s as object;
}
else if ((l as WmsLayer).LayerList != null)
{
legendLayer.SubLayerIds = from s in (l as WmsLayer).LayerList
select s.Name as object;
}
}
legendLayers.Add(legendLayer);
}
... View more
11-26-2014
10:09 AM
|
0
|
0
|
789
|
|
POST
|
Hi Chris, We have a different forum for ArcGIS Viewer for Silverlight ArcGIS Viewer for Silverlight and we also have source code available in GitHub if you're feeling adventurous to trying it out Esri/arcgis-viewer-silverlight · GitHub. It might be best to post future questions that relate to the viewer there in case other people have encountered the same issue. The GitHub repo also allows you to track issues as they get resolved. To troubleshoot, you can run Fiddler when you execute print. You will see something similar to this: Under Inspectors > WebForms, You can see in the bottom TextView if there were any additional errors from the server. You can also copy the value for Web_Map_as_JSON parameter and view in a JSON Viewer Online JSON Viewer. You can check the layers it's trying to print. Perhaps one of them do not meet the spec: ArcGIS REST API - Services and Data Types. Symbols used are probably not serializable. ArcGIS REST API - Services and Data Types This is quite common issue in printing and we usually try to downgrade the symbol to SimpleMarker/Line/FillSymbol whenever possible. If you need additional help, you can share the JSON with us or tell us how to repro the issue. Thanks. Jennifer
... View more
11-26-2014
09:51 AM
|
0
|
0
|
690
|
|
POST
|
Hi Sadanand, What error message do you get from QueryTask? What SpatialReference is the service in and what is the SpatialReference of your map? Setting Query.OutSpatialReference should return features in that SpatialReference. Does the QueryResult.Features come back with the expected SpatialReference? Are you using GraphicsLayer or FeatureLayer to display these features? Sorry I have more questions than answers. You can also try running Fiddler to see if there are any error messages from the server and if that error is being captured in the TaskFailedEventArgs when you subscribe to QueryTask.Failed event. .
... View more
11-26-2014
09:33 AM
|
0
|
15
|
3233
|
|
POST
|
Hi Julie, There is a different API and programming language for Android Guide—ArcGIS Runtime SDK for Android | ArcGIS for Developers (Java) and iOS Guide—ArcGIS Runtime SDK for iOS | ArcGIS for Developers (Objective-C). You can also post a question to their respective forums : Android - ArcGIS Runtime SDK for Android and iOS ArcGIS Runtime SDK for iOS There is no out-of-the-box support for VB.NET in these API's. I know some developers have tried Xamarin Portable Visual Basic.NET | Xamarin but this is currently not supported http://blogs.esri.com/esri/arcgis/2014/09/03/arcgis-runtime-and-xamarin/. Jennifer
... View more
11-26-2014
09:24 AM
|
1
|
0
|
567
|
|
POST
|
You can refer to the SDK sample for some guidance: ArcGIS API for Silverlight - Interactive Samples | ArcGIS for Developers I believe the reason why you are not seeing content in InfoWindow is either binding fails or graphic attributes do not contain the same key. Key elements in the SDK sample are: The DataTemplate used for InfoWindow.ContentTemplate uses square brackets [] with attribute key. <TextBlock Text="{Binding [STATE_NAME]}" Foreground="Black" FontSize="12" /> Another thing, you have to note is that InfoWindow needs to bind to a map. <esri:InfoWindow x:Name="MyInfoWindow" Map="{Binding ElementName=MyMap}" ContentTemplate="{StaticResource MyFeatureLayerInfoWindowTemplate}"/> To resolve this binding, InfoWindow.Content is set to graphic attributes. MyInfoWindow.Content = g.Attributes; The graphic contains the same key for attributes because the FeatureLayer it belongs requests for the same OutFields <esri:FeatureLayer ID="MyFeatureLayer" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5" OutFields="STATE_NAME,POP2007" /> I'm not exactly sure how dmv object is used here but it also sets its DataContext with one of its properties as the HtmlInfoWindow. I suspect that somehow it's overriding the source for binding. You can check this during debug, before HtmlInfoWindow opens, check it's DataContext and Content. Also, check OutputWindow, it usually show warnings if binding fails. The method BindingMap is also unclear to me, but one thing to check is that InfoWindow.Map property is also properly set.
... View more
11-06-2014
10:30 AM
|
1
|
2
|
1845
|
|
POST
|
Hi Anand, When working with the Editor, your FeatureLayer or GraphicsLayer must have its ID property set. At minimum, you must also set Editor.Map and Editor.GeometryServiceUrl properties. There is also an Editor.LayerIDs property but normally you would only set this if you want Editor to work with the specified layer ID's. If all editable layers in your map need to use the Editor, you don't need to specify LayerIDs.
... View more
11-03-2014
11:54 AM
|
0
|
0
|
993
|
|
POST
|
Hi Anand, There are some editing samples in the SDK: ArcGIS API for Silverlight - Interactive Samples | ArcGIS for Developers Editor should help with selection on FeatureLayer. You can either display feature attributes using MapTip, InfoWindow, FeatureDataForm, or FeatureDataGrid. Depending on which control you choose, there should be some event that indicates when it's completed. For example, Editor has EditorCompleted event, you will be able to know which features were selected. The layer itself provides a property FeatureLayer.SelectedGraphics, you can then perform your edits on these features.
... View more
11-03-2014
10:58 AM
|
0
|
0
|
746
|
|
POST
|
You can use service metadata to get the correct datatype for each attribute. FeatureLayer.LayerInfo.Fields should have that information for you. ArcGIS API for Silverlight API Reference| ArcGIS for Developers var graphic = new Graphic() { Geometry = someValidGeometry }; foreach(var f in layer.LayerInfo.Fields) if((f.OutFields.Contains("*") || f.OutFields.Contains(f.Name)) && f.Editable) f.Attributes[f.Name]= someValidValue; // check f.Type, f.Nullable, f.Length But if you want to suppress validation, you can set FeatureLayer.ValidateEdits=false. %%ItemTitle%%
... View more
11-03-2014
10:47 AM
|
1
|
1
|
2280
|
|
POST
|
Hi Petteri, Are you working with ServiceFeatureTable or ArcGISFeatureTable? Currently, there is no export web map spec for this but we can probably accommodate in the future using other properties (objectIds or as Dominique mentioned, where clause). Another workaround is to set the invisible/hidden feature symbol to null and update symbol again once its visibility is changed. Thanks. Jennifer
... View more
10-29-2014
12:46 PM
|
0
|
1
|
1500
|
| 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
|