Set Layer Definition Activity

Description:

Sets the definition expression of a layer in a client application.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.NativeActivity
      Geocortex.Workflow.Activities.ExternalActivityBase
        Geocortex.Workflow.Activities.SetLayerDefinition

Function:

This activity allows a workflow to control layer definition expressions in the user’s map. ArcGIS Dynamic Map Service layers and Feature Layers are supported.

In a Workflow:

You would use this activity if you need to apply a layer definition expression to filter the content of a layer in the user’s map. For example: only show census areas with a population greater than 100,000.

When you apply a layer definition it will not automatically redraw the map. You can use the Refresh Map activity to redraw the affected map service.

Properties:

Name Description

In Arguments

Map Service Id

The id of the Geocortex map service that contains the layer.

Layer Id

The id of the Geocortex layer whose definition expression will be set.

Layer Name

The name of the Geocortex layer whose definition expression will be set. If a Layer Id is also supplied the Id will be preferred.

Definition

The desired layer definition expression. For example: POPULATION > 100000.

Misc

Display Name

SetLayerDefinition

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

External Id

An activity handler within a client can reference this particular activity using this external identifier.

Version Information:

Supported from: Geocortex Essentials 3.6, Geocortex Viewer for Silverlight 1.4, Geocortex Viewer for HTML5 1.0.