Add Graphics Activity

Description

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

Usage

You may need to display a feature on the map. In one scenario you could create a feature, using the Create Feature activity, and 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 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.

* Geocortex 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.

* Geocortex 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

Geocortex Web

Geocortex Mobile

Geocortex Viewer for HTML5

Web AppBuilder

Offline Support

This activity works when the device is offline.

Version Information

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

See Also...

Use the Add Graphics Activity for Visualization

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.14