Add Graphics Activity

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.

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.

Supported Environments

Environments capable of running this activity

Server

 

Client

Web

Mobile

Experience Builder

Web AppBuilder

Geocortex Viewer for HTML5

Levels of Support:      Full Support      Partial Support      No Support

Connectivity Requirements

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

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, ArcGIS Web AppBuilder 2.4.

See also...

Use the Add Graphics Activity for Visualization