maplibre-gl-lidar 0.3.0 → 0.3.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/README.md CHANGED
@@ -28,6 +28,16 @@ Try the [live demo](https://opengeos.org/maplibre-gl-lidar).
28
28
 
29
29
  ![](https://github.com/user-attachments/assets/db03b60d-918d-438d-9f3f-1f922b1a0a2b)
30
30
 
31
+ ## Online Viewer
32
+
33
+ Use the [Online Viewer](https://opengeos.org/maplibre-gl-lidar/viewer/) to load and visualize any COPC point cloud by entering a URL. You can also use URL parameters for direct linking:
34
+
35
+ ```
36
+ https://opengeos.org/maplibre-gl-lidar/viewer/?url=https://s3.amazonaws.com/hobu-lidar/autzen-classified.copc.laz
37
+ ```
38
+
39
+ This allows you to share links that automatically load specific point clouds.
40
+
31
41
  ## Installation
32
42
 
33
43
  ```bash
@@ -446,6 +456,41 @@ Point clouds are automatically transformed to WGS84 (EPSG:4326) for display on t
446
456
  - Compound coordinate systems (horizontal + vertical)
447
457
  - Automatic unit conversion (feet to meters for elevation)
448
458
 
459
+ ## Docker
460
+
461
+ The examples can be run using Docker. The image is automatically built and published to GitHub Container Registry.
462
+
463
+ ### Pull and Run
464
+
465
+ ```bash
466
+ # Pull the latest image
467
+ docker pull ghcr.io/opengeos/maplibre-gl-lidar:latest
468
+
469
+ # Run the container
470
+ docker run -p 8080:80 ghcr.io/opengeos/maplibre-gl-lidar:latest
471
+ ```
472
+
473
+ Then open http://localhost:8080/maplibre-gl-lidar/ in your browser to view the examples.
474
+
475
+ ### Build Locally
476
+
477
+ ```bash
478
+ # Build the image
479
+ docker build -t maplibre-gl-lidar .
480
+
481
+ # Run the container
482
+ docker run -p 8080:80 maplibre-gl-lidar
483
+ ```
484
+
485
+ ### Available Tags
486
+
487
+ | Tag | Description |
488
+ |-----|-------------|
489
+ | `latest` | Latest release |
490
+ | `x.y.z` | Specific version (e.g., `1.0.0`) |
491
+ | `x.y` | Minor version (e.g., `1.0`) |
492
+
493
+
449
494
  ## Dependencies
450
495
 
451
496
  - [deck.gl](https://deck.gl/) - WebGL visualization layers
@@ -38052,6 +38052,7 @@ class LidarControl {
38052
38052
  * @param info - Picked point information or null if no point
38053
38053
  */
38054
38054
  _handlePointHover(info2) {
38055
+ var _a;
38055
38056
  if (!this._tooltip) return;
38056
38057
  if (info2 && this._state.pickable) {
38057
38058
  let html = `
@@ -38091,8 +38092,11 @@ class LidarControl {
38091
38092
  }
38092
38093
  this._tooltip.innerHTML = html;
38093
38094
  this._tooltip.style.display = "block";
38094
- this._tooltip.style.left = `${info2.x + 15}px`;
38095
- this._tooltip.style.top = `${info2.y + 15}px`;
38095
+ const containerRect = (_a = this._mapContainer) == null ? void 0 : _a.getBoundingClientRect();
38096
+ const offsetX = (containerRect == null ? void 0 : containerRect.left) ?? 0;
38097
+ const offsetY = (containerRect == null ? void 0 : containerRect.top) ?? 0;
38098
+ this._tooltip.style.left = `${info2.x + offsetX + 15}px`;
38099
+ this._tooltip.style.top = `${info2.y + offsetY + 15}px`;
38096
38100
  } else {
38097
38101
  this._tooltip.style.display = "none";
38098
38102
  }
@@ -38431,4 +38435,4 @@ exports.generateId = generateId;
38431
38435
  exports.getClassificationName = getClassificationName;
38432
38436
  exports.getFilename = getFilename;
38433
38437
  exports.throttle = throttle;
38434
- //# sourceMappingURL=LidarLayerAdapter-D8meSn0O.cjs.map
38438
+ //# sourceMappingURL=LidarLayerAdapter-BFhI93Is.cjs.map