maintain feature highlight when data link is clicked
Is there a way to make a feature's highlight persist when a user clicks on a data link? GVH 2.6 GE 2.5.2
0
-
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 -
Perfect! Thanks John. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer