Feature: Overpass Turbo + VLM-Bildanalyse
Overpass Turbo Integration: - POST /api/overpass/query: OverpassQL-Proxy mit Caching, Rate-Limiting, Fallback - GET /api/overpass/templates: 30 OSINT-Templates in 6 Kategorien - Frontend: Query-Editor Panel mit Template-Browser, Viewport-BBox - Layer: Nodes/Ways/Relations Rendering auf CesiumJS mit OSM-Tag InfoBox VLM-Bildanalyse: - POST /api/vlm/analyze: Bildupload -> Claude Code headless (Sonnet) -> GEOINT-Analyse - POST /api/vlm/generate-queries: VLM-Erkennungen -> OverpassQL - Frontend: Drag&Drop Upload, Zwei-Stufen-Workflow (Analyse -> Overpass-Suche) - Bild-Resize (Pillow), asyncio Subprocess, Semaphore (max 1 parallel) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dieser Commit ist enthalten in:
@@ -589,3 +589,200 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
||||
background: rgba(255,255,255,0.02);
|
||||
border-radius: 0 4px 4px 0;
|
||||
}
|
||||
|
||||
/* === Overpass Turbo === */
|
||||
.dot-overpass { background: #ff9800; }
|
||||
|
||||
.overpass-panel {
|
||||
position: fixed;
|
||||
top: 56px;
|
||||
right: 12px;
|
||||
width: 360px;
|
||||
max-height: calc(100vh - 100px);
|
||||
overflow-y: auto;
|
||||
background: var(--bg-panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
backdrop-filter: blur(12px);
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
|
||||
z-index: 100;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
#overpass-editor {
|
||||
width: 100%;
|
||||
min-height: 100px;
|
||||
background: rgba(0,0,0,0.3);
|
||||
color: var(--accent);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
padding: 8px;
|
||||
resize: vertical;
|
||||
line-height: 1.5;
|
||||
}
|
||||
#overpass-editor:focus {
|
||||
border-color: var(--accent);
|
||||
outline: none;
|
||||
box-shadow: 0 0 8px rgba(0,255,136,0.15);
|
||||
}
|
||||
#overpass-editor::placeholder { color: var(--text-dim); opacity: 0.5; }
|
||||
|
||||
.overpass-cat-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
|
||||
.overpass-cat-tab {
|
||||
padding: 4px 8px;
|
||||
font-size: 10px;
|
||||
font-family: var(--font-mono);
|
||||
letter-spacing: 0.5px;
|
||||
background: rgba(255,255,255,0.05);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 3px;
|
||||
color: var(--text-dim);
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.overpass-cat-tab:hover { border-color: rgba(0,255,136,0.3); color: var(--text); }
|
||||
.overpass-cat-tab.active {
|
||||
color: var(--accent);
|
||||
border-color: var(--accent);
|
||||
background: rgba(0,255,136,0.1);
|
||||
}
|
||||
|
||||
.overpass-template-btn {
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 5px 8px;
|
||||
margin: 1px 0;
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
color: var(--text);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
border-radius: 3px;
|
||||
transition: all 0.1s;
|
||||
}
|
||||
.overpass-template-btn:hover {
|
||||
background: rgba(0,255,136,0.06);
|
||||
border-color: var(--border);
|
||||
}
|
||||
|
||||
.overpass-exec-btn {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
background: rgba(0,255,136,0.12);
|
||||
border: 1px solid var(--accent);
|
||||
color: var(--accent);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.overpass-exec-btn:hover { background: rgba(0,255,136,0.22); }
|
||||
.overpass-exec-btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
|
||||
.overpass-panel::-webkit-scrollbar { width: 4px; }
|
||||
.overpass-panel::-webkit-scrollbar-track { background: transparent; }
|
||||
.overpass-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
|
||||
|
||||
/* === VLM Bildanalyse === */
|
||||
.dot-vlm { background: #e040fb; }
|
||||
|
||||
.vlm-panel {
|
||||
position: fixed;
|
||||
top: 56px;
|
||||
left: 268px;
|
||||
width: 360px;
|
||||
max-height: calc(100vh - 100px);
|
||||
overflow-y: auto;
|
||||
background: var(--bg-panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
backdrop-filter: blur(12px);
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
|
||||
z-index: 100;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.vlm-drop-zone {
|
||||
border: 2px dashed var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 28px 16px;
|
||||
text-align: center;
|
||||
color: var(--text-dim);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.vlm-drop-zone:hover,
|
||||
.vlm-drop-active {
|
||||
border-color: var(--accent);
|
||||
background: rgba(0,255,136,0.04);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.vlm-preview img {
|
||||
max-width: 100%;
|
||||
max-height: 180px;
|
||||
object-fit: contain;
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--border);
|
||||
margin: 8px 0 4px;
|
||||
}
|
||||
|
||||
.vlm-loading {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
color: var(--accent);
|
||||
font-size: 12px;
|
||||
}
|
||||
.vlm-spinner {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border: 2px solid var(--border);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
animation: vlm-spin 0.8s linear infinite;
|
||||
margin: 0 auto 10px;
|
||||
}
|
||||
@keyframes vlm-spin { to { transform: rotate(360deg); } }
|
||||
|
||||
.vlm-object-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
margin: 4px 0;
|
||||
font-size: 12px;
|
||||
transition: border-color 0.15s;
|
||||
}
|
||||
.vlm-object-card:hover { border-color: rgba(0,255,136,0.3); }
|
||||
|
||||
.vlm-confidence-high { color: #00ff88; }
|
||||
.vlm-confidence-medium { color: #ff9800; }
|
||||
.vlm-confidence-low { color: #ff5252; }
|
||||
|
||||
.vlm-badge-mil {
|
||||
background: rgba(255,82,82,0.2);
|
||||
color: #ff5252;
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
padding: 2px 5px;
|
||||
border-radius: 2px;
|
||||
letter-spacing: 0.5px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.vlm-panel::-webkit-scrollbar { width: 4px; }
|
||||
.vlm-panel::-webkit-scrollbar-track { background: transparent; }
|
||||
.vlm-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren