|
POST
|
Which version of the API did you install? If you installed v2.x, your Silverlight application must be Silverlight v4. If you installed v3.0 Pre-Release, your Silverlight application must be Silverlight v5. The .NET references are filtered by Silverlight version.
... View more
04-25-2012
08:53 AM
|
0
|
0
|
1038
|
|
POST
|
This is a related thread: http://forums.arcgis.com/threads/13749-how-to-Zoom-to-point
... View more
04-24-2012
11:53 AM
|
0
|
0
|
1908
|
|
POST
|
Thank you for reporting this to us. I was able to reproduce with v2.6. This issue had been fixed. You can try out v3.0 Pre-Release.
... View more
04-24-2012
11:39 AM
|
0
|
0
|
1144
|
|
POST
|
There are also available templates here: http://help.arcgis.com/en/webapi/silverlight/samples/TemplateGalleryWeb/start.htm. You can write your own widget by piecing together one SDK sample at a time. There is Navigation control you can use for panning/zooming. There is EditorWidget control you can use for editing. There is SpatialQuery action. Some are provided for you out-of-the box, you just need to know how to use them and how to put them together in your application. The SDK sample page is a good starting point.
... View more
04-24-2012
11:23 AM
|
0
|
0
|
1091
|
|
POST
|
Did you post your question to ArcGIS Server team? I asked around and I was told in ArcGIS Server 10.1 it was by design that the display expression gets simplified to the first field in that expression and return as displayField as part of the layer resource. Please try to contact them for more information.
... View more
04-23-2012
11:01 AM
|
0
|
0
|
519
|
|
POST
|
This seems related thread: http://forums.arcgis.com/threads/15944-How-to-binding-mainpage-s-map. I've attached a sample that mimics this SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ClosestFacility, only the controls reside in another UserControl. This required use of DependencyProperty Map.
... View more
04-23-2012
10:52 AM
|
0
|
0
|
1255
|
|
POST
|
Editor.Add command will set graphic.Attributes based on type ID so your layer renderer can get a symbol for this graphic. So is Add button working for you now? Are you getting the correct symbol? Can you check that its attributes are properly set? Basically if you look at this service, http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0. Under "Types" section, there is a "Prototype" section where Attributes are pre-defined. These are the values Editor.Add will try to add to your graphic.Attributes. They are also the same attributes, your renderer use (see "Drawing Info").
... View more
04-23-2012
10:44 AM
|
0
|
0
|
877
|
|
POST
|
Here's some blurb about Auto-Reprojection: Auto-reprojection of graphics layers GraphicsLayer and any layer that derives from it, such as GeoRssLayer and KmlLayer, can be reprojected on the fly. If the spatial reference of the Map is geographic World Geodetic System 1984 ([WGS84] WKID: 4326) or Web Mercator (WKID: 102100), reprojection will occur automatically on the client. If a graphics layer or map is in another spatial reference, you can use the ProjectionService property to reference a class that implements IProjectionService, such as the GeometryService task. NoteNote: Graphic feature geometry in the underlying data remains untouched; only the display of graphics is affected. Here's one sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AutoProjectGraphics. Notice that GeoRssLayer in this sample sets its ProjectionService property. ProjectionService="{StaticResource GeomSvc}". You probably need this on your KmlLayer.
... View more
04-23-2012
10:36 AM
|
0
|
0
|
987
|
|
POST
|
ArcGIS API for Silverlight v2.4 has the following minimum requirements: http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Installation/016600000005000000/. What you can do is download the SDK sample: http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Interactive_SDK_samples/01660000000v000000/. System.Runtime.Serialization often comes up when you are defining Symbols, Extent, Geometry in XAML. To fix this, you just need to add "System.Runtime.Serialization" assembly. Also check your project reference, make sure it points to the proper assemblies (see Path). If this path seems incorrect, points to "/users/..", you can remove references to API assemblies from your SL project, delete bin and obj folder from your SL app, and add references to API assemblies again, clean solution and rebuild.
... View more
04-23-2012
10:31 AM
|
0
|
0
|
2266
|
|
POST
|
It's hard to tell where this exception is thrown even with the code snippet you shared. It might be helpful to run fiddler and/or put breakpoints to see the program flow right before this exception is thrown. Generally speaking, if the layer's Url property is set before it gets added to your map and/or before it gets initialized, this error should not be thrown. Be sure also to subscribe to Initialized/InitializationFailed events before layer is added to your map and/or initialization occurs. Check for layer.InitializationFailure (if null). The following blog post might help: http://blogs.esri.com/esri/arcgis/2009/08/24/troubleshooting-blank-layers/
... View more
04-23-2012
09:40 AM
|
0
|
0
|
1658
|
|
POST
|
What kind of widget are we talking about here? There are some out-of-the box widgets provided in our Toolkit. You can check out the SDK samples here: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget, http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureDataGrid, http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LegendSimple. We have a QueryTask and FeatureLayer (that encapsulates a QueryTask), the results can be displayed on map through GraphicsLayer and/or tools like FeatureDataGrid. You can start off with: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#QueryWithoutMap
... View more
04-23-2012
09:31 AM
|
0
|
0
|
1091
|
|
POST
|
Demin is right. Here's an SDK sample that does that: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Project. How are you getting your zoom extent? Do you union the selected lat/lon values? If the resulting extent is a different spatial reference from your map, you can use GeometryService.ProjectAsync() or WebMercator as in this SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphics.
... View more
04-23-2012
09:26 AM
|
0
|
0
|
863
|
|
POST
|
Sure you can use IdentifyTask as seen in this SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify. There is a VB tab for code. You can also download WPF SDK from: http://help.arcgis.com/en/webapi/WPF/samples/start.htm
... View more
04-13-2012
08:59 AM
|
0
|
0
|
558
|
|
POST
|
FeatureLayer inherits from GraphicsLayer. One major difference is that FeatureLayer has a QueryTask built-in, which allows this layer to have a Mode. This is an example of Mode=OnDemand in FeatureLayer: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerOnDemand. If you have Fiddler open, you will notice that query is sent everytime map extent changes. This means features are cached/added on client when they become visible in the current map extent. This concepts page might help: http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Feature_layers/016600000015000000/
... View more
04-13-2012
08:29 AM
|
0
|
0
|
1070
|
|
POST
|
I would encourage you to also look at the SDK concepts page and samples. The Samples include VB version: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm. Some samples also have pure XAML-code so you may notice that VB section is often few lines of code.
... View more
04-13-2012
08:24 AM
|
0
|
0
|
1152
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 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
|