| | |
| | | strokeWeight: 1, //线条宽度,默认为 2 |
| | | strokeColor: 'white', //线条颜色 |
| | | fillOpacity: 0, |
| | | extData: p.extData |
| | | extData: p.extData, |
| | | zIndex: 11 |
| | | }); |
| | | |
| | | if (typeof event === 'function') { |
| | |
| | | * @param {number} opacity 透明度 |
| | | */ |
| | | drawGridColor(gridViews, gridDataDetail, factorName, style) { |
| | | let { strokeWeight, strokeColor, opacity, zIndex } = style; |
| | | let { |
| | | strokeWeight = 1, |
| | | strokeColor = 'white', |
| | | opacity = 1, |
| | | zIndex = 11 |
| | | } = style; |
| | | const res = []; |
| | | // 遍历卫星遥测数据数组 |
| | | gridDataDetail.forEach((d, i) => { |
| | |
| | | |
| | | const _extData = grid.getExtData(); |
| | | grid.setOptions({ |
| | | ...style, |
| | | strokeWeight, |
| | | strokeColor, |
| | | zIndex, |
| | | fillColor: _color, //多边形填充颜色 |
| | | fillOpacity: style.opacity ? style.opacity : color[3] == 0 ? 0 : 1, |
| | | fillOpacity: opacity, |
| | | extData: { |
| | | ..._extData, |
| | | gridData: d |
| | |
| | | return res; |
| | | }, |
| | | |
| | | drawGridColorCustom(gridViews, gridDataDetail, style) { |
| | | const { strokeWeight, strokeColor, opacity, zIndex } = style; |
| | | drawGridColorCustom(gridViews, gridDataDetail) { |
| | | |
| | | var max, min; |
| | | gridDataDetail.forEach((t) => { |
| | |
| | | ratio |
| | | ); |
| | | grid.setOptions({ |
| | | ...style, |
| | | fillColor: _color, //多边形填充颜色 |
| | | fillOpacity: style.opacity ? style.opacity : color[3] == 0 ? 0 : 0.7 |
| | | // fillOpacity: style.opacity ? style.opacity : color[3] == 0 ? 0 : 1 |
| | | }); |
| | | |
| | | res.push(grid); |