|
1 |
| -<!DOCTYPE html> |
| 1 | +<!doctype html> |
2 | 2 | <html lang="en">
|
3 | 3 | <head>
|
4 | 4 | <meta charset="utf-8" />
|
|
21 | 21 | ></script>
|
22 | 22 | <script type="module" src="../load-cesium-es6.js"></script>
|
23 | 23 | </head>
|
24 |
| - <body |
25 |
| - class="sandcastle-loading" |
26 |
| - data-sandcastle-bucket="bucket-requirejs.html" |
27 |
| - > |
| 24 | + <body class="sandcastle-loading" data-sandcastle-bucket="bucket-requirejs.html"> |
28 | 25 | <style>
|
29 | 26 | @import url(../templates/bucket.css);
|
30 | 27 | </style>
|
|
45 | 42 |
|
46 | 43 | const startTime = Cesium.JulianDate.fromIso8601("2012-03-15T10:00:00Z");
|
47 | 44 |
|
48 |
| - const satelliteStopTime = Cesium.JulianDate.fromIso8601( |
49 |
| - "2012-03-16T10:00:00Z" |
50 |
| - ); |
| 45 | + const satelliteStopTime = Cesium.JulianDate.fromIso8601("2012-03-16T10:00:00Z"); |
51 | 46 |
|
52 |
| - const droneStopTime = Cesium.JulianDate.fromIso8601( |
53 |
| - "2012-03-15T10:00:30Z" |
54 |
| - ); |
| 47 | + const droneStopTime = Cesium.JulianDate.fromIso8601("2012-03-15T10:00:30Z"); |
55 | 48 |
|
56 | 49 | const dataSource = await viewer.dataSources.add(
|
57 |
| - Cesium.CzmlDataSource.load("../../SampleData/tracking.czml") |
| 50 | + Cesium.CzmlDataSource.load("../../SampleData/tracking.czml"), |
58 | 51 | );
|
59 | 52 |
|
60 | 53 | const satellite = dataSource.entities.getById("Satellite/ISS");
|
|
83 | 76 | {
|
84 | 77 | text: "Tracking reference frame: Auto-detect",
|
85 | 78 | onselect: function () {
|
86 |
| - satellite.trackingReferenceFrame = |
87 |
| - Cesium.TrackingReferenceFrame.AUTODETECT; |
88 |
| - drone.trackingReferenceFrame = |
89 |
| - Cesium.TrackingReferenceFrame.AUTODETECT; |
| 79 | + satellite.trackingReferenceFrame = Cesium.TrackingReferenceFrame.AUTODETECT; |
| 80 | + drone.trackingReferenceFrame = Cesium.TrackingReferenceFrame.AUTODETECT; |
90 | 81 | },
|
91 | 82 | },
|
92 | 83 | {
|
93 | 84 | text: "Tracking reference frame: Inertial",
|
94 | 85 | onselect: function () {
|
95 |
| - satellite.trackingReferenceFrame = |
96 |
| - Cesium.TrackingReferenceFrame.INERTIAL; |
97 |
| - drone.trackingReferenceFrame = |
98 |
| - Cesium.TrackingReferenceFrame.INERTIAL; |
| 86 | + satellite.trackingReferenceFrame = Cesium.TrackingReferenceFrame.INERTIAL; |
| 87 | + drone.trackingReferenceFrame = Cesium.TrackingReferenceFrame.INERTIAL; |
99 | 88 | },
|
100 | 89 | },
|
101 | 90 | {
|
102 | 91 | text: "Tracking reference frame: Velocity",
|
103 | 92 | onselect: function () {
|
104 |
| - satellite.trackingReferenceFrame = |
105 |
| - Cesium.TrackingReferenceFrame.VELOCITY; |
106 |
| - drone.trackingReferenceFrame = |
107 |
| - Cesium.TrackingReferenceFrame.VELOCITY; |
| 93 | + satellite.trackingReferenceFrame = Cesium.TrackingReferenceFrame.VELOCITY; |
| 94 | + drone.trackingReferenceFrame = Cesium.TrackingReferenceFrame.VELOCITY; |
108 | 95 | },
|
109 | 96 | },
|
110 | 97 | ]);
|
|
0 commit comments