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]);
|
var monitorHtml = self._buildMonitorHtml(coords[1], coords[0]);
|
||||||
|
|
||||||
self._dataSource.entities.add({
|
self._dataSource.entities.add({
|
||||||
|
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: 8,
|
||||||
@@ -156,6 +157,7 @@ const DisastersLayer = {
|
|||||||
var monitorHtml = self._buildMonitorHtml(c[1], c[0]);
|
var monitorHtml = self._buildMonitorHtml(c[1], c[0]);
|
||||||
|
|
||||||
self._dataSource.entities.add({
|
self._dataSource.entities.add({
|
||||||
|
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 * 2.5, 4),
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren