吉安感知网项目-前端
罗广辉
2026-01-31 4cd17f4e640ae22ec64eb170468d1154d9a1eff5
packages/utils/map/MapTooltip.js
File was renamed from applications/drone-command/src/utils/cesium/shapeTools/Tooltip.js
@@ -1,4 +1,4 @@
export class MapTooltip {
export class MapTooltip {
   constructor(viewer, options = {}) {
      this.viewer = viewer
      this.options = options
@@ -40,14 +40,7 @@
      if (!this.tooltipEl || !position) return
      const width = this.container?.clientWidth ?? 0
      const height = this.container?.clientHeight ?? 0
      if (
         !width ||
         !height ||
         position.x < 0 ||
         position.y < 0 ||
         position.x > width ||
         position.y > height
      ) {
      if (!width || !height || position.x < 0 || position.y < 0 || position.x > width || position.y > height) {
         this.hide()
         return
      }