drone_view 3.0.5 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drone_view",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "main": "dist/droneView.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
package/public/index.html CHANGED
@@ -82,10 +82,7 @@
82
82
  <button class="height height-minus"> Down </button>
83
83
  </div>
84
84
  </div>
85
- <div>
86
- <button id="toggleglobe"> toggle Globe </button>
87
- </div>
88
- </div>
85
+
89
86
  <div id="origin" class="drawContainer position">
90
87
  Origin
91
88
  <div>
@@ -130,17 +127,17 @@
130
127
  center: center,
131
128
  mapElementId: "cesiumContainer",
132
129
  token:
133
- "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI1NzI5N2M3ZS1mNDBkLTQ1NTktYjU5MC1mMDlhNzY0Y2Q0YmEiLCJpZCI6MTE1MTUxLCJpYXQiOjE3MTQ2NjIzOTF9.Z7m91kd9g-eMfj0ST4MOE_ETlBbUM6LK5TTEDxGq7Es",
130
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIwYjkyYzYzYS0zNmVhLTRiODEtODc2Ny1hMmE3ZGNmMTg3ZTYiLCJpZCI6MTE1MTUxLCJpYXQiOjE2Njg2NTQzNTd9.mgXUdnkYY9Uf8e_EIzePMNZ8oBnfDEiy1D2KWtT1uJE",
134
131
  });
135
132
 
136
133
  viewer.init();
137
134
  let polygon = [
138
135
  {
139
136
  points: [
140
- [6.16305874919769, 48.60817695763424, 0],
141
- [6.163108478013089, 48.60819720521929, 0],
142
- [6.163111072002854, 48.60819977147443, 0],
143
- [6.163057488073359, 48.60818639169656, 0]
137
+ [6.16305874919769, 48.60817695763424, 6.635122619864525],
138
+ [6.163108478013089, 48.60819720521929, 6.377047613661926],
139
+ [6.163111072002854, 48.60819977147443, 2.9069097277197327],
140
+ [6.163057488073359, 48.60818639169656, 2.5274844772730582]
144
141
  ],
145
142
  properties: { id: "as1", color: "#00ff00", label: "testing2", clamp: false },
146
143
  },
@@ -152,7 +149,7 @@
152
149
  [6.1628706023275495, 48.6080989685312, 2.813801646136673],
153
150
  [6.162842533195286, 48.608087438688024, 3.882614197318671]
154
151
  ],
155
- properties: { id: "as1", color: "#00ff00", label: "testing1", clamp: false },
152
+ properties: { id: "as1", color: "#00ff00", label: "testing2", clamp: false },
156
153
  },
157
154
  {
158
155
  points: [
@@ -162,7 +159,7 @@
162
159
  [6.163004594883557, 48.60819004647759, 6.73241478412424],
163
160
  [6.1629555793978605, 48.60819920247807, 6.799143351030009]
164
161
  ],
165
- properties: { id: "as1", color: "#00ff00", label: "testing3", clamp: false },
162
+ properties: { id: "as1", color: "#00ff00", label: "testing2", clamp: false },
166
163
  },
167
164
  ];
168
165
 
@@ -413,9 +410,7 @@
413
410
  projectCenter.angle
414
411
  );
415
412
  });
416
- document.getElementById("toggleglobe").addEventListener("click",()=>{
417
- viewer.toggleGlobe()
418
- })
413
+
419
414
  document.getElementById("pointer").addEventListener("click", () => {
420
415
  if (id1) {
421
416
  console.log(id1);
@@ -486,15 +481,14 @@ document.getElementById("toggleglobe").addEventListener("click",()=>{
486
481
  cust(e.features[0].properties.id);
487
482
  viewer.removeLayer("polygon", "polygon-layer");
488
483
  },
489
- setBounds : false
490
484
  });
491
485
 
492
486
  // Load Height Graph
493
- // viewer.addLayer("line", "line-layer", line, {
494
- // onClick: function (e) {
495
- // console.log(e);
496
- // },
497
- // });
487
+ viewer.addLayer("line", "line-layer", line, {
488
+ onClick: function (e) {
489
+ console.log(e);
490
+ },
491
+ });
498
492
 
499
493
  // Load Tag
500
494
  viewer.addLayer("marker3d", "marker-layer", points, {