|
POST
|
Is pointToZoom already a MapPoint? If you wish to ZoomToResolution and also re-center the map, you can use the overload that accepts MapPoint http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map~ZoomToResolution(Double,MapPoint).html Post #6 in this thread http://forums.arcgis.com/threads/13749-how-to-Zoom-to-point talks about creating an Envelope around your MapPoint.
... View more
01-25-2011
09:52 PM
|
0
|
0
|
2510
|
|
POST
|
This Text="{Binding BUFFER_DISTANCE}" will work if you add graphic Attribute with Key 'BUFFER_DISTANCE.' Yes, this need to be added in code-behind. You can iterate through the graphics in your GraphicsLayer and calculate the Eucledian distance between buffer point and graphic.Geometry.Extent.GetCenter() and store into the graphic Attribute.
For Each g As var In MyGraphicsLayer.Graphics
Dim c As MapPoint = g.Geometry.Extent.GetCenter()
g.Attribute("BUFFER_DISTANCE") = GetDistance(bufferPoint, c)
Next
There is no Sort property on TextBox. If you wish to sort the ListBox contents against this Attribute, you can sort using Linq before setting ItemSource or use CollectionViewSource.
... View more
01-25-2011
09:30 PM
|
0
|
0
|
1711
|
|
POST
|
I think you were looking for this thread? http://forums.arcgis.com/threads/2629-how-to-show-full-extent-of-map-really
... View more
01-25-2011
09:14 PM
|
0
|
0
|
570
|
|
POST
|
You can create an Envelope geometry that Unions the two selected graphic's extent http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Envelope_methods.html.
... View more
01-25-2011
06:32 AM
|
0
|
0
|
919
|
|
POST
|
In that sample, the symbols with control template are part of Resources. They define VisualStates for Selected and Unselected states. If the Graphic.Symbol uses a symbol such as the ones in that sample then at run-time, all that you have to do is update the Graphic.Selected property. I think this is the cleanest approach, you don't need XamlLoader. You can also define a Renderer that use one of these symbols and apply that to your GraphicsLayer so you would not need to set each Graphic's Symbol as in that example.
<!-- place this under resources -->
<esri:SimpleRenderer x:Key="MySimpleRenderer" Symbols ="{StaticResource SelectMarkerSymbol}"/>
<!-- place this under Map.layers-->
<esri:GraphicsLayer ID="MyGraphicsLayer" Renderer="{StaticResource MySimpleRenderer}"/>
If you need to access these resources in code, you can do this Symbol symbol = LayoutRoot.Resources["SelectMarkerSymbol"] as Symbol;
Renderer renderer = LayoutRoot.Resources["MySimpleRenderer"] as Renderer;
... View more
01-25-2011
06:17 AM
|
0
|
0
|
797
|
|
POST
|
No, FeatureDataForm determines the control it needs to use based on the layer's field type http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Field_members.html. ComboBox is only used for CodedValueDomain.
... View more
01-25-2011
06:01 AM
|
0
|
0
|
3672
|
|
POST
|
This just means you need to add reference to a .NET assembly. This is related thread http://forums.arcgis.com/threads/2300-System.Runtime.Serialization-Version
... View more
01-25-2011
05:51 AM
|
0
|
0
|
2129
|
|
POST
|
I think the SDK sample is correct. Are you using VS 2010 with SL API v2.1? If so, the following is supported
xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
Any public XAML-able properties that belong to esri namespace, except for the Primitives can be accessed through namespace as long as you have reference to their assemblies. This means you still need to add reference to ESRI.ArcGIS.Client.Behavior.dll in your project in order to do the following: <esri:MaintainExtentBehavior .../> Now that you mentioned the error message, I think the issue is resolving this namespace and adding reference to the correct version in your project. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" An older may have been installed and it picks up the older version, you can try to add hint path as described here http://forums.silverlight.net/forums/p/194833/453085.aspx
... View more
01-25-2011
05:44 AM
|
0
|
0
|
1980
|
|
POST
|
Did you update the Overview Map's Map property to switch between two maps? When this property changes, the old map is unsubscribed from ExtentChanged and the new map is subscribed to ExtentChanged, so succeeding ExtentChanged events in the new map should be captured by the OverviewMap. As for the initial switch, the new map's Extent did not actually change so I think your fix is appropriate. I'll check to see if this is something we should account for when Map property changes.
... View more
01-25-2011
05:29 AM
|
0
|
0
|
979
|
|
POST
|
What error message do you get? ArcGISTiledMapServiceLayer URL property can be updated programmatically as shown in this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SwitchMap. However, note that these 3 map service share the same SpatialReference.
... View more
01-23-2011
08:29 PM
|
0
|
0
|
821
|
|
POST
|
What version of the API for SL/WPF are you using? I don't know if you are experiencing the same as what has been reported in this post http://forums.arcgis.com/threads/10033-Overview-map-does-not-show-contents-until-after-view-extent-changed. This bug was fixed in v2.1 and the SDK sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#OverviewMap, no longer produce this.
... View more
01-23-2011
08:12 PM
|
0
|
0
|
979
|
|
POST
|
There are some performance tip here http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//00930000006r000000.htm. However, I think your question will be best answered by ArcGIS Server Team. Please post in their forum as well - http://forums.arcgis.com/forums/9-ArcGIS-Server-.NET, http://forums.arcgis.com/forums/11-ArcGIS-Server-REST-API
... View more
01-23-2011
08:02 PM
|
0
|
0
|
510
|
|
POST
|
While this sample does not solve your problem, it might serve as a guide http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#QueryRelatedRecords. Notice in this sample that there are two Async operations ExecuteAsync() and ExecuteRelationshipQueryAsync(). They are called from the same QueryTask but their parameters and Completed event handler are different. Subscription to events are also done once, not every time completed event fires. Unlike the sample above, your Async calls are related in that, you need to perform a Spatial Query within the Attribute Query completed event. Your code is somewhat correct except for few pointers I mentioned above. Also to get the geometry for your Spatial Query, you might have to get the first geometry this way:
For Each graphic As Graphic In args.FeatureSet.Features
Dim querySpatial As New ESRI.ArcGIS.Client.Tasks.Query()
querySpatial.OutFields.Add("*")
querySpatial.ReturnGeometry = True
querySpatial.Geometry = graphic.Geometry
querySpatial.OutSpatialReference = MyMap.SpatialReference
queryTaskSpatial.ExecuteAsync(querySpatial)
Exit For
Next
... View more
01-21-2011
07:54 PM
|
0
|
0
|
1612
|
|
POST
|
You can try to troubleshoot the layers that do not display by reading this blogpost: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx
... View more
01-21-2011
07:25 PM
|
0
|
0
|
502
|
|
POST
|
When Draw is enabled, map navigation is disabled - you cannot pan or zoom - this is by design since mouse events now are used for drawing not for navigating the map. You can see that behavior in this sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics I cannot replicate the issue by using the sample above and adding a button to disable Draw, ExtentChanged is not fired even when SnapToLevels is True. The difference is this sample works with only one Draw object. I wonder if maybe the issue is with having multiple Draw objects. Can you share some code? Do you mean each button is a different Draw object?
... View more
01-21-2011
07:14 PM
|
0
|
0
|
1985
|
| 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 |
a month ago
|