Clear Graphics Activity

Description

Removes all the features from a graphics layer in the currently selected map.

Usage

You may need to draw features on a map. You could use the Set Map activity to switch to the map you want to draw on, if there is more than one map, and then use the Clear Graphics activity to clear the existing features that were drawn using the Add Graphics activity.

Inputs

Layer Id

Optional

Type: String | Number

The ID of the graphics layer in the currently selected map to clear. 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 no layer ID is provided, the default graphics layer of the currently selected map is cleared.

Outputs

This activity has no outputs.

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.

© 2020 VertiGIS North America Ltd. All Rights Reserved.

Documentation Version 5.19