| | |
| | | |
| | | _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); |
| | |
| | | sh.moveToBack(); |
| | | } |
| | | |
| | | |
| | | |
| | | return this.inherited(arguments); |
| | | }, |
| | | |
| | |
| | | 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); |