Fix: Region-BBox aus VLM-Analyse + generische Tags filtern
Wenn keine Viewport-BBox gesetzt ist, nutzt der Query-Generator die VLM-Regionsschaetzung (z.B. Europa, Naher Osten) als grobe BBox. 70+ Regionen gemappt (DE/EN). Generische OSM-Tags (building, highway, landuse) werden gefiltert um Overpass-Timeouts zu vermeiden. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dieser Commit ist enthalten in:
@@ -272,14 +272,15 @@ const VlmUI = {
|
||||
fetch('/api/vlm/generate-queries', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ objects: selected, bbox: bbox }),
|
||||
body: JSON.stringify({ objects: selected, bbox: bbox, estimated_location_type: self._currentAnalysis.estimated_location_type || null }),
|
||||
})
|
||||
.then(function(r) {
|
||||
if (!r.ok) return r.json().then(function(d) { throw new Error(d.detail || 'Fehler'); });
|
||||
return r.json();
|
||||
})
|
||||
.then(function(data) {
|
||||
if (searchResult) searchResult.textContent = 'Query generiert (' + data.tag_count + ' Tags). Suche OSM-Daten...';
|
||||
var regionInfo = data.region ? ' (Region: ' + data.region + ')' : ' (weltweit)';
|
||||
if (searchResult) searchResult.textContent = 'Query generiert (' + data.tag_count + ' Tags)' + regionInfo + '. Suche OSM-Daten...';
|
||||
|
||||
// 2. Overpass-Query direkt ausfuehren
|
||||
OverpassLayer.setColor('#e040fb');
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren