From cc2eb173726839c6f7bfa9ca2afb88d3b262b978 Mon Sep 17 00:00:00 2001 From: Sebastian Gutzeit Date: Wed, 8 Nov 2023 12:20:49 +0100 Subject: [PATCH] App Datenmanagement: Konsolenausgaben entfernt und Funktionen reaktiviert --- datenmanagement/static/datenmanagement/js/form.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/datenmanagement/static/datenmanagement/js/form.js b/datenmanagement/static/datenmanagement/js/form.js index e8e3b35f..110ea13d 100644 --- a/datenmanagement/static/datenmanagement/js/form.js +++ b/datenmanagement/static/datenmanagement/js/form.js @@ -183,18 +183,14 @@ function keepDjangoRequiredMessages() { * adopts the current address reference of the geometry in the map */ function setAddressReference(addressType, layer) { - console.log(addressType); let geoJson = layer.toGeoJSON(); - console.log(geoJson); let geometryType = 'Polygon'; if (window.geometryType.toLowerCase().indexOf('point') !== -1) geometryType = 'Point'; else if (window.geometryTypetoLowerCase().indexOf('line') !== -1) geometryType = 'LineString'; - console.log(geometryType); let ort = getFeatureCenter(geoJson, geometryType); - console.log(ort); - /*fetch(window.reverseSearchUrl + '?search_class=address&x=' + ort[0] + '&y=' + ort[1], { + fetch(window.reverseSearchUrl + '?search_class=address&x=' + ort[0] + '&y=' + ort[1], { method: 'GET' }) .then(response => response.json()) @@ -202,7 +198,7 @@ function setAddressReference(addressType, layer) { if (ort[0] !== 0 && ort[1] !== 0) adoptReverseSearchResult(data, addressType); }) - .catch(error => console.log(error))*/ + .catch(error => console.log(error)) } /**