|
POST
|
Yes, the layer's SpatialReference is set on Initialize() and will be available when Initialized event is raised. Check for layer.IsInitialized property and layer.SpatialReference != null. For Map's SpatialReference, kindly look at this help document: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map~SpatialReference.html
... View more
12-15-2010
01:28 PM
|
0
|
0
|
1875
|
|
POST
|
This is related thread (Post #8) http://forums.arcgis.com/threads/18252-how-to-avoid-the-floating-effect-of-navigation-tool It could be that Map's Minimum and MaximumResolution are not set therefore the ZoomSlider have not set it's Minimum and Maximum values as well.
... View more
12-15-2010
12:08 PM
|
0
|
0
|
951
|
|
POST
|
Thank you for sharing this information with us. I asked the REST API team about this and here's the reply I got: Geometry service project operation via REST does not support datum transformation. In the case when a transformation is not provided to the geometry service project method, only 3 default transformations are used. Please see http://help.arcgis.com/en/sdk/10.0/arcobjects_cpp/componenthelp/index.html#//000w00000205000000 For transformation between WGS1984 to NAD_1927, the default transformation used is: esriSRGeoTransformation_NAD1927_To_WGS1984_4, forward and reverse, WKID = 1173 There are ~30 or so different transformations that can be applied for transformation between WGS1984 and NAD1927 and the results will vary depending upon which one is used. If the user is referencing the expected output based on transformation other than esriSRGeoTransformation_NAD1927_To_WGS1984_4, then the results returned by the project operation will be different. One suggestion I have for this user is to edit/add the feature directly in 102100. Feature service will be able to store the geometry in 32023 and will use the default transformation that is set in the map. If you have further questions about this, please post in their forum. http://forums.arcgis.com/forums/11-ArcGIS-Server-REST-API
... View more
12-15-2010
12:00 PM
|
0
|
0
|
1138
|
|
POST
|
You get the same results when you perform the project from the web browser? Replace this with your own Geometry Service URL: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project Or compare the results from SL app, your Geometry Service and Sample Server 3 Geometry Service. You can get the actual parameters using Fiddler: (Post #14 in this thread) http://forums.arcgis.com/threads/14730-Area-And-Perimeter
... View more
12-15-2010
10:39 AM
|
0
|
0
|
1138
|
|
POST
|
Thank you for reporting this. I was able to replicate the issue. We missed to support "esriSLSDot" in v2.1. We will try to get this fixed in future releases.
... View more
12-15-2010
10:26 AM
|
0
|
0
|
935
|
|
POST
|
Kindly look at the following documentation:http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Secure_services/016600000022000000/
... View more
12-15-2010
08:48 AM
|
0
|
0
|
1953
|
|
POST
|
According to this page: http://forums.esri.com/Thread.asp?c=158&f=2396&t=293222 You do the following: 1. Increase the value for MaxRecordCount tag in the configuration file for the service. The default value is 500. http://webhelp.esri.com/arcgisserver/9.3/dotNet/cfg_file_service.htm 2. You have to restart the ServerObjectManager service from windows services panel for this to take effect.
... View more
12-15-2010
08:32 AM
|
0
|
0
|
979
|
|
POST
|
Can you go through this troubleshooting suggestions? http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx
... View more
12-15-2010
08:28 AM
|
0
|
0
|
938
|
|
POST
|
Hmm that is difficult to check with the code you provided. Did you define XAML namespace for local properly? Does that namespace match the namespace where your converter reside? For example, the following code: xmlns:esriConverters="clr-namespace:ESRI.ArcGIS.Client.ValueConverters;assembly=ESRI.ArcGIS.Client">
<UserControl.Resources>
<esriConverters:DictionaryConverter x:Key="DictConvert" />
</UserControl.Resources>
<Grid>
<Ellipse Fill="{Binding Path=Attributes, Converter={StaticResource DictConvert}, ConverterParameter=Color, Mode=OneWay}"/>
</Grid> namespace ESRI.ArcGIS.Client.ValueConverters
{
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)] public sealed class DictionaryConverter : IValueConverter
{
EditorBrowsable property documentation: http://msdn.microsoft.com/en-us/library/system.componentmodel.editorbrowsablestate(v=VS.95).aspx
... View more
12-15-2010
08:18 AM
|
0
|
0
|
1680
|
|
POST
|
You can also listen to Map.Layers.LayersInitialized event http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.LayerCollection~LayersInitialized_EV.html. Note however, that this event will fire every time a new layer is added to your map. public MainPage()
{
InitializeComponent();
MyMap.Layers.LayersInitialized += Layers_LayersInitialized;
}
bool performedInitialZoom = false;
private void Layers_LayersInitialized(object sender, EventArgs args)
{
if (!performedInitialZoom)
{
MyMap.ZoomTo(someExtent);
performedInitialZoom = true;
}
}
... View more
12-15-2010
08:02 AM
|
0
|
0
|
1875
|
|
POST
|
Can you share us your FeatureService DrawingInfo? If you append "?f=pjson" to your FeatureService URL in your web browser, kindly copy and paste the section for "drawingInfo" when you reply to this thread. "esriSLSDot" as LineStyle should be respected. Also if you can, can you give us a snapshot of this symbol? Does it show different when viewed in ArcGIS.com?
... View more
12-14-2010
01:55 PM
|
0
|
0
|
935
|
|
POST
|
I don't think you will be able to add a UIElement into your XAML through binding. For the sake of discussion, it's like saying you have a TextBlock property in your ViewModel and want it to be added to your MainPage LayoutRoot (Grid container). This sounds possible only in code-behind. this.LayoutRoot.Children.Add(VM.MyTextBlock); How else can this be done in XAML? There is a question of what property do you set? Do you override the DataContext? I don't think this is possible.
<Grid x:Name="LayoutRoot">
<TextBlock ???/>
</Grid>
I am not entirely sure how much SL3 and v1.2 support MVVM. This is still a work in progress for our API. But I do know that in comparison to SL3 and v1.2, SL4 and v2.1 have better MVVM support. With that said, instead of binding the entire UIElement (Map), I think it is better to bind Map Properties. Note however, that not all properties of Map are "bindable" (i.e. Extent). Layers is a DependencyProperty, therefore you can bind this to your ViewModel's property. Other DependencyProperties include: PanDuration, ZoomDuration, ZoomFactor. I think that this is more feasible: <esri:Map Layers="{Binding Map.Layers}" PanDuration="{Binding Map.PanDuration}" ZoomDuration="{Binding Map.ZoomDuration}" ZoomFactor="{Binding Map.ZoomFactor}"/>
... View more
12-14-2010
09:13 AM
|
0
|
0
|
921
|
|
POST
|
Please follow the installation http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Installation/016600000005000000/ and getting started guide http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Getting_Started/016600000004000000/. You may also want to start with Interactive SDK samples http://help.arcgis.com/en/webapi/silverlight/samples/start.htm Full download is found here: http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Sample_Interactive_SDK/01660000000v000000/
... View more
12-14-2010
08:22 AM
|
0
|
0
|
2765
|
|
POST
|
Thank you for your feedback and sample code. I think that when implementing your own Add, you may also want to consider the Attributes for the feature type you are adding. Also when dealing with Polygon geometry, you may need to perform AutoComplete, use Freehand draw, correct the orientation of the points (clockwise), and call Simplify to ensure that the geometry is topologically correct. In your code-snippet, I'm not sure if you want to keep subscribing to the same events (EndSaveEdits and SaveEditsFailed) or create a new DispatcherTimer each time draw is completed.
... View more
12-14-2010
08:18 AM
|
0
|
0
|
788
|
|
POST
|
Hmm.. EditVertices as it is designed right now is only completed when you click the same feature or another feature. It is more interactive. We don't currently have a public method that you can call to complete the edit. I'll share your use case with the rest of the team and take it into advisement.
... View more
12-13-2010
07:51 AM
|
0
|
0
|
1043
|
| 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
|