FeatureDetails Module

The FeatureDetails Module displays information related to a spatial feature. As of version 2.4, the Desktop and Tablet interfaces can show feature details in two modes: Compact View and Expanded View. In the Compact View, feature details are displayed as a list in the sidebar. In the Expanded View, feature details are displayed as a table in the bottom panel. The user can switch between the different modes via the Panel Actions Menu at the top-right of the panel. By default, the feature details are displayed in the Compact View. The Handheld interface does not support the Expanded View.

Different types of information are obtained from sources that you configure called "feature details providers". The feature details providers are the sources that provide information about the feature. For example, if you want the feature's attributes to display when the user views the feature details, ensure the configuration for the Attributes Provider is present. All feature details providers are configured by default.

The HTML5 Viewer has the following feature details providers:

The Compact View displays the different types of information in a stack, as illustrated below.

Example of feature detail providers in the Compact View

The Expanded View displays the different types of information in separate tabs, as illustrated below.

Example of feature detail providers in the Expanded View

Configuration Properties

Module

Views

View Models

Example - Add a Command with a Parameter to a Behavior

The following example demonstrates adding a new command with a parameter to the behavior, FeatureDetailsOpenedBehavior.

To add a command with a parameter to a behavior:

  1. Run an XML editor or text editor as an administrator.

  2. Open one of the viewer configuration files, Desktop.json.js, Tablet.json.js, or Handheld.json.js, in the editor.

    By default, the configuration files are here:

    C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\[instance]\REST Elements\Sites\[site]\Viewers\[viewer]\VirtualDirectory\Resources\Config\Default\

  3. In the FeatureDetails module section, find the behaviors property. Locate the behavior you want to edit, for example, FeatureDetailsOpenedBehavior.

    {
        "moduleName": "FeatureDetails",
        ...
        "configuration": {
            ...
            "behaviors": [
                {   
                    "name": "FeatureDetailsOpenedBehavior",
                    "event": "FeatureDetailsCurrentFeatureChanged",
                    "commands": [
                        "ZoomToFeature",
                        "SetActiveHighlightLayerDefault",
                        "ClearHighlights",
                        "HighlightFeature"
                    ]
                },
                ...
            ]
        },
        ...
    }

    The behavior executes a few commands, some that include a parameter, for example, ZoomToFeature.

  4. Refer to Viewer Commands and Events to determine the type of parameter that is associated with these commands. ZoomToFeature has a parameter of type, geocortex.essentialsHtmlViewer.mapping.infrastructure.Feature.

  5. Find a command that you want to add to the behavior that has the same parameter type, for example, ShowMapTip.

  6. Add the desired command to the list of commands, separated by a comma. For example:

    "commands": [
        "ZoomToFeature",
        "SetActiveHighlightLayerDefault",
        "ClearHighlights",
        "HighlightFeature",
        "ShowMapTip"
    ]
  7. Save the file.