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
|
1453
|
POST
|
You can use the SelectedItems property which returns the list of selected items.
... View more
05-13-2015
06:36 AM
|
0
|
0
|
507
|
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
|
412
|
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
|
412
|
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
|
196
|
POST
|
This thread Defining Results Datagrid In Code behind should help.
... View more
04-07-2015
02:11 AM
|
0
|
0
|
599
|
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
|
492
|
POST
|
Could you share a code snippet allowing to reproduce the legend issue? Thanks
... View more
03-19-2015
01:15 AM
|
0
|
0
|
735
|
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
|
692
|
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
|
294
|
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
|
692
|
POST
|
The 'Layers' property is of type string[]. You can set it in XAML though a comma separated layer list: <esri:WmsLayer Layers="layer1,layer2" ..... or in C# by code like: wmsLayer.Layers = new[] { "layer1", "layer2"}; If you need to know dynamically the list of layers supported by the service you can use the LayerList property
... View more
03-18-2015
08:09 AM
|
0
|
5
|
692
|
POST
|
FeatureLayer doesn't support 'Identify'. As the features are loaded at client side, you don't need to request the server to get info about the features. You can use a MapTip instead. This will work locally.
... View more
03-18-2015
04:17 AM
|
1
|
1
|
350
|
POST
|
Could you share a screenshot showing the issue? This might help to figure out the issue.
... View more
03-18-2015
04:14 AM
|
0
|
0
|
262
|
POST
|
No, you can't mix 2 versions of a Library in one application. Why not just migrate to 3.2 SL API?
... View more
03-18-2015
03:04 AM
|
0
|
3
|
294
|
Title | Kudos | Posted |
---|---|---|
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 | |
1 | 08-23-2021 03:47 AM |
Online Status |
Offline
|
Date Last Visited |
07-28-2022
12:26 PM
|