我地图的图例用的自定义js function(){ if(this.to < -0.2){ return "-20%以下"; }else if(this.to >= -0.2 && this.to < -0.1){ return "-20%--10%"; }else if(this.to >= -0.1 && this.to < 0){ return "-10%-0%"; }else if(this.to >= 0 && this.to < 0.1){ return "0%-10%"; }else if(this.to >= 0.1 && this.to < 0.2){ return "10%-20%"; }else if(this.to >= 0.2){ return "20%以上"; } } 但是我的值是0.1的时候,图例显示却是20%以上,这个是什么原因 |