| | |
| | | if (length > count || index > 0) { |
| | | // 3d图形 |
| | | var lnglat = d.lnglats_GD[d.lnglats_GD.length - 1]; |
| | | MapUtil.drawMesh2( |
| | | d.lnglats_GD, |
| | | d.coors_GD, |
| | | f.heights, |
| | | f.colors, |
| | | f.bottomColor |
| | | ); |
| | | MapUtil.drawMesh2(d, f); |
| | | // MapUtil.drawLine(lnglat) |
| | | |
| | | // 风向风速 |
| | |
| | | windDir = windDir[windDir.length - 1].factorData; |
| | | var windSpeed = d.factor["16"].datas; |
| | | windSpeed = windSpeed[windSpeed.length - 1].factorData; |
| | | MapUtil.drawSector3(lnglat, windDir, windSpeed); |
| | | MapUtil.drawSector4(lnglat, windDir, windSpeed); |
| | | } |
| | | } |
| | | |
| | |
| | | }, |
| | | |
| | | /*******************************动画任务逻辑 -start ******************************/ |
| | | start: function () { |
| | | start: function (clear) { |
| | | MapUtil.clearSector3() |
| | | this.frameAnimation.start(); |
| | | }, |
| | | changeSpeed: function (speed) { |
| | |
| | | var text = new AMap.Text({ |
| | | text: time, |
| | | position: lnglat, |
| | | offset: new AMap.Pixel(0, 30), |
| | | offset: new AMap.Pixel(5, 20), |
| | | style: { |
| | | 'font-size': '13px', |
| | | 'text-align': 'center', |
| | | color: 'black', |
| | | 'background-color': 'white', |
| | | // 'text-shadow': 'black 2px 2px 2px', |
| | | 'border-radius': '2px', |
| | | border: '0px', |
| | | padding: '0 4px', |
| | | }, |
| | | }); |
| | | MapUtil._map.add(text); |
| | | this.moveViews["text"] = text; |