|
POST
|
It doesn't seem that your underlying service is a WMS service. Looks like it's a tiled layer with tiles exposed as png image e.g.: http://185.8.172.26/statics/Map/13/5255/3221.png To display it through the ArcGIS Runtime SDK for WPF you can use the WebTiledLayer provided by the toolkit. Though if you are creating a new application, I would recommend you to use the new ArcGIS .Net SDK, a WebTiledlayer is also provided by this SDK (sample)
... View more
11-26-2015
01:56 AM
|
0
|
0
|
1114
|
|
POST
|
Strange. The behavior is as if the server was not registered to use the OAuthAuthorizationCode workflow. Could you post a simple repro case. I'll test my side. Thanks.
... View more
06-04-2015
01:07 AM
|
0
|
2
|
2798
|
|
POST
|
Actually it's likely because you didn't set the RedirectUri (sorry I should have noticed that earlier) Try OAuthClientInfo = new OAuthClientInfo() { ClientId = "xxxxxx", RedirectUri = "urn:ietf:wg:oauth:2.0:oob" }, Note: ClientSecret is optional
... View more
06-04-2015
12:30 AM
|
0
|
4
|
2798
|
|
POST
|
var cred = await IdentityManager.Current.GetCredentialAsync(credRequest, true); This should work. Does the OAuth authorization page show up? var cred = await IdentityManager.Current.GenerateCredentialAsync(portalServerUrl, "user", "pass"); AutorizationCode OAuth workflow doesn't support setting the user and password by the API. Password and access authorization must be explicitly validated by the user. Though you can use GenerateCredentialAsync without specifying the user/password. var cred = await IdentityManager.Current.GenerateCredentialAsync(portalServerUrl); In this case, you should see the authorization page.
... View more
06-04-2015
12:08 AM
|
0
|
6
|
2798
|
|
POST
|
You can use the SelectedItems property which returns the list of selected items.
... View more
05-13-2015
06:36 AM
|
0
|
0
|
901
|
|
POST
|
The legend completely collapses and then the tree repopulates. OK I see. The problem is that by changing dynamically the sublayers it's very likely that the items in the legend trees are no more the same (may have new sublayers, some may disappear, ...), so it's difficult to keep the sublayers legend state (I guess this might be enhanced in legend control though). Do you happen to have code that determines if a visible childayer is actually not visible because it's parent isn't? I imagine it would need to be recursive since a grouplayer can contain grouplayers. Or am I overthinking it? Yes you need to go through the sublayer hierarchy (one weird trick without any guarantee might be to toggle twice a sublayer visibility (using ArcGISDynamicMapServiceLayer.SetLayerVisibility) then VisibleLayers should be populated with the list of visible sublayer leaves.)
... View more
04-24-2015
06:56 AM
|
0
|
0
|
763
|
|
POST
|
If you don't want to see the sublayers that are not viisble by default, you should not add them in LayerDrawingOptions. LayerDrawingOptions is used to override what is defined at server side and allows getting viisble sublayers that are not visible by default. Concerning the legend, it's normal that the legend is refreshed. What is 'bad' in your result? (do you mean that the legend doesn't look like the symbols displayed in the map?) It is also odd that the transparency is "0" when I've set it to 1 in the code at the top. REST API uses 'transparency' while it's exposed as 'opacity' in the API --> reversed
... View more
04-24-2015
06:00 AM
|
0
|
2
|
763
|
|
POST
|
Neither ArcGISDynamicMapServiceLayer nor ArcGISTiledMapServiceLayer supports globe server. So in both cases the layer will fail to initialize. If you want to check if a service supports dynamic or tiled, you can create an ArcGISTiledMapServiceLayer. If the initialization is OK, it means that the service is cached with the right SR so using an ArcGISTiledMapServiceLayer is the best choice for performances. If the initialization fails, we can fallback to create an ArcGISDynamicMapServiceLayer. If the initialization fails, likely the service is not supprted (e.g. globe server) else you can use the ArcGISDynamicMapServiceLayer.
... View more
04-15-2015
02:27 AM
|
0
|
0
|
449
|
|
POST
|
This thread Defining Results Datagrid In Code behind should help.
... View more
04-07-2015
02:11 AM
|
0
|
0
|
1264
|
|
POST
|
The KML viewer I wrote some time ago is doing that. By right clicking on the legend items, you get a menu allowing to rename, delete, set min/max scale, zoom to full extent..... You can also create new group layers and reorganize your layers by drag and drop. The source code is provided in ArcGIS On Line.
... View more
04-01-2015
02:20 AM
|
2
|
1
|
982
|
|
POST
|
Could you share a code snippet allowing to reproduce the legend issue? Thanks
... View more
03-19-2015
01:15 AM
|
0
|
0
|
1604
|
|
POST
|
This is a google maps engine WMS. My best suggestion --> Use ArcGIS Server 🙂 Else you can try to set the full extent of the WmsLayer (by using the SetFullExtent method) with the envelope of the state covered. This should prevent from sending image requests to the server when the state is not in the view (not tested though)
... View more
03-18-2015
10:12 AM
|
0
|
1
|
1369
|
|
POST
|
i cant update my codes for 3.2 What do you mean? Did you run into issues when you compile after changing the ArcGIS SL version referenced? Note that, for testing, you can install side by side multiple ArcGIS API for Silverlight versions. Make sure your project references the version you want to test.
... View more
03-18-2015
09:41 AM
|
0
|
1
|
680
|
|
POST
|
Visibility of WMS layers should be depending on the list of Layers you set. From the moment you set Layers to "layer1, layer2", these sublayers should be visible (and all ascendants and descendants as well if you are working with a hierarchy of sublayers). You should be able to observe that by setting up a legend control that displays the sub layers visibility such as in this sample. In synthesis: - to change programmatically the layer visibilities --> set the 'Layers' property - to change interactively these visibilities --> use the legend control
... View more
03-18-2015
09:21 AM
|
0
|
3
|
1369
|
| 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
|