azure-maps-control 2.1.13 → 2.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atlas-core-bare.js +32 -38
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core.js +32 -38
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas.js +32 -38
- package/dist/atlas.min.js +1 -1
- package/package.json +1 -1
package/dist/atlas-core.js
CHANGED
|
@@ -43487,7 +43487,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43487
43487
|
return Url;
|
|
43488
43488
|
}());
|
|
43489
43489
|
|
|
43490
|
-
var version = "2.1.
|
|
43490
|
+
var version = "2.1.16";
|
|
43491
43491
|
|
|
43492
43492
|
/**
|
|
43493
43493
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -47909,6 +47909,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47909
47909
|
return this.container;
|
|
47910
47910
|
};
|
|
47911
47911
|
TrafficControl.prototype.onRemove = function () {
|
|
47912
|
+
_super.prototype.onRemove.call(this);
|
|
47912
47913
|
this.map = null;
|
|
47913
47914
|
};
|
|
47914
47915
|
/**
|
|
@@ -68413,6 +68414,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68413
68414
|
var HijackablePromise = /** @class */ (function () {
|
|
68414
68415
|
function HijackablePromise(origin) {
|
|
68415
68416
|
var _this = this;
|
|
68417
|
+
this.isHijacked = function () { return _this._hijackedToResolve !== undefined || _this._hijackedToReject !== undefined; };
|
|
68416
68418
|
this.isResolved = function () { return _this._hijackedToResolve !== undefined || _this._toResolve !== undefined; };
|
|
68417
68419
|
this.isRejected = function () { return _this._hijackedToReject !== undefined || _this._toReject !== undefined; };
|
|
68418
68420
|
this.resultIfResolved = function () { return _this._hijackedToResolve || _this._toResolve; };
|
|
@@ -68426,39 +68428,28 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68426
68428
|
}
|
|
68427
68429
|
else {
|
|
68428
68430
|
// we retain the origin, and check if stays the same as resolved
|
|
68429
|
-
// to make sure we do nothing if the promise was switched
|
|
68430
68431
|
var retainedInvocator_1 = _this.origin;
|
|
68431
68432
|
_this.origin.then(function (result) {
|
|
68432
|
-
|
|
68433
|
-
if (retainedInvocator_1 !== _this.origin) {
|
|
68433
|
+
if (_this.isHijacked()) {
|
|
68434
68434
|
return;
|
|
68435
68435
|
}
|
|
68436
|
-
|
|
68436
|
+
// origin was switched during invocation, discard the result and follow the chain
|
|
68437
|
+
if (retainedInvocator_1 !== _this.origin) {
|
|
68438
|
+
_this._thenResolver(resolve, reject);
|
|
68439
|
+
}
|
|
68440
|
+
else {
|
|
68437
68441
|
_this._toResolve = result;
|
|
68438
68442
|
resolve(result);
|
|
68439
68443
|
}
|
|
68440
68444
|
}).catch(function (error) {
|
|
68441
|
-
if (
|
|
68442
|
-
_this._toReject = error;
|
|
68443
|
-
reject(error);
|
|
68444
|
-
}
|
|
68445
|
-
});
|
|
68446
|
-
}
|
|
68447
|
-
};
|
|
68448
|
-
this._catchResolver = function (reject) {
|
|
68449
|
-
if (_this._hijackedToReject) {
|
|
68450
|
-
reject(_this._hijackedToReject);
|
|
68451
|
-
}
|
|
68452
|
-
else {
|
|
68453
|
-
// we retain the origin, and check if stays the same as resolved
|
|
68454
|
-
// to make sure we do nothing if the promise was switched
|
|
68455
|
-
var retainedInvocator_2 = _this.origin;
|
|
68456
|
-
_this.origin.catch(function (error) {
|
|
68457
|
-
// origin was switched
|
|
68458
|
-
if (retainedInvocator_2 !== _this.origin) {
|
|
68445
|
+
if (_this.isHijacked()) {
|
|
68459
68446
|
return;
|
|
68460
68447
|
}
|
|
68461
|
-
|
|
68448
|
+
// origin was switched during invocation, discard the result and follow the chain
|
|
68449
|
+
if (retainedInvocator_1 !== _this.origin) {
|
|
68450
|
+
_this._thenResolver(resolve, reject);
|
|
68451
|
+
}
|
|
68452
|
+
else {
|
|
68462
68453
|
_this._toReject = error;
|
|
68463
68454
|
reject(error);
|
|
68464
68455
|
}
|
|
@@ -68485,14 +68476,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68485
68476
|
// tslint:disable-next-line: no-reserved-keywords
|
|
68486
68477
|
HijackablePromise.prototype.catch = function (onrejected) {
|
|
68487
68478
|
var _this = this;
|
|
68488
|
-
return new Promise(function (
|
|
68479
|
+
return new Promise(function (resolve, reject) {
|
|
68480
|
+
_this._resolve = resolve;
|
|
68489
68481
|
_this._reject = reject;
|
|
68490
|
-
_this.
|
|
68491
|
-
}).
|
|
68482
|
+
_this._thenResolver(resolve, reject);
|
|
68483
|
+
}).catch(onrejected);
|
|
68492
68484
|
};
|
|
68493
68485
|
// tslint:disable-next-line: no-reserved-keywords
|
|
68494
68486
|
HijackablePromise.prototype.finally = function (onfinally) {
|
|
68495
|
-
|
|
68487
|
+
var _this = this;
|
|
68488
|
+
return new Promise(function (resolve, reject) {
|
|
68489
|
+
_this._resolve = resolve;
|
|
68490
|
+
_this._reject = reject;
|
|
68491
|
+
_this._thenResolver(resolve, reject);
|
|
68492
|
+
}).finally(onfinally);
|
|
68496
68493
|
};
|
|
68497
68494
|
HijackablePromise.prototype.hijackAndResolve = function (value) {
|
|
68498
68495
|
this._hijackedToResolve = value;
|
|
@@ -68507,16 +68504,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68507
68504
|
}
|
|
68508
68505
|
};
|
|
68509
68506
|
HijackablePromise.prototype.switchWith = function (promise) {
|
|
68510
|
-
// switching the origin will discard the original in-progress promise result
|
|
68507
|
+
// switching the origin will discard the original in-progress promise result, as well any resolved non-hijacked state
|
|
68511
68508
|
this.origin = promise;
|
|
68512
|
-
|
|
68513
|
-
|
|
68514
|
-
this._thenResolver(this._resolve, this._reject);
|
|
68515
|
-
// catch has been invoked on this promise
|
|
68516
|
-
}
|
|
68517
|
-
else if (this._reject) {
|
|
68518
|
-
this._catchResolver(this._reject);
|
|
68519
|
-
}
|
|
68509
|
+
this._toResolve = undefined;
|
|
68510
|
+
this._toReject = undefined;
|
|
68520
68511
|
};
|
|
68521
68512
|
return HijackablePromise;
|
|
68522
68513
|
}());
|
|
@@ -70158,7 +70149,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
70158
70149
|
requestParams.url = requestParams.url.replace(constants.domainPlaceHolder, this.serviceOptions.domain);
|
|
70159
70150
|
}
|
|
70160
70151
|
}
|
|
70161
|
-
(
|
|
70152
|
+
if (requestParams.url.toLocaleLowerCase().includes(this.serviceOptions.domain.toLocaleLowerCase()) ||
|
|
70153
|
+
requestParams.url.toLocaleLowerCase().includes(this.serviceOptions.staticAssetsDomain.toLocaleLowerCase())) {
|
|
70154
|
+
(_a = this.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
|
|
70155
|
+
}
|
|
70162
70156
|
if (url.includes(constants.languagePlaceHolder)) {
|
|
70163
70157
|
requestParams.url = requestParams.url.replace(constants.languagePlaceHolder, this.styleOptions.language);
|
|
70164
70158
|
}
|