Refine Results in Table View
In HTML5 2.8 is there a way to refine the results in the Table View? We are trying to buffer on a single feature from the Table View, but it always reverts to buffering ALL features in the collection (?).
Any suggestions?
Stephanie Patterson
0
-
Hi Stephanie,
The "Panel Actions" context menu from the results table is for the full results collection, so it will always buffer all of the results. One solution here would be to configure your viewer to open map tips when you click features in the results table, so that you have a way to use the individual features. I believe previous versions of the viewer did this as well.- Find the viewer config file you want to edit (eg C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\SITENAME\Viewers\VIEWERNAME\VirtualDirectory\Resources\Config\Default\Desktop.json.js)
- Make a backup copy and then edit the orginal in a text editor like notepad
- Find:
{ "name": "ResultsTableFeatureClickedBehavior", "event": "ResultsTableFeatureClickedEvent", "commands": [ "ZoomToFeature" ] }, { "name": "ResultsTableFeaturePressedBehavior", "event": "ResultsTableFeaturePressedEvent", "commands": [ "ZoomToFeature" ] }, - Add the ShowMapTip command to the commands list like this:
{ "name": "ResultsTableFeatureClickedBehavior", "event": "ResultsTableFeatureClickedEvent", "commands": [ "ZoomToFeature", "ShowMapTip" ] }, { "name": "ResultsTableFeaturePressedBehavior", "event": "ResultsTableFeaturePressedEvent", "commands": [ "ZoomToFeature", "ShowMapTip" ] }, - Save the file and test the results table
- Go to Manager > Viewers > Edit Viewer > Context Menus > Map Tip Actions
- Click Add Menu Item
- Use the following configuration:
Text: Buffer Command: IdentifyBufferedFeature Command Parameter: {{context}} - Apply Changes and Save Site
Hope that helps!
-Amanda0
Please sign in to leave a comment.
Comments
1 comment