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;