南昌市物联网技防平台-前端
liuyg
2021-05-07 fdd4495f56849e782e1d7ae5a37c6230f2ab19d5
public/map/widgets/supervisoryMap/FlareClusterLayer_v3.js
@@ -736,7 +736,7 @@
    _graphicDraw: function (e) {
      var g = e.graphic;
      if (g.attributes.isCluster) {
        //create the cluster graphics if this is a cluster being drawn
        var cl = this._getClusterFromGraphic(g);
@@ -749,7 +749,7 @@
        sh.moveToBack();
      }
      return this.inherited(arguments);
    },
@@ -1005,24 +1005,33 @@
      this.singles.push(single);
      delete single.graphic;
      var symbol;
      if(single.tenant_id == undefined){//如果不是业主
        if (single.state != '') {
      if (single.tenant_id == undefined) {//如果不是业主
        if (single.dtype == 3) {
          symbol = new esri.symbol.PictureMarkerSymbol("./images/by-jingbao.png", 40, 40);
        } else {
          if (single.jtype == 1) {
            symbol = new esri.symbol.PictureMarkerSymbol("./images/selfbaojin2.gif", 80, 80);
          } else {
            if (single.onlineStatus == 1) {
              symbol = new esri.symbol.PictureMarkerSymbol("./images/zx-jingbao.png", 40, 40);
            } else {
              symbol = new esri.symbol.PictureMarkerSymbol("./images/dx-jingbao.png", 40, 40);
            }
          }
        } else if (single.dtype == 2) {
          symbol = new esri.symbol.PictureMarkerSymbol("./images/selfbaojin2.gif", 80, 80);
        } else if (single.dtype == 1) {
          symbol = new esri.symbol.PictureMarkerSymbol("./images/zx-jingbao.png", 40, 40);
        } else if (single.dtype == 0) {
          symbol = new esri.symbol.PictureMarkerSymbol("./images/dx-jingbao.png", 40, 40);
        }
      }else{//是业主
        // if (single.state != '') {
        //   symbol = new esri.symbol.PictureMarkerSymbol("./images/by-jingbao.png", 40, 40);
        // } else {
        //   if (single.jtype == 1) {
        //     symbol = new esri.symbol.PictureMarkerSymbol("./images/selfbaojin2.gif", 80, 80);
        //   } else {
        //     if (single.onlineStatus == 1) {
        //       symbol = new esri.symbol.PictureMarkerSymbol("./images/zx-jingbao.png", 40, 40);
        //     } else {
        //       symbol = new esri.symbol.PictureMarkerSymbol("./images/dx-jingbao.png", 40, 40);
        //     }
        //   }
        // }
      } else {//是业主
        symbol = new esri.symbol.PictureMarkerSymbol("./images/Yz.png", 40, 40);
      }
      var point = new Point(single[this.xPropertyName], single[this.yPropertyName], this.spatialRef);