riku
2024-07-18 d5eebdbae1beac85555a05a2e0b1c858a62893c7
src/utils/map/dialog.js
@@ -33,7 +33,8 @@
      isCustom: true, //使用自定义窗体
      content: this.createWindowContent(m),
      // eslint-disable-next-line no-undef
      offset: new AMap.Pixel(16, -45)
      offset: new AMap.Pixel(16, -45),
      autoMove: false
    });
    return m.window;
  },
@@ -104,7 +105,7 @@
        n = 0;
      }
      var v = f.factorData.toFixed(n);
      var unit = factorUnit[f.factorName];
      var unit = factorUnit[f.factorName].unit;
      if (f.factorName == 'CO') {
        unit = 'μg/m³';
      }
@@ -166,8 +167,9 @@
    var titleD = document.createElement('div');
    var closeX = document.createElement('i');
    titleD.innerHTML = title;
    closeX.className = 'fa fa-times';
    closeX.className = 'text-close';
    $(closeX).attr('aria-hidden', 'true');
    $(closeX).text('X');
    closeX.onclick = function () {
      marker.close();
      marker.window.close();