Description
In Map Viewer, when a feature layer is symbolized using unique values with Arcade expressions, the symbology is displayed correctly in the 'Style options' pane and the map legend. However, the Templates list does not reflect the symbology and only one template appears, as shown in the example below.
Enabling the Other category may update the appearance of the single template, but no additional templates are created. In addition, opening the 'Configure templates' window does not display the expected warning that templates are out of sync with the layer’s style. As a result, the Editor pane and apps such as Field Maps Designer do not reflect the symbology.
Cause
Templates in ArcGIS Online Map Viewer are only synchronized with symbology when it is based on fields. Arcade-based symbology is not linked to template definitions, so changes to the renderer are not recognized as template updates and the Templates list remains unchanged.
Solution or Workaround
Manually add the templates to the Templates list
- In ArcGIS Online, navigate to Content > My content.
- Browse to the web map, click More options
, and select Open in Map Viewer. - In Map Viewer, on the Contents (dark) toolbar, on the Layers tab, click the feature layer.
- On the Settings (light) toolbar, click Configure editing
> Templates
.
- In the Configure templates window, click Duplicate
on the original template. - Click the newly duplicated template to open the Properties section.
- In the Properties section, under Formatting, specify Display name with the name of the category. In this example, it is Completed.
- Under Default Values, specify the category name for the field used in the expression. In this example, the field is Status and the category name is Completed.
- Repeat Steps 4(a) through 4(d) to add more templates in the Templates list.
- Delete the original template from the Templates list. In this example, it is Symbols_test.
- Click OK.
- Save the web map.
Note:
Alternatively, add the templates and delete the original template on the Templates tab in the Field Maps Designer web app. Refer to ArcGIS Field Maps: Configure the map for more information.
Create new templates for each category in ArcGIS Pro
- In ArcGIS Pro, open the existing project.
- On the ribbon, on the Edit tab, in the Manage Edits group, click Manage Templates.
- In the Manage Templates pane, click the layer in the layer view.
- Create new templates for each category. Refer to ArcGIS Pro: Create a feature template for more information.
- On the template view toolbar, click New > Template.
- In the Template Properties dialog box, on the General tab, for Name, specify the name of the category. In this example, it is Completed.
- In the Template Properties dialog box, click the Attributes tab, click the field and replace <Null> with the name of the category.
- Click OK.
- Repeat Step 4 to add more templates in the template view.
- Delete the original template from the template view. Refer to ArcGIS Pro: Delete an editing template for instructions.
- Overwrite the web feature layer in ArcGIS Online. Refer to ArcGIS Pro: Overwrite a web feature layer for more information.
The Templates list and the Editor pane below display the symbology for the field.