-
Notifications
You must be signed in to change notification settings - Fork 439
Description
Description
In GeoNode, the tableWidget does not perform a zoom to feature action in anonymous mode. Instead, it defaults to zoom to extent in dashboard
This happens because the plugin responsible for determining the availability of the dashboard editor is disabled in anonymous mode. Without the editor available, the dashboard cannot rely on the widget’s update property for zooming.
In MapStore, this works as expected since the plugin is not disabled in anonymous mode. Instead, the editor view is managed via the widget’s edit button.
Steps to Reproduce
- Open a dashboard in GeoNode under anonymous mode.
- Use a table widget and attempt to zoom to a feature.
- Observe that the action defaults to zoom to extent instead of zoom to feature.
Expected Behavior
The table widget should correctly perform a zoom to feature action, regardless of whether the user is anonymous.
Actual Behavior
In anonymous mode on GeoNode, the table widget falls back to zoom to extent.
Proposed Solution
Update the tableWidget enhancer so that its behavior does not solely depend on the availability of the dashboard editor. The enhancer should correctly trigger dispatch actions to handle zoom to feature in dashboards, including when the plugin is disabled in anonymous mode.