Skip to content

Table widget's zoom to feature not working in anonymous mode #11494

@dsuren1

Description

@dsuren1

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

  1. Open a dashboard in GeoNode under anonymous mode.
  2. Use a table widget and attempt to zoom to a feature.
  3. 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.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions