maplibre-gl-lidar 0.3.0 → 0.3.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/{LidarLayerAdapter-D8meSn0O.cjs → LidarLayerAdapter-BFhI93Is.cjs} +7 -3
- package/dist/{LidarLayerAdapter-D8meSn0O.cjs.map → LidarLayerAdapter-BFhI93Is.cjs.map} +1 -1
- package/dist/{LidarLayerAdapter-DgkAUokv.js → LidarLayerAdapter-Cefl4jQL.js} +7 -3
- package/dist/{LidarLayerAdapter-DgkAUokv.js.map → LidarLayerAdapter-Cefl4jQL.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +2 -2
- package/dist/types/lib/core/LidarControl.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
38095
|
-
|
|
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-
|
|
38438
|
+
//# sourceMappingURL=LidarLayerAdapter-BFhI93Is.cjs.map
|