Skip to content

Commit 887b7f6

Browse files
committed
【fix】修改leaflet图层相关版权信息
1 parent 258b737 commit 887b7f6

35 files changed

Lines changed: 2246 additions & 2108 deletions

‎dist/classic/iclient-classic-es6.js‎

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ module.exports = g;
237237
}
238238

239239
function Promise(fn) {
240-
if (!(this instanceof Promise)) throw new TypeError('Promises must be constructed via new');
240+
if (typeof this !== 'object') throw new TypeError('Promises must be constructed via new');
241241
if (typeof fn !== 'function') throw new TypeError('not a function');
242242
this._state = 0;
243243
this._handled = false;
@@ -361,9 +361,9 @@ module.exports = g;
361361
};
362362

363363
Promise.all = function (arr) {
364+
var args = Array.prototype.slice.call(arr);
365+
364366
return new Promise(function (resolve, reject) {
365-
if (!arr || typeof arr.length === 'undefined') throw new TypeError('Promise.all accepts an array');
366-
var args = Array.prototype.slice.call(arr);
367367
if (args.length === 0) return resolve([]);
368368
var remaining = args.length;
369369

@@ -3995,9 +3995,6 @@ SuperMap.Util.RequestJSONPPromise = {
39953995
if (keysCount == 0) {
39963996
return false;
39973997
}
3998-
if (splitQuestUrl == null) {
3999-
splitQuestUrl = new Array();
4000-
}
40013998
splitQuestUrl.push(sectionURL);
40023999
sectionURL = url;
40034000
keysCount = 0;
@@ -4025,9 +4022,6 @@ SuperMap.Util.RequestJSONPPromise = {
40254022
sectionURL += me.queryKeys[i] + "=" + tempLeftValue;
40264023
leftValue = leftValue.substring(leftLength);
40274024
if (tempLeftValue.length > 0) {
4028-
if (splitQuestUrl == null) {
4029-
splitQuestUrl = new Array();
4030-
}
40314025
splitQuestUrl.push(sectionURL);
40324026
sectionURL = url;
40334027
keysCount = 0;
@@ -4044,9 +4038,6 @@ SuperMap.Util.RequestJSONPPromise = {
40444038
}
40454039
}
40464040
}
4047-
if (splitQuestUrl == null) {
4048-
splitQuestUrl = new Array();
4049-
}
40504041
splitQuestUrl.push(sectionURL);
40514042
me.send(splitQuestUrl, "SuperMap.Util.RequestJSONPPromise.supermap_callbacks[" + uid + "]", config && config.proxy);
40524043
return p;

‎dist/classic/iclient-classic-es6.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/classic/iclient-classic.js‎

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3412,9 +3412,6 @@ _SuperMap.SuperMap.Util.RequestJSONPPromise = {
34123412
if (keysCount == 0) {
34133413
return false;
34143414
}
3415-
if (splitQuestUrl == null) {
3416-
splitQuestUrl = new Array();
3417-
}
34183415
splitQuestUrl.push(sectionURL);
34193416
sectionURL = url;
34203417
keysCount = 0;
@@ -3442,9 +3439,6 @@ _SuperMap.SuperMap.Util.RequestJSONPPromise = {
34423439
sectionURL += me.queryKeys[i] + "=" + tempLeftValue;
34433440
leftValue = leftValue.substring(leftLength);
34443441
if (tempLeftValue.length > 0) {
3445-
if (splitQuestUrl == null) {
3446-
splitQuestUrl = new Array();
3447-
}
34483442
splitQuestUrl.push(sectionURL);
34493443
sectionURL = url;
34503444
keysCount = 0;
@@ -3461,9 +3455,6 @@ _SuperMap.SuperMap.Util.RequestJSONPPromise = {
34613455
}
34623456
}
34633457
}
3464-
if (splitQuestUrl == null) {
3465-
splitQuestUrl = new Array();
3466-
}
34673458
splitQuestUrl.push(sectionURL);
34683459
me.send(splitQuestUrl, "SuperMap.Util.RequestJSONPPromise.supermap_callbacks[" + uid + "]", config && config.proxy);
34693460
return p;
@@ -11267,7 +11258,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1126711258
}
1126811259

1126911260
function Promise(fn) {
11270-
if (!(this instanceof Promise)) throw new TypeError('Promises must be constructed via new');
11261+
if (_typeof(this) !== 'object') throw new TypeError('Promises must be constructed via new');
1127111262
if (typeof fn !== 'function') throw new TypeError('not a function');
1127211263
this._state = 0;
1127311264
this._handled = false;
@@ -11391,9 +11382,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1139111382
};
1139211383

1139311384
Promise.all = function (arr) {
11385+
var args = Array.prototype.slice.call(arr);
11386+
1139411387
return new Promise(function (resolve, reject) {
11395-
if (!arr || typeof arr.length === 'undefined') throw new TypeError('Promise.all accepts an array');
11396-
var args = Array.prototype.slice.call(arr);
1139711388
if (args.length === 0) return resolve([]);
1139811389
var remaining = args.length;
1139911390

‎dist/classic/iclient-classic.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.

0 commit comments

Comments
 (0)