|
POST
|
If you still wish to turn off logging, HtmlPage.IsEnabled is the property we check before ScriptObject.InvokeSelf() is called. http://msdn.microsoft.com/en-us/library/system.windows.browser.htmlpage.isenabled(v=VS.95).aspx
... View more
11-11-2010
09:08 AM
|
0
|
0
|
2947
|
|
POST
|
I think that is a question for the REST API team http://forums.arcgis.com/forums/11-ArcGIS-Server-REST-API. I'm really not sure why sometimes you get the legend and other times you don't. If you have already attempted to see the actual webrequest on Fiddler when a failure occurs and the same webrequest succeed at times, then it's probably a good idea to share this with them. It would be great if you are able to reproduce this outside the SL app to be able to narrow down the problem. Kindly see post #14 in this thread: http://forums.arcgis.com/threads/14730-Area-And-Perimeter to guide you what to look for in Fiddler, it should be fairly similar.
... View more
11-11-2010
07:02 AM
|
0
|
0
|
1205
|
|
POST
|
I just tried the MapServer link you provided to the Custom REST Map Service Legends: http://orthogonal.esri.com/restlegends/?soapUrl=http%3A%2F%2Fserver.arcgisonline.com%2FArcGIS%2Fservices%2FDemographics%2FUSA_1990-2000_Population_Change%2FMapServer&f=html It seems to work fine. Do you know if maybe the SL app is forming a different web request? You can find out by using Fiddler.
... View more
11-11-2010
06:45 AM
|
0
|
0
|
1205
|
|
POST
|
UniqueValueRenderer has a DefaultSymbol. You can set this Symbol property so that if the graphic Attribute did not match any of the UniqueValueInfo Value, it will get this symbol.
... View more
11-11-2010
06:23 AM
|
0
|
0
|
564
|
|
POST
|
Yes, the 404 error means the file no longer exist on the server. How are you getting the legends? I found this archived forum thread with links to samples that might be useful to you. You can also try the live version to see if for that layer, the legend Url have been updated. http://forums.esri.com/Thread.asp?c=188&f=2226&t=287740 Also, this thread might be related if you are planning to use v2.1: http://forums.arcgis.com/threads/16639-ArcGIS-API-for-Silverlight-WPF-version-2.1-Release-Candidate
... View more
11-11-2010
06:18 AM
|
0
|
0
|
1205
|
|
POST
|
I found this help document but I'm not sure if the information here is sufficient to answer your question: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/An_overview_of_geoprocessing_with_ArcGIS_Server/009300000028000000/ You might get better help in this forum: http://forums.arcgis.com/forums/9-ArcGIS-Server-.NET
... View more
11-11-2010
06:03 AM
|
0
|
0
|
473
|
|
POST
|
Do you call any of the PanTo() or ZoomTo() methods in your code? If so, if the geometry that you pass is either null or its SpatialReference does not match the map's SpatialReference, this exception is expected to be thrown. Can you tell us what version of the API you are using? Can you also share some code and steps so we may replicate the issue on our end? Thanks.
... View more
11-11-2010
05:50 AM
|
0
|
0
|
504
|
|
POST
|
Thank you for sharing with us this information. We were not able to get InvalidOperationException() from using Google Chrome but we were able to replicate that InitializationFailed event is not raised, even when InitializationFailure is not null in Chrome. Like you said the other browsers, did not behave the same. Unfortunately, there's no way to disable logging in the current versions of our API. We will try to fix this in the future release to also handle the case when InvokeSelf() on ScriptObject may throw an exception. It seems like a known issue for Google Chrome as had been said in this blog: http://kodierer.blogspot.com/2009/05/silverlight-logging-extension-method.html Firebug Lite extension can be found here: https://chrome.google.com/extensions/detail/bmagokdooijbeehmkpknfglimnifench "Firebug Lite will be loaded before all other scripts, allowing it to capture all console calls, and all XHR requests for that page"
... View more
11-10-2010
09:23 AM
|
0
|
0
|
2947
|
|
POST
|
I was not able to replicate the problem. I performed QueryLayer from the web browser to find out how many features I should expect given the Where clause you provided. I was able to switch between the two modes and still get 1000 features. I subscribed to Initialized and UpdatedCompleted to make sure that the layer InitializationFailure is null and that Graphics.Count is also 1000. What version of the API are you using? Could you try to run Fiddler before you launch your SL app? Kindly refer to this blog post: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx
... View more
11-10-2010
07:53 AM
|
0
|
0
|
1646
|
|
POST
|
If you need to place the LayerInfo in three different containers, then you need three ObservableCollection<LayerInfo> too, where you add only a portion of the LayerInfos in each collection. And if you need each selection to affect the VisibleLayers, you can do something like.
LayerInfo selected1 = this.SubLayerComboBox1.SelectedItem as LayerInfo;
LayerInfo selected2 = this.SubLayerComboBox1.SelectedItem as LayerInfo;
LayerInfo selected3 = this.SubLayerComboBox1.SelectedItem as LayerInfo;
dynamicLayer.VisibleLayers = new int[] { selected1.ID, selected2.ID, selected3.ID };
... View more
11-10-2010
05:08 AM
|
0
|
0
|
1218
|
|
POST
|
Okay, I'll slow down 😛 It seems like the error message only happens in Design view. I'm pretty sure that if you open the MainPage Design view in VS 2010, it would also show some error. Blend and VS may not always report the same design-time error. I could look into this further but you also mentioned that you did a lot of code change so I may not replicate the same issue. For now, what I did was download FrostedTab from TemplateGallery. In VS 2010 Design view when I reload the designer, I get "Undefined CLR namespace error". In Expression Blend 4 Design view MainPage still loaded (unlike yours where you have a StackTrace) but the results include "Invalid XAML" error. Regardless of these two errors, the project compiled and run fine from VS and Blend.
... View more
11-09-2010
02:31 PM
|
0
|
0
|
2641
|
|
POST
|
Unfortunately we cannot view your attachment. Can you attach an image instead for the screenshot? I believe the installation already takes care of updating Windows registry so Blend can point to the correct file location.
... View more
11-09-2010
01:40 PM
|
0
|
0
|
2641
|
|
POST
|
The best way to know if it works is to try your code 😛 But one thing noticeable here is that you are still calling ExecuteAsync() successively without knowing if the first one has completed or still in process. The next ExecuteAsync() call must be done after the first one is completed (in the ExecuteCompleted eventhandler). Try out your current code and you should see a run-time error. It's best to see the error to understand what's going on 🙂
... View more
11-09-2010
12:24 PM
|
0
|
0
|
1444
|
|
POST
|
Since the FeatureLayer is SelectionOnly, at the application startup no features are displayed on the map, no rows are displayed on the FeatureDataGrid. Once a selection is made, in this sample I use the Editor Select command, features get added to the layer and the rows get populated. I could not replicate the issue with the following XAML-code:
xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
<Grid x:Name="LayoutRoot" Background="White">
<Grid.Resources>
<esri:Editor x:Key="MyEditor" Map="{Binding ElementName=MyMap}" SelectionMode="Rectangle" />
</Grid.Resources>
<esri:Map x:Name="MyMap" Extent="-102.049995692435, 36.995429186312, -94.6031396158311, 40.0025826914111">
<esri:ArcGISTiledMapServiceLayer ID="Tiled" Url="http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
<esri:FeatureLayer ID="Parcel" Mode="SelectionOnly"
OutFields="*"
Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Petroleum/KGS_OilGasFields_Kansas/MapServer/0">
<esri:FeatureLayer.Renderer>
<esri:SimpleRenderer>
<esri:SimpleFillSymbol Fill="Blue" />
</esri:SimpleRenderer>
</esri:FeatureLayer.Renderer>
</esri:FeatureLayer>
</esri:Map>
<StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Center">
<Button Content="Select" DataContext="{StaticResource MyEditor}" Command="{Binding Select}"/>
<esri:FeatureDataGrid x:Name="MyFDG" Map="{Binding ElementName=MyMap}" GraphicsLayer="{Binding ElementName=MyMap, Path=Layers[Parcel]}" Height="200"/>
</StackPanel>
</Grid>
Can you share some code? I'm using a layer from sampleserver1, which is still v9.31.
... View more
11-09-2010
12:15 PM
|
0
|
0
|
1793
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Friday | |
| 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 |
Monday
|