Grafana - interactive linking between tables, map-location

Welcome @danielhenrique to the community

For the map → table interaction:
Add a Data Link to your map panel that points back to the same dashboard while passing the selected Site as a dashboard variable (var-site=...).
Use the $site variable in your MariaDB query (WHERE clause) so the table only returns data for the selected site. Clicking a map marker will reload the dashboard and all panels using $site will update automatically.

For the table → detail panel interaction:
Add a Data Link to the appropriate table column passing the selected Battery ID or Cell ID as a dashboard variable. Panels using those variables will update accordingly.

If starting fresh, use Geomap instead of Worldmap → Worldmap has been deprecated.

A similar discussion you may find helpful