Fix: self -> VlmUI Reference in confirmAndSearch

self war nicht definiert, JS-Error verhinderte den Overpass-Aufruf.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dieser Commit ist enthalten in:
Claude Dev
2026-03-26 00:39:32 +01:00
Ursprung 749c78b6a3
Commit b9b76d2841

Datei anzeigen

@@ -272,7 +272,7 @@ const VlmUI = {
fetch('/api/vlm/generate-queries', { fetch('/api/vlm/generate-queries', {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ objects: selected, bbox: bbox, estimated_location_type: self._currentAnalysis.estimated_location_type || null }), body: JSON.stringify({ objects: selected, bbox: bbox, estimated_location_type: VlmUI._currentAnalysis.estimated_location_type || null }),
}) })
.then(function(r) { .then(function(r) {
if (!r.ok) return r.json().then(function(d) { throw new Error(d.detail || 'Fehler'); }); if (!r.ok) return r.json().then(function(d) { throw new Error(d.detail || 'Fehler'); });