UI Overhaul: Groessere Elemente, bessere InfoBox-Platzierung
PANEL (links): - 240px breit (war 200px) - Checkboxen 16x16px (war 12x12) - Dots 10px (war 8px) - Layer-Namen 13px (war 11px) - Counts 12px (war 10px) - Mehr Padding pro Toggle-Zeile INFOBOX (bei Klick): - Links neben dem Panel platziert (254px vom Rand) - 420px breit, max 60vh hoch, scrollbar - Kollidiert nicht mit Panel oder Sidebar - Groesserer Titel (14px), mehr Padding PUNKTE AUF DEM GLOBUS: - Flugzeuge: 3/4/5px (war 2/2.5/3) - Schiffe: 3/4/5px (war 2/2.5/3) - Militaer: 6px (war 4) - Katastrophen: 10px (war 8) - Erdbeben: 6-15px (war 4-10) - GDELT: 7px (war 5) - ISS: 14px (war 10) - Cluster: +30% groesser HEADER + FOOTER: - Header 48px (war 44px) - Footer 32px (war 28px) - Titel 15px, Stats 12px - Lage-Select + Suche groesser
Dieser Commit ist enthalten in:
@@ -26,13 +26,13 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
|
|
||||||
/* === Header === */
|
/* === Header === */
|
||||||
#header {
|
#header {
|
||||||
position: fixed; top: 0; left: 0; right: 0; height: 44px; z-index: 100;
|
position: fixed; top: 0; left: 0; right: 0; height: 48px; z-index: 100;
|
||||||
display: flex; align-items: center; padding: 0 16px; gap: 16px;
|
display: flex; align-items: center; padding: 0 16px; gap: 16px;
|
||||||
background: var(--bg-panel); border-bottom: 1px solid var(--border);
|
background: var(--bg-panel); border-bottom: 1px solid var(--border);
|
||||||
backdrop-filter: blur(12px);
|
backdrop-filter: blur(12px);
|
||||||
}
|
}
|
||||||
.header-brand { display: flex; align-items: center; gap: 8px; }
|
.header-brand { display: flex; align-items: center; gap: 8px; }
|
||||||
.header-title { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
|
.header-title { font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
|
||||||
.header-stats { text-align: center; font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }
|
.header-stats { text-align: center; font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }
|
||||||
.header-actions { display: flex; gap: 8px; }
|
.header-actions { display: flex; gap: 8px; }
|
||||||
.header-btn {
|
.header-btn {
|
||||||
@@ -43,28 +43,28 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
|
|
||||||
/* === Layer Panel === */
|
/* === Layer Panel === */
|
||||||
.layer-panel {
|
.layer-panel {
|
||||||
position: fixed; top: 52px; left: 12px; z-index: 100;
|
position: fixed; top: 56px; left: 12px; z-index: 100;
|
||||||
width: 200px; background: var(--bg-panel); border: 1px solid var(--border);
|
width: 240px; background: var(--bg-panel); border: 1px solid var(--border);
|
||||||
border-radius: 8px; padding: 12px; backdrop-filter: blur(12px);
|
border-radius: 8px; padding: 12px; backdrop-filter: blur(12px);
|
||||||
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
|
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
|
||||||
}
|
}
|
||||||
.panel-title {
|
.panel-title {
|
||||||
font-size: 9px; font-weight: 700; letter-spacing: 3px; color: var(--accent);
|
font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--accent);
|
||||||
margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
|
margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
|
||||||
}
|
}
|
||||||
.panel-section { display: flex; flex-direction: column; gap: 4px; }
|
.panel-section { display: flex; flex-direction: column; gap: 4px; }
|
||||||
.panel-divider { height: 1px; background: var(--border); margin: 8px 0; }
|
.panel-divider { height: 1px; background: var(--border); margin: 8px 0; }
|
||||||
|
|
||||||
.layer-toggle {
|
.layer-toggle {
|
||||||
display: flex; align-items: center; gap: 6px; padding: 4px 6px;
|
display: flex; align-items: center; gap: 8px; padding: 6px 8px;
|
||||||
border-radius: 4px; cursor: pointer; transition: background 0.15s;
|
border-radius: 4px; cursor: pointer; transition: background 0.15s;
|
||||||
}
|
}
|
||||||
.layer-toggle:hover { background: rgba(255,255,255,0.04); }
|
.layer-toggle:hover { background: rgba(255,255,255,0.04); }
|
||||||
.layer-toggle input[type="checkbox"] {
|
.layer-toggle input[type="checkbox"] {
|
||||||
accent-color: var(--accent); width: 12px; height: 12px; cursor: pointer; flex-shrink: 0;
|
accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.layer-dot {
|
.layer-dot {
|
||||||
width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
|
width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.dot-flights { background: var(--accent); }
|
.dot-flights { background: var(--accent); }
|
||||||
.dot-ships { background: #4499ff; }
|
.dot-ships { background: #4499ff; }
|
||||||
@@ -72,22 +72,22 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
.dot-gdelt { background: #ff8800; }
|
.dot-gdelt { background: #ff8800; }
|
||||||
.dot-daynight { background: #8866cc; }
|
.dot-daynight { background: #8866cc; }
|
||||||
.dot-labels { background: #aaaaaa; }
|
.dot-labels { background: #aaaaaa; }
|
||||||
.layer-name { font-size: 11px; color: var(--text); flex: 1; }
|
.layer-name { font-size: 13px; color: var(--text); flex: 1; }
|
||||||
.layer-count { font-size: 10px; color: var(--text-dim); }
|
.layer-count { font-size: 12px; color: var(--text-dim); }
|
||||||
|
|
||||||
.panel-coords {
|
.panel-coords {
|
||||||
font-size: 10px; color: var(--accent); letter-spacing: 0.5px;
|
font-size: 12px; color: var(--accent); letter-spacing: 0.5px;
|
||||||
padding: 6px 0 0; text-align: center;
|
padding: 8px 0 0; text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Bottom Bar === */
|
/* === Bottom Bar === */
|
||||||
#bottom-bar {
|
#bottom-bar {
|
||||||
position: fixed; bottom: 0; left: 0; right: 0; height: 28px; z-index: 100;
|
position: fixed; bottom: 0; left: 0; right: 0; height: 32px; z-index: 100;
|
||||||
display: flex; align-items: center; justify-content: center;
|
display: flex; align-items: center; justify-content: center;
|
||||||
background: var(--bg-panel); border-top: 1px solid var(--border);
|
background: var(--bg-panel); border-top: 1px solid var(--border);
|
||||||
backdrop-filter: blur(8px);
|
backdrop-filter: blur(8px);
|
||||||
}
|
}
|
||||||
.bottom-stats { font-size: 10px; color: var(--text-dim); letter-spacing: 1px; }
|
.bottom-stats { font-size: 12px; color: var(--text-dim); letter-spacing: 1px; }
|
||||||
|
|
||||||
/* === Cesium InfoBox Override === */
|
/* === Cesium InfoBox Override === */
|
||||||
.cesium-infoBox { background: var(--bg-panel) !important; border: 1px solid var(--border) !important; }
|
.cesium-infoBox { background: var(--bg-panel) !important; border: 1px solid var(--border) !important; }
|
||||||
@@ -103,7 +103,8 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
.cesium-infoBox-title {
|
.cesium-infoBox-title {
|
||||||
color: var(--accent) !important;
|
color: var(--accent) !important;
|
||||||
font-family: var(--font-mono) !important;
|
font-family: var(--font-mono) !important;
|
||||||
font-size: 12px !important;
|
font-size: 14px !important;
|
||||||
|
padding: 8px 12px !important;
|
||||||
background: rgba(0,255,136,0.08) !important;
|
background: rgba(0,255,136,0.08) !important;
|
||||||
}
|
}
|
||||||
.cesium-infoBox-iframe {
|
.cesium-infoBox-iframe {
|
||||||
@@ -158,9 +159,9 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
|
|
||||||
/* === Visual Mode Buttons === */
|
/* === Visual Mode Buttons === */
|
||||||
.vmode-btn {
|
.vmode-btn {
|
||||||
padding: 4px 8px;
|
padding: 6px 10px;
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
font-size: 9px;
|
font-size: 11px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
background: rgba(255,255,255,0.05);
|
background: rgba(255,255,255,0.05);
|
||||||
@@ -261,9 +262,9 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
/* === Rechte Sidebar === */
|
/* === Rechte Sidebar === */
|
||||||
.sidebar-right {
|
.sidebar-right {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 44px;
|
top: 48px;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 28px;
|
bottom: 32px;
|
||||||
width: 280px;
|
width: 280px;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -350,7 +351,7 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.sb-title {
|
.sb-title {
|
||||||
font-size: 10px;
|
font-size: 12px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@@ -358,7 +359,7 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
.sb-badge {
|
.sb-badge {
|
||||||
font-size: 9px;
|
font-size: 11px;
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
background: rgba(0,255,136,0.1);
|
background: rgba(0,255,136,0.1);
|
||||||
padding: 1px 6px;
|
padding: 1px 6px;
|
||||||
@@ -387,14 +388,14 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
}
|
}
|
||||||
.sb-item-text { min-width: 0; flex: 1; }
|
.sb-item-text { min-width: 0; flex: 1; }
|
||||||
.sb-item-name {
|
.sb-item-name {
|
||||||
font-size: 11px;
|
font-size: 13px;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
.sb-item-sub {
|
.sb-item-sub {
|
||||||
font-size: 9px;
|
font-size: 11px;
|
||||||
color: var(--text-dim);
|
color: var(--text-dim);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -422,8 +423,8 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
font-size: 11px;
|
font-size: 13px;
|
||||||
padding: 4px 8px;
|
padding: 6px 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
outline: none;
|
outline: none;
|
||||||
@@ -434,21 +435,23 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === InfoBox zentriert oben === */
|
/* === InfoBox: Links neben dem Layer-Panel === */
|
||||||
.cesium-viewer-infoBoxContainer {
|
.cesium-viewer-infoBoxContainer {
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
top: 44px !important;
|
top: 52px !important;
|
||||||
|
left: 254px !important;
|
||||||
right: auto !important;
|
right: auto !important;
|
||||||
left: 50% !important;
|
transform: none !important;
|
||||||
transform: translateX(-50%) !important;
|
max-width: 420px !important;
|
||||||
max-width: 500px !important;
|
width: 420px !important;
|
||||||
width: 90% !important;
|
max-height: 60vh !important;
|
||||||
max-height: 50vh !important;
|
|
||||||
z-index: 150 !important;
|
z-index: 150 !important;
|
||||||
}
|
}
|
||||||
.cesium-infoBox {
|
.cesium-infoBox {
|
||||||
max-height: 50vh !important;
|
max-height: 60vh !important;
|
||||||
overflow-y: auto !important;
|
overflow-y: auto !important;
|
||||||
|
border-radius: 8px !important;
|
||||||
|
box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -459,8 +462,8 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
/* === Search Bar === */
|
/* === Search Bar === */
|
||||||
.header-search { position: relative; }
|
.header-search { position: relative; }
|
||||||
.globe-search {
|
.globe-search {
|
||||||
width: 180px;
|
width: 200px;
|
||||||
padding: 4px 10px;
|
padding: 6px 12px;
|
||||||
background: rgba(255,255,255,0.05);
|
background: rgba(255,255,255,0.05);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
@@ -470,7 +473,7 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
outline: none;
|
outline: none;
|
||||||
transition: width 0.3s, border-color 0.2s;
|
transition: width 0.3s, border-color 0.2s;
|
||||||
}
|
}
|
||||||
.globe-search:focus { width: 260px; border-color: var(--accent); }
|
.globe-search:focus { width: 300px; border-color: var(--accent); }
|
||||||
.globe-search::placeholder { color: var(--text-dim); }
|
.globe-search::placeholder { color: var(--text-dim); }
|
||||||
.search-results {
|
.search-results {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -497,8 +500,8 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
/* === City Quick-Links === */
|
/* === City Quick-Links === */
|
||||||
.city-links {
|
.city-links {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 44px;
|
top: 48px;
|
||||||
left: 220px;
|
left: 254px;
|
||||||
right: 290px;
|
right: 290px;
|
||||||
z-index: 90;
|
z-index: 90;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -557,13 +560,13 @@ html, body { height: 100%; overflow: hidden; background: var(--bg-primary); colo
|
|||||||
/* === Imagery Selector === */
|
/* === Imagery Selector === */
|
||||||
.imagery-select {
|
.imagery-select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 4px 6px;
|
padding: 6px 8px;
|
||||||
background: rgba(255,255,255,0.05);
|
background: rgba(255,255,255,0.05);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
font-size: 10px;
|
font-size: 12px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ const DisastersLayer = {
|
|||||||
name: icon.label + ': ' + (evt.title || '?'),
|
name: icon.label + ': ' + (evt.title || '?'),
|
||||||
position: Cesium.Cartesian3.fromDegrees(coords[0], coords[1], 0),
|
position: Cesium.Cartesian3.fromDegrees(coords[0], coords[1], 0),
|
||||||
point: {
|
point: {
|
||||||
pixelSize: 8,
|
pixelSize: 10,
|
||||||
color: Cesium.Color.fromCssColorString(icon.color),
|
color: Cesium.Color.fromCssColorString(icon.color),
|
||||||
outlineColor: Cesium.Color.fromCssColorString(icon.color).withAlpha(0.4),
|
outlineColor: Cesium.Color.fromCssColorString(icon.color).withAlpha(0.4),
|
||||||
outlineWidth: 3,
|
outlineWidth: 3,
|
||||||
@@ -160,7 +160,7 @@ const DisastersLayer = {
|
|||||||
name: 'Erdbeben M' + mag.toFixed(1) + ' ' + (p.place || ''),
|
name: 'Erdbeben M' + mag.toFixed(1) + ' ' + (p.place || ''),
|
||||||
position: Cesium.Cartesian3.fromDegrees(c[0], c[1], 0),
|
position: Cesium.Cartesian3.fromDegrees(c[0], c[1], 0),
|
||||||
point: {
|
point: {
|
||||||
pixelSize: Math.max(mag * 2.5, 4),
|
pixelSize: Math.max(mag * 3, 6),
|
||||||
color: Cesium.Color.fromCssColorString(color),
|
color: Cesium.Color.fromCssColorString(color),
|
||||||
outlineColor: Cesium.Color.fromCssColorString(color).withAlpha(0.4),
|
outlineColor: Cesium.Color.fromCssColorString(color).withAlpha(0.4),
|
||||||
outlineWidth: 2,
|
outlineWidth: 2,
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ const FlightsLayer = {
|
|||||||
var c = clusters[keys[j]];
|
var c = clusters[keys[j]];
|
||||||
var avgLat = c.sumLat / c.count;
|
var avgLat = c.sumLat / c.count;
|
||||||
var avgLon = c.sumLon / c.count;
|
var avgLon = c.sumLon / c.count;
|
||||||
var size = Math.min(Math.max(Math.sqrt(c.count) * 1.5, 4), 20);
|
var size = Math.min(Math.max(Math.sqrt(c.count) * 2, 6), 24);
|
||||||
|
|
||||||
this._points.add({
|
this._points.add({
|
||||||
position: Cesium.Cartesian3.fromDegrees(avgLon, avgLat, 50000),
|
position: Cesium.Cartesian3.fromDegrees(avgLon, avgLat, 50000),
|
||||||
@@ -114,7 +114,7 @@ const FlightsLayer = {
|
|||||||
this._labels.add({
|
this._labels.add({
|
||||||
position: Cesium.Cartesian3.fromDegrees(avgLon, avgLat, 50000),
|
position: Cesium.Cartesian3.fromDegrees(avgLon, avgLat, 50000),
|
||||||
text: c.count.toString(),
|
text: c.count.toString(),
|
||||||
font: '11px sans-serif',
|
font: '13px sans-serif bold',
|
||||||
fillColor: Cesium.Color.WHITE,
|
fillColor: Cesium.Color.WHITE,
|
||||||
outlineColor: Cesium.Color.BLACK,
|
outlineColor: Cesium.Color.BLACK,
|
||||||
outlineWidth: 3,
|
outlineWidth: 3,
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const GdeltLayer = {
|
|||||||
self._dataSource.entities.add({
|
self._dataSource.entities.add({
|
||||||
position: Cesium.Cartesian3.fromDegrees(c[0], c[1]),
|
position: Cesium.Cartesian3.fromDegrees(c[0], c[1]),
|
||||||
point: {
|
point: {
|
||||||
pixelSize: 5,
|
pixelSize: 7,
|
||||||
color: Cesium.Color.fromCssColorString('#ff8800'),
|
color: Cesium.Color.fromCssColorString('#ff8800'),
|
||||||
outlineColor: Cesium.Color.fromCssColorString('#663300'),
|
outlineColor: Cesium.Color.fromCssColorString('#663300'),
|
||||||
outlineWidth: 1,
|
outlineWidth: 1,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const InfraLayer = {
|
|||||||
.then(function(data) {
|
.then(function(data) {
|
||||||
var yellow = Cesium.Color.fromCssColorString('#ffdd00');
|
var yellow = Cesium.Color.fromCssColorString('#ffdd00');
|
||||||
(data.plants || []).forEach(function(p) {
|
(data.plants || []).forEach(function(p) {
|
||||||
self._points.add({ position: Cesium.Cartesian3.fromDegrees(p.lon, p.lat, 0), pixelSize: 5, color: yellow,
|
self._points.add({ position: Cesium.Cartesian3.fromDegrees(p.lon, p.lat, 0), pixelSize: 7, color: yellow,
|
||||||
outlineColor: Cesium.Color.fromCssColorString('#ff8800'), outlineWidth: 2 });
|
outlineColor: Cesium.Color.fromCssColorString('#ff8800'), outlineWidth: 2 });
|
||||||
self._labels.add({
|
self._labels.add({
|
||||||
position: Cesium.Cartesian3.fromDegrees(p.lon, p.lat, 0), text: p.name,
|
position: Cesium.Cartesian3.fromDegrees(p.lon, p.lat, 0), text: p.name,
|
||||||
@@ -47,7 +47,7 @@ const InfraLayer = {
|
|||||||
.then(function(data) {
|
.then(function(data) {
|
||||||
var red = Cesium.Color.fromCssColorString('#ff4444');
|
var red = Cesium.Color.fromCssColorString('#ff4444');
|
||||||
(data.bases || []).forEach(function(b) {
|
(data.bases || []).forEach(function(b) {
|
||||||
self._points.add({ position: Cesium.Cartesian3.fromDegrees(b.lon, b.lat, 0), pixelSize: 4, color: red,
|
self._points.add({ position: Cesium.Cartesian3.fromDegrees(b.lon, b.lat, 0), pixelSize: 6, color: red,
|
||||||
outlineColor: Cesium.Color.fromCssColorString('#aa0000'), outlineWidth: 1 });
|
outlineColor: Cesium.Color.fromCssColorString('#aa0000'), outlineWidth: 1 });
|
||||||
self._labels.add({
|
self._labels.add({
|
||||||
position: Cesium.Cartesian3.fromDegrees(b.lon, b.lat, 0), text: b.name,
|
position: Cesium.Cartesian3.fromDegrees(b.lon, b.lat, 0), text: b.name,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const ISSLayer = {
|
|||||||
this._entity = viewer.entities.add({
|
this._entity = viewer.entities.add({
|
||||||
name: 'ISS - International Space Station',
|
name: 'ISS - International Space Station',
|
||||||
position: Cesium.Cartesian3.fromDegrees(0, 0, 420000),
|
position: Cesium.Cartesian3.fromDegrees(0, 0, 420000),
|
||||||
point: { pixelSize: 10, color: Cesium.Color.fromCssColorString('#ff4444'),
|
point: { pixelSize: 14, color: Cesium.Color.fromCssColorString('#ff4444'),
|
||||||
outlineColor: Cesium.Color.WHITE, outlineWidth: 2 },
|
outlineColor: Cesium.Color.WHITE, outlineWidth: 2 },
|
||||||
label: { text: 'ISS', font: '12px monospace bold',
|
label: { text: 'ISS', font: '12px monospace bold',
|
||||||
fillColor: Cesium.Color.fromCssColorString('#ff4444'),
|
fillColor: Cesium.Color.fromCssColorString('#ff4444'),
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ const MilitaryLayer = {
|
|||||||
for (var i = 0; i < this._data.length; i++) {
|
for (var i = 0; i < this._data.length; i++) {
|
||||||
var a = this._data[i];
|
var a = this._data[i];
|
||||||
var altM = (a.alt_baro || 10000) * 0.3048;
|
var altM = (a.alt_baro || 10000) * 0.3048;
|
||||||
this._points.add({ position: Cesium.Cartesian3.fromDegrees(a.lon, a.lat, altM), pixelSize: 4, color: red });
|
this._points.add({ position: Cesium.Cartesian3.fromDegrees(a.lon, a.lat, altM), pixelSize: 6, color: red });
|
||||||
var cs = a.flight || a.reg || '';
|
var cs = a.flight || a.reg || '';
|
||||||
if (cs) {
|
if (cs) {
|
||||||
this._labels.add({
|
this._labels.add({
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ const MonitorLayer = {
|
|||||||
var p = f.properties;
|
var p = f.properties;
|
||||||
var color = colors[p.category] || colors.mentioned;
|
var color = colors[p.category] || colors.mentioned;
|
||||||
var count = p.article_count || 1;
|
var count = p.article_count || 1;
|
||||||
var size = Math.min(Math.max(Math.sqrt(count) * 2.5, 4), 14);
|
var size = Math.min(Math.max(Math.sqrt(count) * 3, 6), 18);
|
||||||
this._points.add({
|
this._points.add({
|
||||||
position: Cesium.Cartesian3.fromDegrees(coords[0], coords[1], 1000),
|
position: Cesium.Cartesian3.fromDegrees(coords[0], coords[1], 1000),
|
||||||
pixelSize: size, color: color,
|
pixelSize: size, color: color,
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ const ShipsLayer = {
|
|||||||
count++;
|
count++;
|
||||||
var colorStr = this._getColor(cat);
|
var colorStr = this._getColor(cat);
|
||||||
var color = Cesium.Color.fromCssColorString(colorStr);
|
var color = Cesium.Color.fromCssColorString(colorStr);
|
||||||
var r = level === 'close' ? 3 : level === 'medium' ? 2.5 : 2;
|
var r = level === 'close' ? 5 : level === 'medium' ? 4 : 3;
|
||||||
|
|
||||||
this._points.add({
|
this._points.add({
|
||||||
position: Cesium.Cartesian3.fromDegrees(s.lon, s.lat, 0),
|
position: Cesium.Cartesian3.fromDegrees(s.lon, s.lat, 0),
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren