diff --git a/webgis/index.html b/webgis/index.html
index 3b27187..a47e1d3 100644
--- a/webgis/index.html
+++ b/webgis/index.html
@@ -83,9 +83,10 @@
+ data-menu-target="search" data-controller="layer search">
+
Ricerca
-
-
-
+
diff --git a/webgis/js/controllers/form_controller.js b/webgis/js/controllers/form_controller.js
deleted file mode 100644
index 404429f..0000000
--- a/webgis/js/controllers/form_controller.js
+++ /dev/null
@@ -1,79 +0,0 @@
-import { Controller } from "@hotwired/stimulus";
-import { GisState } from "../state.js";
-import UI from "../ui.js";
-
-const html = String.raw;
-
-export default class extends Controller {
- static values = {
- 'coords': String,
- 'group': String,
- 'id': String,
- };
-
- static targets = ['search', 'results'];
-
- /**
- *
- * @param {Event} event
- */
- async submitSearch(event) {
- event.preventDefault();
- const data = new FormData(event.target);
- const body = {};
-
- for (const entry of data.entries()) {
- body[entry[0]] = entry[1];
- }
-
- const response = await fetch("https://caprigis-api.ddev.site:33001/search?" + new URLSearchParams(body));
- const results = await response.json();
-
- console.debug(results);
-
- this.#injectResults(results);
- this.#filterMap(results);
- }
-
- #injectResults(results) {
- /**
- * @type {HTMLOutputElement} output
- */
- const output = this.resultsTarget;
- output.innerHTML = '';
-
- for (const result of results) {
- const item = html`
-
${result.label}
- `;
-
- output.innerHTML += item;
- }
- }
-
- /**
- *
- * @param {Array