drone_view 2.3.9 → 3.0.1
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 +15 -8
package/package.json
CHANGED
package/public/index.html
CHANGED
@@ -60,6 +60,9 @@
|
|
60
60
|
<div id="lineString" class="drawContainer lineString">
|
61
61
|
<i class="fa-solid fa-chart-line drawIcon"></i>
|
62
62
|
</div>
|
63
|
+
<div id="measurement" class="drawContainer lineString">
|
64
|
+
Measurement
|
65
|
+
</div>
|
63
66
|
<div id="layers" class="drawContainer layers">
|
64
67
|
Load Drawings
|
65
68
|
</div>
|
@@ -146,7 +149,7 @@
|
|
146
149
|
[6.1628706023275495, 48.6080989685312, 2.813801646136673],
|
147
150
|
[6.162842533195286, 48.608087438688024, 3.882614197318671]
|
148
151
|
],
|
149
|
-
properties: { id: "as1", color: "#00ff00", label: "
|
152
|
+
properties: { id: "as1", color: "#00ff00", label: "testing2", clamp: false },
|
150
153
|
},
|
151
154
|
{
|
152
155
|
points: [
|
@@ -156,7 +159,7 @@
|
|
156
159
|
[6.163004594883557, 48.60819004647759, 6.73241478412424],
|
157
160
|
[6.1629555793978605, 48.60819920247807, 6.799143351030009]
|
158
161
|
],
|
159
|
-
properties: { id: "as1", color: "#00ff00", label: "
|
162
|
+
properties: { id: "as1", color: "#00ff00", label: "testing2", clamp: false },
|
160
163
|
},
|
161
164
|
];
|
162
165
|
|
@@ -452,7 +455,11 @@
|
|
452
455
|
});
|
453
456
|
|
454
457
|
document.getElementById("lineString").addEventListener("click", () => {
|
455
|
-
viewer.enableDrawing({ type: "LineString", clamp: true });
|
458
|
+
viewer.enableDrawing({ type: "LineString", clamp: false, measurement: true });
|
459
|
+
});
|
460
|
+
|
461
|
+
document.getElementById("measurement").addEventListener("click", () => {
|
462
|
+
viewer.enableDrawing({ type: "LineString", clamp: false, measurement: false });
|
456
463
|
});
|
457
464
|
|
458
465
|
document.getElementById("cross").addEventListener("click", () => {
|
@@ -477,11 +484,11 @@
|
|
477
484
|
});
|
478
485
|
|
479
486
|
// Load Height Graph
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
487
|
+
viewer.addLayer("line", "line-layer", line, {
|
488
|
+
onClick: function (e) {
|
489
|
+
console.log(e);
|
490
|
+
},
|
491
|
+
});
|
485
492
|
|
486
493
|
// Load Tag
|
487
494
|
viewer.addLayer("marker3d", "marker-layer", points, {
|