|
POST
|
Hi Have the limitations for LayerCreationParams been fixed for 2.5 or greater? I really need to change visibility for layers and set definitions too. See this link if you are unsure what I'm talking about (bit where it mentions KNOWN LIMIT): https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Map-Authoring#layer-files-and-layer-packages Kind regards.
... View more
04-21-2020
09:40 AM
|
0
|
9
|
2602
|
|
POST
|
Not in the slightest - wasn't aware of that at all - but I will have a dig around on what you describe. Thanks Kirk.
... View more
04-17-2020
01:54 AM
|
0
|
0
|
3022
|
|
POST
|
Hi The link https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic26527.html doesn't seem to work - I get the following in the browser:
... View more
04-17-2020
01:52 AM
|
0
|
2
|
3022
|
|
POST
|
I know you can use this method for creating a group layer: LayerFactory.Instance.CreateGroupLayer(map, 0, "mygrouplayer"); This seems to instantly create a group layer in the map, but, is there a way to create a group layer without it being instantly created and then add it in later?, i.e. create it in memory first.
... View more
04-16-2020
10:12 AM
|
0
|
6
|
3104
|
|
POST
|
Hi Charlie, Thanks for getting back to me. Good to know that this will happen in a future version, I will try and figure out some work-around for now. Cheers Simon.
... View more
03-30-2020
02:51 AM
|
0
|
2
|
2110
|
|
POST
|
Hi, Just wondering if you have had any further thoughts in response to my last post (below)?
... View more
03-26-2020
12:51 PM
|
0
|
0
|
2110
|
|
POST
|
OK - this works in part and that's useful to know . But I still need to know things about the user when they sign in or sign out, and this gives me no chance to do that as far as I can see. The context is - I want the control to change state if the user is a member of group in Portal or not, also it needs to disable/enable if signed in or out (which is where your fix works partly). Below is by custom control with an embedded button and image that toggles between two images: Here are the use cases: User A not signed in to Portal and is not a member of foo group. "Request Access" (to foo group) button is disabled. This is where your answer works as the whole control is deactivated, and that's good. User A signs in to Portal and is not a member of foo group, the control enables (again your answer solves this scenario) the user can now press "Request Access" button and go from there: User A signs out, user B signs in and already has access to foo group. This is where it breaks down. The control should change but it doesn't, as no event is raised when the user signs in. The control should change to this: but it doesn't it, just re-enables the the control without changing the icon: Hopefully this makes some sense - and how I need to intercept the signing in and out process/event.
... View more
03-24-2020
04:02 AM
|
0
|
4
|
2110
|
|
POST
|
I understand that - but I need to dynamically enable or disable my toolbar based on a user signing out, i.e. the exact moment the user signs off - can that be done?
... View more
03-23-2020
12:49 PM
|
0
|
2
|
2110
|
|
POST
|
Hi, It doesn't look like there is an event to listen out for users signing out of their active portal. Is there something I'm missing or is there another way to do this? Or do I have to keep checking if the user is signed in before my code does anything that requires the user to be actually signed in. I only ask as I was going to disable my addin toolbar if the user had signed out. Cheers.
... View more
03-23-2020
02:38 AM
|
0
|
9
|
2253
|
|
POST
|
I want to put an image 16/32 pixel size on a custom control and change that image during runtime depending on what the user is doing. For example, if the user is valid I want the an image on the control to show they are valid - say like a green person image - equally I want that image to change to a red person if they are not valid. The reasons for validity are not important - changing the image is. I can see how that is done partly with a standard button control - but it's not so obvious how this is all wired up with a custom control. Can anyone help? Do you have to put an image control in the xaml for the custom control? - if so how is this wired up to images that you have stored in the Images folder of your project?
... View more
03-20-2020
11:06 AM
|
0
|
2
|
2578
|
|
POST
|
Thanks Wolf You have done exactly as I have done whilst waiting for a response - basically toggling between making the non-active portal active, adding the data then making it non-active again. This workaround will suffice whilst I get on building the rest of my add-in, and it certainly confirms my findings which gives me confidence to continue the rest of my code. However I hope that with your input that you can influence the development team to prioritise a change in behaviour - so that you can add content from an non-active portal. Thanks once again, and thanks to Charlie too for your help. I look forward to seeing develpments in this area Simon.
... View more
02-21-2020
04:05 AM
|
0
|
0
|
2581
|
|
POST
|
Hi Charles, Yep, I've tried adding layers from my non-active portal (with the code I posted before - AddAGOLTestLayer()) - it just returns null when it tries to create the layer from the factory. But when active its ok, it returns a valid layer. I will try and search for content after my SignInAsync() and then add Layer from there - but I can't see how that works - it makes no sense that you have to do a search in order to get the LayerFactory to work successfully. UPDATE So bascially I have tried searching for content under my non-active portal and results are brought back - yay! When trying to add content to the map (still under my non-active portal) - using the LayerFactory method - it still returns null, so basically I can't add content. Here is my code below: private async Task SignInAsync(ArcGISPortal nonActivePortal) { var signInResult = await nonActivePortal.SignInAsync(); var pqp = PortalQueryParameters.CreateForItemsOfType(PortalItemType.Layer, "title:fooLayerTitle"); PortalQueryResultSet <PortalItem> results = await ArcGISPortalExtensions.SearchForContentAsync(nonActivePortal, pqp); //Get the first result var myPortalItem = results.Results?.OfType<PortalItem>().FirstOrDefault(); FeatureLayer featureLayer = null; Item testLayer = ItemFactory.Instance.Create(myPortalItem.ID, ItemFactory.ItemType.PortalItem); await QueuedTask.Run(() => { if (LayerFactory.Instance.CanCreateLayerFrom(testLayer)) featureLayer = LayerFactory.Instance.CreateLayer(testLayer, MapView.Active.Map, 0) as FeatureLayer; }); }
... View more
02-17-2020
12:35 PM
|
0
|
3
|
2581
|
|
POST
|
The SignInAsync() doesn't allow me to add any content into Pro (i.e. a feature layer) from "someothercompany" portal - (for simplicity I have passed the unique id of the layer) see code below: public static async Task AddAGOLTestLayer(string layerId) { Item testLayer = ItemFactory.Instance.Create(layerId, ItemFactory.ItemType.PortalItem); await QueuedTask.Run(() => { if (LayerFactory.Instance.CanCreateLayerFrom(testLayer)) LayerFactory.Instance.CreateLayer (testLayer, MapView.Active.Map, 0) as FeatureLayer; }); } The only way I can get the code to work above is by setting the Active Portal to "someothercompany" - but, as my original question outlines, I don't want to do that. I just thought I would try it to make sure that was the case So what actual functionality do you have when using the SignInAsync() method? Can I add data to Pro without setting the Active Portal? Or is it just searching for content or something? To get the behaviour I want would I have to cache the object/details of the currently active portal - switch into "someothercompany" portal, make it active add content etc, then switch back to cached portal. Seems cluncky though. Do I have to start calling rest endpoints to get content into Pro using EsriHttpClient instead of using code like above? This I suspect is more involved than just using out of the box api calls like above.
... View more
02-17-2020
08:22 AM
|
0
|
5
|
2581
|
|
POST
|
OK - I do have a portal instance with credentials that I want the user to use (let's say I've sent these details and credentials in an email) - if after they have signed in via the sign-in window, will this kick them off the Portal they were just using?
... View more
02-13-2020
03:59 AM
|
0
|
7
|
2581
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 12-18-2023 10:11 AM | |
| 1 | 08-22-2025 02:27 AM | |
| 2 | 12-19-2023 01:36 AM | |
| 1 | 12-21-2023 04:02 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|