Select to view content in your preferred language

Automatically generate point features at the endpoint of line features in Arcgis Online

282
2
a week ago
anonymous55
Frequent Contributor

Hello,

I am looking for a way to automatically add a point to a line when users create a line feature. The point location does not matter, but I want the point to inherit the same attribute values (such as the line date) from the line feature.

I know this can be done in ArcGIS Pro, but I am looking for a way to do it in ArcGIS Online, possibly using Arcade expressions or another workaround.

I’m curious if anyone here has had a similar experience and implemented something like this.

Thanks

0 Kudos
2 Replies
MobiusSnake
MVP Regular Contributor

Although I haven't tried using these, apparently group templates configured in ArcGIS Pro are supported by the ArcGIS Online Web Editor:

https://doc.arcgis.com/en/web-editor/latest/create-and-edit/templates.htm

0 Kudos
EmilyGeo
Esri Regular Contributor

Hi @anonymous55

like @MobiusSnake mentioned, you could create and use shared templates to do this. Those need to be created in Pro, and it requires a few extra steps to bring them into ArcGIS Online- we're working to streamline this process in the near future.

If you want to go that route, you can follow these steps:

  1. Bring the hosted feature service (HFS) with line and point layers into Pro where you can manage the templates. If you don't already have a HFS, you'll need to create that first.
  2. Create a group template in Pro. Using a builder you can configure it to add a point each time you create a line. 
  3. Use the command 'Store templates' in Pro. This stores the group template as a shared template in ArcGIS Online. 
  4. Add the  HFS to a web map in Map Viewer.
  5. Here you could author calculated expressions in the Form to fetch attribute information from another layer. You can do that using a FeatureSet function (see this article for more).
  6. Start editing. You'll see the new template in the Editor pane in apps like Map Viewer, Web Editor, and more. 
0 Kudos