drone_view 3.0.4 → 3.0.5
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/dist/droneView.js +1 -1
- package/package.json +1 -1
- package/public/index.html +20 -14
package/package.json
CHANGED
package/public/index.html
CHANGED
@@ -82,7 +82,10 @@
|
|
82
82
|
<button class="height height-minus"> Down </button>
|
83
83
|
</div>
|
84
84
|
</div>
|
85
|
-
|
85
|
+
<div>
|
86
|
+
<button id="toggleglobe"> toggle Globe </button>
|
87
|
+
</div>
|
88
|
+
</div>
|
86
89
|
<div id="origin" class="drawContainer position">
|
87
90
|
Origin
|
88
91
|
<div>
|
@@ -127,17 +130,17 @@
|
|
127
130
|
center: center,
|
128
131
|
mapElementId: "cesiumContainer",
|
129
132
|
token:
|
130
|
-
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
133
|
+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI1NzI5N2M3ZS1mNDBkLTQ1NTktYjU5MC1mMDlhNzY0Y2Q0YmEiLCJpZCI6MTE1MTUxLCJpYXQiOjE3MTQ2NjIzOTF9.Z7m91kd9g-eMfj0ST4MOE_ETlBbUM6LK5TTEDxGq7Es",
|
131
134
|
});
|
132
135
|
|
133
136
|
viewer.init();
|
134
137
|
let polygon = [
|
135
138
|
{
|
136
139
|
points: [
|
137
|
-
[6.16305874919769, 48.60817695763424,
|
138
|
-
[6.163108478013089, 48.60819720521929,
|
139
|
-
[6.163111072002854, 48.60819977147443,
|
140
|
-
[6.163057488073359, 48.60818639169656,
|
140
|
+
[6.16305874919769, 48.60817695763424, 0],
|
141
|
+
[6.163108478013089, 48.60819720521929, 0],
|
142
|
+
[6.163111072002854, 48.60819977147443, 0],
|
143
|
+
[6.163057488073359, 48.60818639169656, 0]
|
141
144
|
],
|
142
145
|
properties: { id: "as1", color: "#00ff00", label: "testing2", clamp: false },
|
143
146
|
},
|
@@ -149,7 +152,7 @@
|
|
149
152
|
[6.1628706023275495, 48.6080989685312, 2.813801646136673],
|
150
153
|
[6.162842533195286, 48.608087438688024, 3.882614197318671]
|
151
154
|
],
|
152
|
-
properties: { id: "as1", color: "#00ff00", label: "
|
155
|
+
properties: { id: "as1", color: "#00ff00", label: "testing1", clamp: false },
|
153
156
|
},
|
154
157
|
{
|
155
158
|
points: [
|
@@ -159,7 +162,7 @@
|
|
159
162
|
[6.163004594883557, 48.60819004647759, 6.73241478412424],
|
160
163
|
[6.1629555793978605, 48.60819920247807, 6.799143351030009]
|
161
164
|
],
|
162
|
-
properties: { id: "as1", color: "#00ff00", label: "
|
165
|
+
properties: { id: "as1", color: "#00ff00", label: "testing3", clamp: false },
|
163
166
|
},
|
164
167
|
];
|
165
168
|
|
@@ -410,7 +413,9 @@
|
|
410
413
|
projectCenter.angle
|
411
414
|
);
|
412
415
|
});
|
413
|
-
|
416
|
+
document.getElementById("toggleglobe").addEventListener("click",()=>{
|
417
|
+
viewer.toggleGlobe()
|
418
|
+
})
|
414
419
|
document.getElementById("pointer").addEventListener("click", () => {
|
415
420
|
if (id1) {
|
416
421
|
console.log(id1);
|
@@ -481,14 +486,15 @@
|
|
481
486
|
cust(e.features[0].properties.id);
|
482
487
|
viewer.removeLayer("polygon", "polygon-layer");
|
483
488
|
},
|
489
|
+
setBounds : false
|
484
490
|
});
|
485
491
|
|
486
492
|
// Load Height Graph
|
487
|
-
viewer.addLayer("line", "line-layer", line, {
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
});
|
493
|
+
// viewer.addLayer("line", "line-layer", line, {
|
494
|
+
// onClick: function (e) {
|
495
|
+
// console.log(e);
|
496
|
+
// },
|
497
|
+
// });
|
492
498
|
|
493
499
|
// Load Tag
|
494
500
|
viewer.addLayer("marker3d", "marker-layer", points, {
|