drone_view 3.0.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drone_view",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "main": "dist/droneView.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
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: "testing1", clamp: false },
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: "testing3", clamp: false },
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
- // projectCenter = viewer.getCenter();
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
- // viewer.addLayer("line", "line-layer", line, {
482
- // onClick: function (e) {
483
- // console.log(e);
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, {