Skip to content

Commit e968767

Browse files
committed
处理离线包地址不能用ip地址访问的问题
1 parent 52b7aad commit e968767

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

dist/iclient9-leaflet.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29533,7 +29533,8 @@ var RangeThemeLayer = exports.RangeThemeLayer = _GeoFeatureThemeLayer.GeoFeature
2953329533
//判断属性值是否属于styleGroups的某一个范围,以便对获取分组 style
2953429534
if (isSfInAttributes && isValidStyleGroup) {
2953529535
for (var i = 0, len = groups.length; i < len; i++) {
29536-
if (attribute >= groups[i].start && attribute < groups[i].end) {
29536+
var isContianed = i === len - 1 ? attribute >= groups[i].start && attribute <= groups[i].end : attribute >= groups[i].start && attribute < groups[i].end;
29537+
if (isContianed) {
2953729538
var sty1 = groups[i].style;
2953829539
style = _iclientCommon.CommonUtil.copyAttributesWithClip(style, sty1);
2953929540
}

dist/iclient9-leaflet.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/include-classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,5 @@
129129

130130
load();
131131
window.isLocal = false;
132-
window.server = "http://localhost:8090";
132+
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : 'http://' + document.location.host;
133133
})();

dist/include-leaflet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@
100100

101101
load();
102102
window.isLocal = false;
103-
window.server = "http://localhost:8090";
103+
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : 'http://' + document.location.host;
104104
})();

dist/include-mapboxgl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@
7070

7171
load();
7272
window.isLocal = false;
73-
window.server = "http://localhost:8090";
73+
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : 'http://' + document.location.host;
7474
})();

dist/include-openlayers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@
6969

7070
load();
7171
window.isLocal = false;
72-
window.server = "http://localhost:8090";
72+
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : 'http://' + document.location.host;
7373
})();

examples/js/include-web.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,6 @@
134134

135135
load();
136136
window.isLocal = false;
137-
window.server = "http://localhost:8090";
137+
window.server = document.location.toString().match(/file:\/\//) ? "http://localhost:8090" : 'http://' + document.location.host;
138138
window.version = "9.0.0";
139139
})();

0 commit comments

Comments
 (0)