We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64cb71f commit 80c50b7Copy full SHA for 80c50b7
src/leaflet/overlay/RangeThemeLayer.js
@@ -75,7 +75,8 @@ export var RangeThemeLayer = GeoFeatureThemeLayer.extend({
75
//判断属性值是否属于styleGroups的某一个范围,以便对获取分组 style
76
if (isSfInAttributes && isValidStyleGroup) {
77
for (var i = 0, len = groups.length; i < len; i++) {
78
- if ((attribute >= groups[i].start) && (attribute <= groups[i].end)) {
+ var isContianed = i === len-1 ? ((attribute >= groups[i].start) && (attribute <= groups[i].end)) : ((attribute >= groups[i].start) && (attribute < groups[i].end));
79
+ if (isContianed) {
80
var sty1 = groups[i].style;
81
style = CommonUtil.copyAttributesWithClip(style, sty1);
82
}
0 commit comments