Pushpins Module

Pushpins are not currently supported in the Handheld interface. Adding pushpin configuration to the Handheld configuration file has no effect.

The Pushpins Module is responsible for placing a pushpin on the map. When pushpins are visible, they are placed in the center of a feature, subject to any configured offset. Pushpins can be used with geocoders and workflows.

For information about pushpin visibility for point, line, and polygon features on a map, see Pushpins.

Configuration Properties

Module

Views

No views

View Models

No 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, MapOnFeatureClickBehavior.

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 Pushpins module section, find the behaviors property. Locate the behavior you want to edit, for example, PushpinClickedBehavior.

    {
        "moduleName": "Pushpins",
        ...
        "configuration": {
            ...
            "behaviors": [
                {   
                    "name": "PushpinClickedBehavior",
                    "commands": [
                        "ShowMapTip",
                        "HighlightFeatureDefault"
                    ]
                }
            ]
        }
    }

    The behavior executes two commands: ShowMapTip and HighlightFeatureDefault.

  4. Refer to Viewer Commands and Events to determine the type of parameter that is associated with these commands. Both commands 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, PanToFeature.

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

    "commands": [
        "ShowMapTip",
        "HighlightFeatureDefault",
        "PanToFeature"
    ]
  7. Save the file.