|
POST
|
Thank you for your feedback. I will be sure to share them with our team. Another solution, which is probably more difficult but elegant, would be to create a custom control for your Arrow and TextBlock and override ArrangeOverride and MeasureOverride accordingly. I will respond to the other thread 🙂
... View more
11-30-2010
10:50 AM
|
0
|
0
|
848
|
|
POST
|
You can place a breakpoint in the Failed event handler, if it does go there. Post #14 in this thread might guide you in finding what you need to look for in Fiddler: http://forums.arcgis.com/threads/14730-Area-And-Perimeter
... View more
11-30-2010
10:37 AM
|
0
|
0
|
3391
|
|
POST
|
The Geocode service you are using should be able to accept lat/lon fields to identify a location. In this sample, http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RoutingDirections, notice that Locator calls AddressToLocationAsync. Instead, you need to call LocationToAddressAsync as in this other sample, http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LocationToAddress.
... View more
11-30-2010
10:30 AM
|
0
|
0
|
1123
|
|
POST
|
When you perform Find from your web browser, do you use the same parameters that your application use? Can you verify that these parameters are correct and both app and browser yield to same result? Please refer to post#14 from this thread to guide you on what to look for when running Fiddler with your app http://forums.arcgis.com/threads/14730-Area-And-Perimeter Appending "&f=json" to the Url should not have caused this error. I tried the same here: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/find?searchText=Alabama&contains=true&searchFields=&sr=&layers=1&returnGeometry=true&f=pjson
... View more
11-30-2010
10:19 AM
|
0
|
0
|
2151
|
|
POST
|
Oh. The source code for Toolkit v2.1 will be available as soon as v2.1 Final is made public. It will be found in the same location. I'm sorry you have to wait a little bit. It should be soon though.
... View more
11-30-2010
10:10 AM
|
0
|
0
|
1385
|
|
POST
|
Kindly see this related thread: http://forums.arcgis.com/threads/13749-how-to-Zoom-to-point
... View more
11-30-2010
10:02 AM
|
0
|
0
|
950
|
|
POST
|
Here's another solution. How about you create your own Renderer by implementing IRenderer? When you implement GetSymbol(), you can set the MarkerSymbol's offsets before returning the symbol. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.IRenderer~GetSymbol.html You can create the ControlTemplate based on the graphic.Attributes and maybe get the container that holds the arrow and TextBlock, to know its ActualHeight and ActualWidth. You can use these values to calculate the MarkerSymbol's Offsets. http://msdn.microsoft.com/en-us/library/cc190359(v=VS.95).aspx http://forums.silverlight.net/forums/t/115213.aspx
... View more
11-30-2010
09:55 AM
|
0
|
0
|
848
|
|
POST
|
Subscribe to Failed event and check for exception. Also, you might want to run Fiddler with your application to see more information on which web request failed.
void QueryTask_Failed(object sender, TaskFailedEventArgs e)
{
if (e.Error is ServiceException)
{
StringBuilder sb = new StringBuilder();
foreach(string detail in (e.Error as ServiceException).Details)
sb.Append(string.Format("{0}\n", detail));
MessageBox.Show(string.Format("Error: {0}", sb.ToString()));
}
}
If the layer ID is up to 6, ID=7 is expected to fail, right? Try to see if putting the same parameters from the web browser will result to the same error.
... View more
11-30-2010
08:09 AM
|
0
|
0
|
3391
|
|
POST
|
If you are working with API v1.2, you can download previous releases: http://esrisilverlight.codeplex.com/releases/view/39794
... View more
11-30-2010
07:40 AM
|
0
|
0
|
1385
|
|
POST
|
I think the first thing you need to do is fix the assembly references. Check that the file path indeed points to the proper location. If you are working with API v 1.2, look to see that you've met all these installation requirements: http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/index.html
... View more
11-30-2010
07:36 AM
|
0
|
0
|
1165
|
|
POST
|
You can update the Offsets in code-behind:
MarkerSymbol ms = this.LayoutRoot.Resources["MarkerSymbol"] as MarkerSymbol;
ms.OffsetX = label.Length/2;
ms.OffsetY = label.Length/2;
You can set them in relation to the label's length. Maybe do this on Graphic's AttributeValueChanged event? or maybe use {Binding Attributes[label]} with a Converter that will calculate offset based on this value.
... View more
11-29-2010
02:53 PM
|
0
|
0
|
2014
|
|
POST
|
Did you say you are working on Flex app? If so, you may want to post your question here: http://forums.arcgis.com/forums/18-ArcGIS-API-for-Flex
... View more
11-29-2010
01:56 PM
|
0
|
0
|
2258
|
|
POST
|
This is all you need for installing the API. http://help.arcgis.com/en/webapi/silverlight/help/Installation.htm
... View more
11-29-2010
01:54 PM
|
0
|
0
|
1399
|
|
POST
|
Oh I see, if you do not have a Tiled layer, the MinimumResolution and MaximumResolution of the map is not set. Therefore the Navigation control will not know how to set the ZoomSlider's Minimum and Maximum value. What you can do is set these properties on the map to a value that may be meaningful to you. For example: <esri:Map x:Name="MyMap" MinimumResolution="0.0000107288360595703" MaximumResolution="0.3515625">
... View more
11-29-2010
01:51 PM
|
0
|
0
|
3445
|
|
POST
|
Thank you for reporting this. You must be using WMS service that is lower than v1.3. We'll try to get it fixed in future releases. What you can do is get the source code for Toolkit.DataSources from http://esrisilverlight.codeplex.com/releases/view/39795 In the Wms.cs file, GetUrl method, line# 426
mapURL.AppendFormat("&bbox={0},{1},{2},{3}", extent.XMin, extent.YMin, extent.XMax, extent.YMax);
need to be replaced with: mapURL.AppendFormat(CultureInfo.InvariantCulture,
"&bbox={0},{1},{2},{3}", extent.XMin, extent.YMin, extent.XMax, extent.YMax);
... View more
11-29-2010
01:16 PM
|
0
|
0
|
1385
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 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 |
2 weeks ago
|