| | |
| | | factorType(nValue, oValue) { |
| | | if (nValue != oValue && this.status == 0) { |
| | | Layer.clear(); |
| | | this.draw(); |
| | | this.draw(true); |
| | | // this.drawHighlightPollution(); |
| | | } |
| | | } |
| | |
| | | done(); |
| | | this.draw(); |
| | | }, |
| | | draw() { |
| | | draw(notSetBound) { |
| | | // 刷新图例 |
| | | const factor = this.factorDatas.factor[this.factorType]; |
| | | sector.clearSector(); |
| | | // this.drawRoadLine(factor); |
| | | this.drawRoadMap(factor); |
| | | this.drawMassMarks(factor); |
| | | // 调整地图视角 |
| | | if (!notSetBound) { |
| | | mapUtil.setBound(this.factorDatas.lnglats_GD); |
| | | } |
| | | }, |
| | | // 绘制3D走行路线图 |
| | | drawRoadMap(e) { |
| | |
| | | marks.drawMassMarks(this.factorDatas, e, (index) => { |
| | | this.handelIndexChange(index); |
| | | }); |
| | | // 调整地图视角 |
| | | mapUtil.setBound(this.factorDatas.lnglats_GD); |
| | | }, |
| | | drawSector(index) { |
| | | // 1. 绘制新扇形区域 |