src/model/Factor.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/model/Legend.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/utils/map/3dLayer.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/model/Factor.js
@@ -127,7 +127,7 @@ this.heights = []; this.colors = []; this.datas.forEach((d) => { const h = getFactorHeight(d.factorId, d.factorData, [this.min, this.max]); let h = getFactorHeight(d.factorId, d.factorData, [this.min, this.max]); if (d.factorData == -1) { h = -1; } src/model/Legend.js
@@ -193,6 +193,9 @@ } else { colors = this._custom; } if (colors == undefined) { colors = this._legend_c['PM25']; } let index = colors.indexOf(color); index--; if (index < 0) index = 0; src/utils/map/3dLayer.js
@@ -96,7 +96,7 @@ const coors = fDatas.coors_GD; const heights = factor.heights; const colors = factor.colors; const bColor = factor.bottomColor; // const bColor = factor.bottomColor; const bColors = factor.bottomColors; // eslint-disable-next-line no-undef @@ -173,9 +173,8 @@ * @param fDatas 完整监测数据 * @param factor 当前展示的监测因子对象 * @param merge 是否和之前绘制的图形合并 * @param setCenter 镜头是否自动移动至图形中心 */ drawRoadMap(fDatas, factor, merge, setCenter) { drawRoadMap(fDatas, factor, merge) { const lnglats_GD = fDatas.lnglats_GD; const heights = factor.heights;