Skip to content

Commit

Permalink
App Datenmanagement: Konsolenausgaben entfernt und Funktionen reaktiv…
Browse files Browse the repository at this point in the history
…iert
  • Loading branch information
gdmhrogut committed Nov 8, 2023
1 parent 7c193b1 commit cc2eb17
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions datenmanagement/static/datenmanagement/js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,26 +183,22 @@ 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())
.then(data => {
if (ort[0] !== 0 && ort[1] !== 0)
adoptReverseSearchResult(data, addressType);
})
.catch(error => console.log(error))*/
.catch(error => console.log(error))
}

/**
Expand Down

0 comments on commit cc2eb17

Please sign in to comment.