POST
|
This is fixed. I changed my methodology to handle the Task functionality using Task.WhenAll(legendTasks) instead, in order to wait for all the LegendInfos to get loaded prior to adding it to my observable collection.
... View more
01-19-2024
09:23 AM
|
0
|
0
|
165
|
POST
|
I'm trying to obtain LegendInfo's from all of my Feature Layers in my map (after they're loaded and shown on the map). I've attempted to await on the Layer.GetLegendInfosAsync() using a couple of different methods, and the task status is always set to WaitingForActivation. I'm trying to place my Legends into a MAUI CollectionView. If I show the layer again in my ContentView, it works the next time I open that ContentView, but not the first time. I've tried using the code in the LayerListDataSource (from the Legend Toolkit) as well as TocItem.cs (from the Table of Contents). I might be missing some of the code located in LayerContentDataSource.cs (from Legend Toolkit) but not sure.. Methods follow: //This is the version in LayerListDataSource.cs (tried with and without ConfigureAwait(false) private async Task<IReadOnlyList<LegendInfo>> LoadLegendOrig(ILayerContent layer) { var result = await layer.GetLegendInfosAsync().ConfigureAwait(false); if (result.Count > 0) { Debug.WriteLine($"TocViewModel.cs: LoadLegendOrig() result.Count > 0 = {result.Count}"); } return result; } //This is the version in TocItem.cs private async Task<IReadOnlyList<LegendInfo>> LoadLegend(ILayerContent lc) { var task = lc.GetLegendInfosAsync(); if (task.IsCompleted) { await System.Threading.Tasks.Task.Yield(); } var infos = await task; return infos; }
... View more
01-18-2024
04:08 PM
|
0
|
1
|
262
|
POST
|
Wow! Nice!! Good way to approach that issue. I was thinking about rewriting it using a MAUI CollectionView, but that might not be the easiest way to deal with it (a complete rewrite). I'll check this code out when I get to that point. Thanks.
... View more
11-14-2023
01:44 PM
|
1
|
0
|
334
|
POST
|
I also have to build a Legend, and found that this one is really not customizable without a fairly significant rewrite. It's on my list of things I have to do.
... View more
11-14-2023
05:51 AM
|
0
|
2
|
342
|
POST
|
I just ran into this today too. FYI: I'm using .NET Maui, but same problem there. In my case, I built the map so I was surprised when I could see my own user once connecting to the Portal, but still couldn't open my own web map. Getting rid of the API Key solved the problem... I am looking forward to that fix though, as I need my app to work in both public-facing and secure situations. Thanks so much for solving this for us.
... View more
11-01-2023
02:12 PM
|
0
|
0
|
565
|
POST
|
Thanks for the info on this. I ended up writing my own .NET Maui Control (ContentView) and adding the basemaps I needed from a configuration file. I just needed the ItemId and used ESRI.ArcGISRuntime.Portal.PortalItem to get the item. Then, once I instantiated the ESRI.ArcGISRuntime.Mapping.Basemap, I could get all of the relevant information (Name, Thumbnail, etc).
... View more
06-16-2023
10:15 AM
|
0
|
0
|
332
|
POST
|
I'm using the BasemapGallery from Esri.ArcGISRuntime.Toolkit.Maui. There's an AvailableBasemaps property. I'm trying to figure out a way to limit the number of basemaps added when the control is loaded with all of the basemaps. If anyone has some sample code for this, that would be greatly helpful. I'm able to remove basemaps using a button after they are loaded, but this need it to occur before all the basemaps load (better performance 😁). Thanks.
... View more
05-19-2023
10:57 AM
|
0
|
2
|
435
|
POST
|
We opened a ticket with ESRI: case number #03075052. There's also an "enhancement request" associated with this. I found the Enhancement Request too: #ENH-000146767 Add the ability to support “gdbVersion” parameter when Query Attachments operation is performed on a feature service using ArcGIS Rest API. It looks like there's been no activity. This was submitted on 2/8/22. My email is associated with the case number tied to that enhancement, so feel free to contact me directly.
... View more
07-07-2022
08:05 AM
|
0
|
0
|
300
|
POST
|
Yes, thank you. My name and organization is associated with the request ticket.
... View more
06-27-2022
06:01 AM
|
0
|
2
|
306
|
POST
|
I'm reviewing the documentation here: https://developers.arcgis.com/rest/services-reference/enterprise/query-attachments-feature-service-layer-.htm We would like to use queryAttachments for branch versioned data. But right now, this is not supported. There's no way to add gdbVersion to the request. This is a bug as far as I can tell. I also tried using VersionManager and obtaining differences, but if the user JUST adds attachments and does not make any edits to the associated features, the differences REST API request does not capture the new attachment. Ideas? Workarounds?
... View more
05-26-2022
10:52 AM
|
0
|
4
|
422
|
POST
|
My notes for this are a little fuzzy. I had done this in AGOL Assistant. But under typeKeywords, I added "Offline". I wonder if you can programmatically do this using the item Properties?
... View more
05-04-2022
05:33 AM
|
0
|
0
|
1300
|
POST
|
Hello: My organization is interested in using Experience Builder Developer Edition across our network. We typically don't allow our users to install software such as this directly on their machines. I was researching the "widget development" instructions and the requirements to run a client process every time the user wishes to update the widget. It seems like the client process is not setup to run as a service. I'm just trying to wrap my head around some potential 'best practices' for sharing an Experience Builder Developer Edition environment with multiple developers across a network. Any thoughts on this subject would be helpful. Areas of concern are as follows: We can setup a share to the widgets folder and allow users to drop widgets there. But I have the following concerns: Only a Sys Admin will have the ability to run the Client process. We certainly don't want to have them have to run this process every time the user wishes to update the widget. Is this functionality expected to change sometime in the future? With WAB-Dev, when developing a widget, we setup the widget in a separate Web Server, and use a manifest.json file to link the Portal environment to that widget. Will this be done in the future for Exp. Builder widgets too? Is there ever a plan to have the node.js/server capability be directly started from Experience Builder, just like WAB-Dev handles that? Our organization doesn't allow us to install Node directly, and the currently configured allowable version is much older then version 12. (trying to wrap my head around whether it might be possible to use a conda environment or something to get a newer Node.js version working??? ie., saw this article from a bunch of years ago: https://kartoza.com/ko/blog/nodeenv-how-to-install-nodejs-in-a-python-virtualenv/) Thanks. Karen
... View more
12-20-2021
10:26 AM
|
0
|
0
|
235
|
POST
|
OK, I think I pulled this off. I did this some years ago, so bare with me. For Planar setting, you have to use areasandlengthsparameters. Here's my example (sorry, codes not formatted right when I dropped it in..). //https://developers.arcgis.com/javascript/3/jsapi/areasandlengthsparameters-amd.html //https://developers.arcgis.com/javascript/3/jsapi/areasandlengthsparameters-amd.html#calculationtype _getAreasAndLengthsParameters: function(geomArr) { //https://community.esri.com/message/274372?commentID=274372#comment-274372 //https://community.esri.com/thread/79094 var areaLen = (this._isGeometryLine) ? new LengthsParameters(): new AreasAndLengthsParameters(); if (this._isGeometryLine) { areaLen.lengthUnit = GeometryService.UNIT_FOOT; //TODO GeometryService.UNIT_METER=9001 GeometryService.UNIT_FOOT = 9002 areaLen.polylines = geomArr; } else { areaLen.lengthUnit = GeometryService.UNIT_METER; //TODO GeometryService.UNIT_METER=9001 GeometryService.UNIT_FOOT = 9002 areaLen.areaUnit = GeometryService.UNIT_ACRES; areaLen.polygons = geomArr; } areaLen.calculationType = this._getAcreageCalculationType(); //preserveShape, geodesic, planar //console.log("_getAreasAndLengthsParameters() areaLen = ", areaLen); return areaLen; }, and how I set it right before I used the geometry service to calculate it.... var areaLen = this._getAreasAndLengthsParameters(resultGeom); this._geomService.areasAndLengths(areaLen, lang.hitch(this, this._onAreasLengthsFinish), lang.hitch(this, this._onError, "areas")); Also, fyi: I noticed that the acreages came our slightly different when calculating it via Pro vs Desktop. My calculations matched one and not the other (I can't remember which one)..
... View more
11-29-2021
06:28 AM
|
1
|
0
|
711
|
POST
|
Use a graphics layer to copy the edit features into and make the changes on the client. The geometry Service, https://developers.arcgis.com/javascript/3/jsapi/geometryservice-amd.html or Geometry Engine, https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html all offer routines that can be used to append or merge graphics together. Once you get the graphic(s) you've changed, then you can use the REST API, ApplyEdits, https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-.htm or https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-layer-.htm to make the changes to the actual features. There's also the ability to snap lines together (etc etc).... You can create a whole edit workflow using this methodology.
... View more
11-10-2021
05:44 AM
|
1
|
0
|
710
|
POST
|
Just create a graphicsLayer and add in your features. From there you can essentially create your own editor widget to add in users attributes, and use the Feature Service Editor REST endpoint to upload the changes or additions to the actual feature service. Alternatively, you can have the user select the feature(s) to be edited and then create your own editor to edit the original features. Again, send your edits directly to the REST endpoint. You can modify, delete, add features just using the endpoint (no need for a Graphics layer).
... View more
11-10-2021
05:03 AM
|
0
|
2
|
721
|
Title | Kudos | Posted |
---|---|---|
1 | 11-14-2023 01:44 PM | |
1 | 08-17-2021 12:32 PM | |
1 | 11-29-2021 06:28 AM | |
1 | 11-10-2021 05:44 AM | |
1 | 04-21-2021 02:22 PM |