Restore map tips from table (GVH2.8)
I noticed that the map tips are gone in GVH 2.8 when data is in the table format (along the bottom). How can I restore them when a user clicks on a row?
0
-
Hi Ethan,
The behaviour for this click is determined in the viewer configuration files. The default was changed between 2.7.2 and 2.8 to no longer show map tips. If you'd like the 2.7.2 behaviour back:- Find your viewer's config files (default location: C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\SITENAME\Viewers\VIEWERNAME\VirtualDirectory\Resources\Config\Default\SHELLNAME.json.js)
- Back up the json.js file, then edit the original in a text editor like Notepad
- Search for "ResultsTableFeatureClickedBehavior"
- Replace the "commands" there (in 2.8 the default is now "ZoomToFeature") with:
"ShowMapTip", "ZoomToFeature", "HighlightFeatureDefault"These were the default commands in 2.7.2. - Do the same for the commands for "ResultsTableFeaturePressedBehavior".
- The end result should look something like:
{ "name": "ResultsTableFeatureClickedBehavior", "event": "ResultsTableFeatureClickedEvent", "commands": [ "ShowMapTip", "ZoomToFeature", "HighlightFeatureDefault" ] }, { "name": "ResultsTableFeaturePressedBehavior", "event": "ResultsTableFeaturePressedEvent", "commands": [ "ShowMapTip", "ZoomToFeature", "HighlightFeatureDefault" ] }, - Save the file and test the viewer.
-Amanda0 -
I finally got around to implementing this. It works like a charm! Also discovered "PanToFeature." Users have hated the "ZoomToFeature" because they lose context. PanTo could be the answer! Thank you! Thank you! Thank you! 0 -
Glad to help! And glad to hear this led you to find an improvement for your users! Thanks for following up.
Amanda0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer