Kartenfeature: Geoparsing + Leaflet-Karte im Dashboard
- Neues Geoparsing-Modul (spaCy NER + geonamescache/Nominatim)
- article_locations-Tabelle mit Migration
- Pipeline-Integration nach Artikel-Speicherung
- API-Endpunkt GET /incidents/{id}/locations
- Leaflet.js + MarkerCluster im Dashboard-Grid
- Theme-aware Kartenkacheln (CartoDB dark / OSM light)
- Gold-Akzent MarkerCluster, Popup mit Artikelliste
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Dieser Commit ist enthalten in:
@@ -4142,3 +4142,174 @@ a:hover {
|
||||
color: black !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* === Karten-Kachel (Leaflet) === */
|
||||
.map-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
.map-card .card-header {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.map-stats {
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
font-family: var(--font-body);
|
||||
}
|
||||
.map-container {
|
||||
flex: 1;
|
||||
min-height: 200px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
.map-empty {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
min-height: 200px;
|
||||
color: var(--text-tertiary);
|
||||
font-size: 13px;
|
||||
font-family: var(--font-body);
|
||||
}
|
||||
|
||||
/* Leaflet-Popup-Overrides */
|
||||
.map-popup-container .leaflet-popup-content-wrapper {
|
||||
background: var(--bg-card);
|
||||
color: var(--text-primary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
.map-popup-container .leaflet-popup-tip {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.map-popup-container .leaflet-popup-content {
|
||||
margin: 10px 12px;
|
||||
font-family: var(--font-body);
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.map-popup-container .leaflet-popup-close-button {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.map-popup-container .leaflet-popup-close-button:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.map-popup-title {
|
||||
font-weight: 600;
|
||||
font-family: var(--font-title);
|
||||
font-size: 14px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.map-popup-cc {
|
||||
font-size: 10px;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 400;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.map-popup-count {
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.map-popup-articles {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.map-popup-article {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: var(--text-primary);
|
||||
text-decoration: none;
|
||||
padding: 3px 0;
|
||||
border-top: 1px solid var(--border);
|
||||
line-height: 1.4;
|
||||
}
|
||||
a.map-popup-article:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
.map-popup-source {
|
||||
color: var(--text-secondary);
|
||||
font-size: 11px;
|
||||
}
|
||||
.map-popup-more {
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary);
|
||||
font-style: italic;
|
||||
padding-top: 4px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* MarkerCluster in Gold-Akzent */
|
||||
.map-cluster {
|
||||
background: rgba(200, 168, 81, 0.25);
|
||||
border-radius: 50%;
|
||||
}
|
||||
.map-cluster div {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
margin: 5px;
|
||||
background: var(--accent);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.map-cluster span {
|
||||
font-family: var(--font-body);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #0B1121;
|
||||
}
|
||||
.map-cluster-medium div {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
margin: 2px;
|
||||
}
|
||||
.map-cluster-medium span {
|
||||
font-size: 13px;
|
||||
}
|
||||
.map-cluster-large div {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin: -2px;
|
||||
}
|
||||
.map-cluster-large span {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* Leaflet Controls: Dark-Theme */
|
||||
.leaflet-control-zoom a {
|
||||
background-color: var(--bg-card) !important;
|
||||
color: var(--text-primary) !important;
|
||||
border-color: var(--border) !important;
|
||||
}
|
||||
.leaflet-control-zoom a:hover {
|
||||
background-color: var(--bg-hover) !important;
|
||||
}
|
||||
.leaflet-control-attribution {
|
||||
background: rgba(11, 17, 33, 0.7) !important;
|
||||
color: var(--text-secondary) !important;
|
||||
font-size: 10px !important;
|
||||
}
|
||||
.leaflet-control-attribution a {
|
||||
color: var(--text-secondary) !important;
|
||||
}
|
||||
|
||||
/* Light-Theme Karten-Overrides */
|
||||
[data-theme="light"] .leaflet-control-zoom a {
|
||||
background-color: #fff !important;
|
||||
color: #333 !important;
|
||||
border-color: #ccc !important;
|
||||
}
|
||||
[data-theme="light"] .leaflet-control-attribution {
|
||||
background: rgba(255, 255, 255, 0.7) !important;
|
||||
color: #666 !important;
|
||||
}
|
||||
[data-theme="light"] .map-cluster span {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren