Fix: Erdbeben + Katastrophen mit Namen in Sidebar
Alle Entities haben jetzt name-Property: - Erdbeben: "Erdbeben M5.2 bei Tokio" - Waldbraende: "Waldbrand: Moreau River Wildfire" - Stuerme: "Sturm: Tropical Cyclone 28P" Sidebar zeigt sie als einzelne aufklappbare Eintraege.
Dieser Commit ist enthalten in:
@@ -116,6 +116,7 @@ const DisastersLayer = {
|
||||
var monitorHtml = self._buildMonitorHtml(coords[1], coords[0]);
|
||||
|
||||
self._dataSource.entities.add({
|
||||
name: icon.label + ': ' + (evt.title || '?'),
|
||||
position: Cesium.Cartesian3.fromDegrees(coords[0], coords[1], 0),
|
||||
point: {
|
||||
pixelSize: 8,
|
||||
@@ -156,6 +157,7 @@ const DisastersLayer = {
|
||||
var monitorHtml = self._buildMonitorHtml(c[1], c[0]);
|
||||
|
||||
self._dataSource.entities.add({
|
||||
name: 'Erdbeben M' + mag.toFixed(1) + ' ' + (p.place || ''),
|
||||
position: Cesium.Cartesian3.fromDegrees(c[0], c[1], 0),
|
||||
point: {
|
||||
pixelSize: Math.max(mag * 2.5, 4),
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren