POST
|
This is a basic question - but seem to be having a hard time getting an answer from the online help. I want to set a coordinate system when I make a new map pane. You cannot seem to specify when you use the MapFactory and once the map is made the SpatialReference property is readonly. Could someone point me in the right direction to change or set the spatial ref of a map.
... View more
04-25-2020
03:54 AM
|
0
|
3
|
581
|
POST
|
I'll be honest - it kind of blows my mind what's going on here!
... View more
04-23-2020
10:53 AM
|
0
|
1
|
1867
|
POST
|
I have found that if I search for a layer file and include the .lyrx suffix to the search string parameter it brings back 1 result. Which is fine - but I have put a constraint to bring back "Layer Files" only. So this kind of makes the constraint for "Layer Files" superfluous. I'm not happy with the search algorithm here.
... View more
04-23-2020
01:27 AM
|
0
|
0
|
517
|
POST
|
This is a bit rubbish - I can't believe this is the only solution.
... View more
04-23-2020
01:17 AM
|
0
|
0
|
517
|
POST
|
I've created a dockpane that adds layers to a new map pane - this can be a long running process. I think a progressbar would be nice for the user to see how things are going. What is the ESRI way or best way of doing things like this? Put a ProgressBar control on the dockpane? Or have a ProgressDiaglog popup? I see no concrete examples using the standard WPF ProgressBar control on ESRI GitHub, only the ProgressDialog - which is the main reason I am asking the question.
... View more
04-22-2020
03:49 AM
|
0
|
3
|
1954
|
POST
|
The example looks like it only works with physical layer files on disk - however I am working with layer files from the portal and they com back as type Core.Item. Does this work with portal layer items? and can I position/set the index of the layer in the contents? like I can with the one of the overrides on the CreateLayer().
... View more
04-22-2020
01:19 AM
|
0
|
4
|
1480
|
POST
|
Well you could - but how do you know the item id up front? Don't you have to find the item first then store away the ID somehow? Then use that in the future searches. If you do that but update the layer file at some point the ID will change as well. So that will cause a problem. Is this the only way?
... View more
04-21-2020
01:47 PM
|
0
|
1
|
517
|
POST
|
If I need one thing from Portal is there a way to search for it explicitly - at the moment the search result brings back a multitude of things that sound like the item I am searching for (happens to be a layer file) and also includes the actual thing I am looking for. Ideally I want either 0 or 1 item returns so I know either that search result returned successfully or not. This is the code I'm using where I am hoping that the "search" should work in the way that I explained above: public static async Task<List<AgolLayer>> GetAgolLayersAsync(int numberOfResults, string search = "")
{
var portal = ArcGISPortalManager.Current.GetActivePortal();
List<AgolLayer> agolLayers = new List<AgolLayer>();
if (portal.IsSignedOn())
{
var query = PortalQueryParameters.CreateForItemsOfTypes(new List<PortalItemType>() { PortalItemType.Layer }, "", Module1.GroupID, search);
query.Limit = numberOfResults;
//Loop until done
var portalItems = new List<PortalItem>();
while (query != null)
{
//run the search
PortalQueryResultSet<PortalItem> results = await portal.SearchForContentAsync(query);
portalItems.AddRange(results.Results);
query = results.NextQueryParameters;
}
foreach (dynamic item in portalItems)
{
AgolLayer agolLayer = new AgolLayer(item);
if (agolLayer.IsValidLayer)
{
agolLayers.Add(agolLayer);
}
}
}
else
{
Debug.WriteLine("User not signed in - so layers cannot be retrieved.");
}
return agolLayers;
}
... View more
04-21-2020
09:59 AM
|
0
|
6
|
584
|
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
|
1581
|
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
|
1542
|
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
|
1542
|
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
|
1624
|
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
|
962
|
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
|
962
|
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
|
962
|
Title | Kudos | Posted |
---|---|---|
1 | 12-19-2023 01:36 AM | |
1 | 12-21-2023 04:02 AM | |
1 | 05-27-2021 10:01 AM | |
1 | 05-05-2021 01:32 AM | |
2 | 02-11-2021 08:46 AM |
Online Status |
Offline
|
Date Last Visited |
03-14-2024
04:02 PM
|