Select to view content in your preferred language

Editor Widget that lets you add centroids, hide fields, and has lat/long auto-input and updates on edits.

111
0
12-09-2024 09:31 AM
BrainIsBrokenNeedGISHelp
Emerging Contributor

I am looking to add in specific Editor Widget functionality for a desktop app built with ArcGIS Maps SDK for JS in version 4.29. I have the Editor Widget in place, and I have the fields hidden in the widget of the hosted feature points layer that the app revolves around that do not need to be shown. Some of the hidden fields in the Editor Widget do need to be shown in the popup though. I also need the latitude and longitude fields to auto-populate based on where the user puts the point on the map and be shown in the editor widget and the popup. I also need the lat/long fields to update whenever a point is moved to a new location on the map. I am using a map Item ID in the code that has all of the operational and non-operational layers stashed in the Enterprise Portal to power the UI/UX in the desktop app with a bunch of widgets around the viewport and buttons in the navbar that include extra functionality via JS.

I found this sample app (https://developers.arcgis.com/javascript/latest/sample-code/widgets-featureform-async/) which is really overkill for what I need. I need the option to create, delete, and move the points, and the need to auto-update the lat/long when the points are moved by the end user, as well as the updating of other location layers like PLSS, county, and state if they are moved that far during QAQC.

Update: I am currently working this problem and making good progress. Will post the code once completed in case anyone needs something similar without all of the fluff in the sample app above.

0 Kudos
0 Replies