Please enable JavaScript to view this site.

Navigation: Activities > Activity Reference

Add Graphics Activity

Prev Top Next More

Description

The Add Graphics activity adds features to a graphics layer on the currently selected map.

Usage

You may need to display a feature on a map. In one scenario, you could create a feature using the Create Feature activity, and then display that feature on the map using the Add Graphics activity.

 

Note on VertiGIS Studio Web:
When running a workflow in VertiGIS Studio Web, this activity behaves differently than in other VertiGIS applications:
٠Graphics added via this activity participate in Web’s internal markup system rather than being added to standard map graphics layers (they will not appear as discrete layers in the Layer List).
٠The value supplied to the Layer ID input acts as an identifier for a markup collection rather than creating a true map layer.
٠Recommendation: If you need to add features to a dedicated or existing map layer, use the Add Features activity instead.

Inputs

Layer Id

Optional

Type: String | Number

The ID of the graphics layer to add features to. In applications that use the 4.x ArcGIS API for JavaScript, the title of the layer is also searched if no matching ID is found. If a layer with the specified ID does not exist, a new layer is created. If no layer ID is provided, features are added to the currently selected map's default graphics layer.

Features

Required

Type: esri.Graphic (3.x, 4.x)* | esri.FeatureSet (3.x, 4.x)* | esri.Graphic[] (3.x, 4.x)*

The features to add to the layer.

Remove All Features

Optional

Type: Boolean

Whether or not all features should be removed from the layer.

The default is false.

* VertiGIS Studio Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of host application. See Underlying Technologies for information.

Outputs

features

Type: esri.Graphic[] (3.x, 4.x)*

The features that were added.

* VertiGIS Studio Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of host application. See Underlying Technologies for information.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Connectivity Requirements

This activity works when the device has intermittent connectivity to the network.

See also...

Use the Add Graphics Activity for Visualization

© 2026 VertiGIS North America Ltd. All Rights Reserved. | Privacy Center | Imprint
Documentation Version 5.54 (301fb2fe)