drone_view 3.0.0 → 3.0.2
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 +16 -10
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
|
|
@@ -396,8 +399,7 @@
|
|
396
399
|
});
|
397
400
|
|
398
401
|
document.getElementById("getCenter").addEventListener("click", () => {
|
399
|
-
|
400
|
-
viewer.removeLayer("editPolygon", "polygon-edit-layer")
|
402
|
+
projectCenter = viewer.getCenter();
|
401
403
|
});
|
402
404
|
|
403
405
|
document.getElementById("setCenter").addEventListener("click", () => {
|
@@ -453,7 +455,11 @@
|
|
453
455
|
});
|
454
456
|
|
455
457
|
document.getElementById("lineString").addEventListener("click", () => {
|
456
|
-
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 });
|
457
463
|
});
|
458
464
|
|
459
465
|
document.getElementById("cross").addEventListener("click", () => {
|
@@ -478,11 +484,11 @@
|
|
478
484
|
});
|
479
485
|
|
480
486
|
// Load Height Graph
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
487
|
+
viewer.addLayer("line", "line-layer", line, {
|
488
|
+
onClick: function (e) {
|
489
|
+
console.log(e);
|
490
|
+
},
|
491
|
+
});
|
486
492
|
|
487
493
|
// Load Tag
|
488
494
|
viewer.addLayer("marker3d", "marker-layer", points, {
|