Zum Hauptinhalt gehen

maintain feature highlight when data link is clicked

Kommentare

2 Kommentare

  • John Nerge
    It's clearing the highlight because to view the data link info you're technically closing the feature details, and in the viewer config the default behavior is to clear highlights. You can prevent this by removing that line in the FeatureDetailsClosedBehavior.

     

    However, the highlight will persist then until you do something in the map that runs the clearhighlights command.

     

          {

     

            "moduleName": "FeatureDetails",

     

            "moduleType": "geocortex.essentialsHtmlViewer.mapping.modules.FeatureDetails.FeatureDetailsModule",

     

            "configuration": {

     

              "defaultViewMode": "compact",

     

              "viewModes": {

     

                "compact": {

     

                  "viewId": "FeatureDetailsCompactView",

     

                  "defaultProviderTargetRegion": "FeatureDetailsCompactViewRegion"

     

                },

     

                "expanded": {

     

                  "viewId": "FeatureDetailsExpandedView",

     

                  "defaultProviderTargetRegion": "FeatureDetailsBottomRegion"

     

                }

     

              },

     

              "behaviors": [

     

                {

     

                  "name": "FeatureDetailsOpenedBehavior",

     

                  "event": "FeatureDetailsInvokedEvent",

     

                  "commands": [

     

                    "ZoomToFeature",

     

                    "SetActiveHighlightLayerDefault",

     

                    "ClearHighlights",

     

                    "HighlightFeature"

     

                  ]

     

                },

     

                {

     

                  "name": "FeatureDetailsClosedBehavior",

     

                  "commands": [

     

                    "SetActiveHighlightLayerDefault",

     

                    "ClearHighlights"

     

                  ]

     

                }

     

              ],
    0
  • Permanently deleted user
    Perfect!  Thanks John.
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.