|
POST
|
To change the visibility of an ArcGISDynamicMapServiceLayer sublayer you can use SetLayerVisibility(int layerID, bool visible) For example in your case: m.SetLayerVisibility(0, true); Note that an ArcGISDynamicMapServiceLayer doesn't load any feature at client side. If you want to be able to select, highlight, edit... features at client side you need to use a FeatureLayer instead.
... View more
10-30-2014
08:10 AM
|
2
|
5
|
1706
|
|
POST
|
Thanks for reporting this. That looks like a bug that we'll try to investigate and to fix before the next version. The workaround for now might be to set the 'Where' property of the underlying ServiceFeatureTable. /Dominique
... View more
10-28-2014
02:53 AM
|
0
|
0
|
1328
|
|
POST
|
Statistical analysis can be executed through the geoprocessing Tools (samples of how to execute geoprocessing tools with the SDK for .Net). For displaying the result, it's a matter of renderer which can be created using a GenerateRenderer task (as in the sample you pointed out) or directly by using the .Net API. Then the legend will be automatically based on the renderer properties. Edit: Updated the link to the .Net sample instead of the WPF sample.
... View more
10-28-2014
02:06 AM
|
1
|
3
|
3405
|
|
POST
|
Identifying on WMS services non hosted by ArcGIS server is not supported out of the box by the ArcGIS Silverlight API. If the service is hosted by ArcGIS server you can identify features using the standard MapServer URL.
... View more
10-28-2014
01:47 AM
|
0
|
0
|
552
|
|
POST
|
Hi Alexandr, We have reproduced the issue that happens when the runtime TempPath and AppDataPath contains Unicode characters. As suggested by Mike, setting the ArcGISRuntime.AppDataPath and ArcGISRuntime.TempPath properties to path without Unicode characters is the workaround for now: ArcGISRuntime.AppDataPath = @"C:\MyApp\MyAppData"; ArcGISRuntime.TempPath = @"C:\MyApp\MyAppTemp"; We'll try to get this fixed in the next version. Thanks for reporting this and sorry for the inconveniance. /Dominique
... View more
10-28-2014
01:41 AM
|
1
|
1
|
1357
|
|
POST
|
Out of using your own server, you can use arcgis.com to generate features from the shapefile and then display the generated features as demonstrated by the 'Create Features from Shapefile' sample. For CAD file I am not aware of such service so you may have to write your own CAD parser.
... View more
10-28-2014
01:34 AM
|
0
|
0
|
963
|
|
POST
|
Hi Laurent, It looks like you found out a bug on how an UniqueValueRenderer is rehydrated after a property changed. The workaround may be to get the 'Fields' and 'DefaultSymbol' before changing any renderer property. With your sample: var typedUniqRender = (result.Renderer as UniqueValueRenderer); if (typedUniqRender != null) { // Workaround to BUG: call once the Fields and DefaultSymbol getters before changing the renderer. var fields = typedUniqRender.Fields; var symbol = typedUniqRender.DefaultSymbol; foreach (var info in typedUniqRender.Infos) info.Label = "***" + info.Label; // If we customize the label here, there is bug that don't render the map anymore } Thanks for reporting this issue, we'll try to get it fixed in the next version. /Dominique
... View more
10-27-2014
10:34 AM
|
1
|
5
|
3405
|
|
POST
|
Hi Mostafa, For uploading, you have first to use UploadTask for uploading the data to the GP service and then a GPItemId as input of your GP Tool. Though this is only supported from the version 10.1 of ArcGIS Server. /Dominique
... View more
10-23-2014
03:41 AM
|
0
|
1
|
1403
|
|
POST
|
Hi Muthu, You are right, the crossdomain file exists and the clientaccesspolicy doesn't. I said the opposite sorry about that. The issue seems to be that the crossdomain file doesn't allow any request, so a Silverlight app can't access to the service (should be the same result for a FLEX app, isn't it?). Out of asking Google to change that :-), the workaround is to use a proxy and send the wms request through the proxy (that needs you set up a proxy and set the ProxyUrl of the WMS layer). /Dominique
... View more
10-23-2014
03:05 AM
|
0
|
4
|
934
|
|
POST
|
The sample is supposed to support Silverlight 3.2 since all live versions are using it. I you can share a repro case, I'll look at it. /Dominique
... View more
10-23-2014
02:04 AM
|
0
|
0
|
1215
|
|
POST
|
Why Silverlight seeking clientaccesspolicy.xml ? where as Flex don't?
ClienAccessPolicy is a Silverlight thing so it's normal that FLEX doesn't try accessing it. Silverlight supports 2 different mechanisms for services to opt-in to cross-domain access: either using ClientAccessPolicy.xml or CrossDomain.xml (More Info)
Seems google mapsengine does not have clientaccesspolicy.xml
Google maps engine seems to have a ClientAccessPolicy file, So a Silverlight app should be able to get it. What is the url of the request to clientaccesspolicy.xml that fails? I you can share the URL of your public Google mapsengine WMS service, I will give a try. /Dominique
... View more
10-23-2014
02:01 AM
|
0
|
6
|
934
|
|
POST
|
I just tested with a button that zoom and center to Paris with this line of code: private void CenterAndZoomToParis(object sender, RoutedEventArgs e) { CenterAndZoom(MyMap, new MapPoint(260000, 6250000), 20); } Whatever the initial extent, by clicking on this button the map pans to the Paris center and zooms to the specified resolution at the same time. Isn't it what you are looking for? Code of CenterAndZoom in case we are not using the same one: private void CenterAndZoom(ESRI.ArcGIS.Client.Map map, ESRI.ArcGIS.Client.Geometry.MapPoint mapPoint, double resolution) { double ratio = 1.0; if (map.Resolution != 0.0) ratio = resolution / map.Resolution; if (ratio == 1.0) map.PanTo(mapPoint); else { ESRI.ArcGIS.Client.Geometry.MapPoint mapCenter = map.Extent.GetCenter(); double X = (mapPoint.X - ratio * mapCenter.X) / (1 - ratio); double Y = (mapPoint.Y - ratio * mapCenter.Y) / (1 - ratio); map.ZoomToResolution(resolution, new ESRI.ArcGIS.Client.Geometry.MapPoint(X, Y)); } }
... View more
10-21-2014
11:10 AM
|
0
|
1
|
2353
|
|
POST
|
If 'resolution' argument of CenterAndZooom is not the current map resolution, ZoomToResolution should not call 'PanTo' internally. It should zoom to the new expected resolution.
... View more
10-21-2014
09:36 AM
|
0
|
4
|
2353
|
|
POST
|
The goal of the workaround is to execute only one asynchronous command. The provided method centers the map to a specified point with a specified resolution in one command.
... View more
10-21-2014
09:26 AM
|
0
|
6
|
2353
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-14-2025 09:24 AM | |
| 1 | 06-13-2013 09:22 AM | |
| 1 | 04-29-2022 02:21 AM | |
| 1 | 04-29-2022 02:28 AM | |
| 1 | 09-07-2021 03:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|