Editing templates contain tools and settings for creating features in a feature database. They also specify the target data source and the feature attribute values applied to features, and store optional descriptive metadata.
Template types
There are two types of templates that you can manage in Map Viewer: feature templates and shared templates.
Feature templates
A feature template creates features on a single target layer. Feature templates appear in the Create features pane with a name and a symbol showing the symbology assigned to the target feature layer. For example, you can use feature templates for a feature layer of schools that allow editors to choose whether a new feature should be classified as an elementary school, middle school, or high school. As the template author, you can preset the school type attribute for these three options. This ensures that editors do not enter invalid values for this attribute.
If you use unique symbology, you can define subtypes on the feature types, which are additional templates based on other feature attributes. For example, you could define available pipeline types based on both the diameter of the pipe and the material that constitutes it. Well-defined feature templates help your editors add only the types of features that are allowed. Using feature templates, you can provide a focused palette of valid feature types for editors to create and modify.
All hosted feature layers have a default feature template. In Map Viewer, you can duplicate the default feature template to create additional templates, which you can alter to meet specific editing needs. Map Viewer allows you to manage feature templates in the following ways:
- Reorder feature templates.
- Duplicate and delete feature templates.
- Update the display name, description, and default attribute values.
Note:
You can create and manage feature templates in Map Viewer, ArcGIS Pro, and Field Maps Designer. To edit a layer's feature templates, you must be the owner of the layer or an administrator. The layer must also be a hosted feature layer.
Shared templates
Shared editing templates include group and preset templates.
A group template allows you to place multiple features on multiple source layers. It uses feature builders to reference existing templates and place features relative to one primary feature that is sketched on a map. For example, you can sketch a street centerline with directional bike routes and sidewalks added on each side at defined distances. Offset capabilities allow you to specify this distance.
A preset template allows you to place a collection of features. Preset templates add predefined features to a map in the same arrangement they were in when the template was created. They use point construction tools and an insertion anchor to add, rotate, and snap features into place using the active snapping settings. For example, a preset template for a baseball field in a public park can include baseball diamond geometry, a backstop, dugouts, and bleachers. Rotation capabilities allow you to orient the set of features being placed.
Note:
You must use ArcGIS Pro to create group and preset templates. You cannot create or configure them in Map Viewer.
Configure editing templates
Follow these steps to configure editing templates for a hosted feature layer:
- Confirm that you are signed in and that you have privileges to create, update, and delete content.
- In Map Viewer, open the map containing the layer, or add the layer directly.
- On the Contents (dark) toolbar, click Layers to open the Layers pane.
- Add a feature layer to the map.
- With the feature layer selected, click Configure editing
on the Settings (light) toolbar and click Templates
.The Configure templates window appears.
- Under View templates, select an option from the drop-down menu.
Note:
If there are no shared templates available, you can create shared templates from existing feature templates.
- Do any of the following to configure templates:
- Click Reposition
and drag the template to a new location in the Templates list. Alternatively, click Reposition and select an option under Reorder to move the template up or down in the Templates list.Note:
When working with shared templates, the option to reposition templates is not available.
- Click Duplicate
to make a copy of a template. - Click Delete
to delete a template. - Click a template to select it, and update the display name, description, or default values in the Properties section.
- Click Undo
to undo the most recent change. Click Redo
to redo the most recent change. Click History
to see a list of all template changes made during the current editing session. Click Save
to save your changes.
- Click Reposition
- When you finish configuring templates, click OK.
Your changes are saved to the hosted feature layer.
Considerations for feature templates
Keep the following in mind when working with feature templates:
- If you change the style on a layer to use unique symbols instead of color or size, the templates associated with the layer will not automatically update. When you open the Configure templates window, you will be prompted with a warning message that one or more templates are out of sync with the layer's style. Click Update to sync the template with changes made in the Style options pane.
- If only default feature templates exist, the feature template name is the same as the feature type, such as point layer or polygon layer. You can change the template name by updating its properties.
- If the hosted feature layer has a single symbol or class breaks renderer, the service only uses feature templates, not feature types. You can change the default template and add more.
- You can remove all feature templates from a feature type but, if you do, editors cannot add features to the map. There are more effective ways to restrict editing, as described in Manage hosted feature layer editing.
Resources
Use the following resources to learn more:
- Introduction to editing templates in ArcGIS Pro
- Create a feature template in ArcGIS Pro
- Create a group template in ArcGIS Pro
- Create a preset template in ArcGIS Pro