Add Graphics Layer Features Activity

Description

The Add Graphics Layer Features 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 Layer Features activity.

Offline Support

This activity works when the device is offline.

Inputs

Layer Id

Required

Type: String | Number

The ID of the graphics layer of interest.

If a layer with the this ID does not exist, a new layer will be created.

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 application. Web AppBuilder 2D apps and Geocortex HTML5 viewers use version 3.x of the JavaScript API. Web AppBuilder 3D apps use version 4.x.

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 application. Web AppBuilder 2D apps and Geocortex HTML5 viewers use version 3.x of the JavaScript API. Web AppBuilder 3D apps use version 4.x.

Properties

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

Version Information

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

See Also...

Use the Add Graphics Layer Features Activity for Visualization

© 2018 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.9