Skip to content

Commit 64cb71f

Browse files
committed
解决分段专题图判断最大值时没有包含等于,导致对接在线制图的专题图时最大值的要素渲染出错。
1 parent 576ad7b commit 64cb71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/leaflet/overlay/RangeThemeLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export var RangeThemeLayer = GeoFeatureThemeLayer.extend({
7575
//判断属性值是否属于styleGroups的某一个范围,以便对获取分组 style
7676
if (isSfInAttributes && isValidStyleGroup) {
7777
for (var i = 0, len = groups.length; i < len; i++) {
78-
if ((attribute >= groups[i].start) && (attribute < groups[i].end)) {
78+
if ((attribute >= groups[i].start) && (attribute <= groups[i].end)) {
7979
var sty1 = groups[i].style;
8080
style = CommonUtil.copyAttributesWithClip(style, sty1);
8181
}

0 commit comments

Comments
 (0)