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-bare.js
CHANGED
|
@@ -342,7 +342,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
342
342
|
return Url;
|
|
343
343
|
}());
|
|
344
344
|
|
|
345
|
-
var version = "2.1.
|
|
345
|
+
var version = "2.1.16";
|
|
346
346
|
|
|
347
347
|
/**
|
|
348
348
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -4782,6 +4782,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
4782
4782
|
return this.container;
|
|
4783
4783
|
};
|
|
4784
4784
|
TrafficControl.prototype.onRemove = function () {
|
|
4785
|
+
_super.prototype.onRemove.call(this);
|
|
4785
4786
|
this.map = null;
|
|
4786
4787
|
};
|
|
4787
4788
|
/**
|
|
@@ -25286,6 +25287,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25286
25287
|
var HijackablePromise = /** @class */ (function () {
|
|
25287
25288
|
function HijackablePromise(origin) {
|
|
25288
25289
|
var _this = this;
|
|
25290
|
+
this.isHijacked = function () { return _this._hijackedToResolve !== undefined || _this._hijackedToReject !== undefined; };
|
|
25289
25291
|
this.isResolved = function () { return _this._hijackedToResolve !== undefined || _this._toResolve !== undefined; };
|
|
25290
25292
|
this.isRejected = function () { return _this._hijackedToReject !== undefined || _this._toReject !== undefined; };
|
|
25291
25293
|
this.resultIfResolved = function () { return _this._hijackedToResolve || _this._toResolve; };
|
|
@@ -25299,39 +25301,28 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25299
25301
|
}
|
|
25300
25302
|
else {
|
|
25301
25303
|
// we retain the origin, and check if stays the same as resolved
|
|
25302
|
-
// to make sure we do nothing if the promise was switched
|
|
25303
25304
|
var retainedInvocator_1 = _this.origin;
|
|
25304
25305
|
_this.origin.then(function (result) {
|
|
25305
|
-
|
|
25306
|
-
if (retainedInvocator_1 !== _this.origin) {
|
|
25306
|
+
if (_this.isHijacked()) {
|
|
25307
25307
|
return;
|
|
25308
25308
|
}
|
|
25309
|
-
|
|
25309
|
+
// origin was switched during invocation, discard the result and follow the chain
|
|
25310
|
+
if (retainedInvocator_1 !== _this.origin) {
|
|
25311
|
+
_this._thenResolver(resolve, reject);
|
|
25312
|
+
}
|
|
25313
|
+
else {
|
|
25310
25314
|
_this._toResolve = result;
|
|
25311
25315
|
resolve(result);
|
|
25312
25316
|
}
|
|
25313
25317
|
}).catch(function (error) {
|
|
25314
|
-
if (
|
|
25315
|
-
_this._toReject = error;
|
|
25316
|
-
reject(error);
|
|
25317
|
-
}
|
|
25318
|
-
});
|
|
25319
|
-
}
|
|
25320
|
-
};
|
|
25321
|
-
this._catchResolver = function (reject) {
|
|
25322
|
-
if (_this._hijackedToReject) {
|
|
25323
|
-
reject(_this._hijackedToReject);
|
|
25324
|
-
}
|
|
25325
|
-
else {
|
|
25326
|
-
// we retain the origin, and check if stays the same as resolved
|
|
25327
|
-
// to make sure we do nothing if the promise was switched
|
|
25328
|
-
var retainedInvocator_2 = _this.origin;
|
|
25329
|
-
_this.origin.catch(function (error) {
|
|
25330
|
-
// origin was switched
|
|
25331
|
-
if (retainedInvocator_2 !== _this.origin) {
|
|
25318
|
+
if (_this.isHijacked()) {
|
|
25332
25319
|
return;
|
|
25333
25320
|
}
|
|
25334
|
-
|
|
25321
|
+
// origin was switched during invocation, discard the result and follow the chain
|
|
25322
|
+
if (retainedInvocator_1 !== _this.origin) {
|
|
25323
|
+
_this._thenResolver(resolve, reject);
|
|
25324
|
+
}
|
|
25325
|
+
else {
|
|
25335
25326
|
_this._toReject = error;
|
|
25336
25327
|
reject(error);
|
|
25337
25328
|
}
|
|
@@ -25358,14 +25349,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25358
25349
|
// tslint:disable-next-line: no-reserved-keywords
|
|
25359
25350
|
HijackablePromise.prototype.catch = function (onrejected) {
|
|
25360
25351
|
var _this = this;
|
|
25361
|
-
return new Promise(function (
|
|
25352
|
+
return new Promise(function (resolve, reject) {
|
|
25353
|
+
_this._resolve = resolve;
|
|
25362
25354
|
_this._reject = reject;
|
|
25363
|
-
_this.
|
|
25364
|
-
}).
|
|
25355
|
+
_this._thenResolver(resolve, reject);
|
|
25356
|
+
}).catch(onrejected);
|
|
25365
25357
|
};
|
|
25366
25358
|
// tslint:disable-next-line: no-reserved-keywords
|
|
25367
25359
|
HijackablePromise.prototype.finally = function (onfinally) {
|
|
25368
|
-
|
|
25360
|
+
var _this = this;
|
|
25361
|
+
return new Promise(function (resolve, reject) {
|
|
25362
|
+
_this._resolve = resolve;
|
|
25363
|
+
_this._reject = reject;
|
|
25364
|
+
_this._thenResolver(resolve, reject);
|
|
25365
|
+
}).finally(onfinally);
|
|
25369
25366
|
};
|
|
25370
25367
|
HijackablePromise.prototype.hijackAndResolve = function (value) {
|
|
25371
25368
|
this._hijackedToResolve = value;
|
|
@@ -25380,16 +25377,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
25380
25377
|
}
|
|
25381
25378
|
};
|
|
25382
25379
|
HijackablePromise.prototype.switchWith = function (promise) {
|
|
25383
|
-
// switching the origin will discard the original in-progress promise result
|
|
25380
|
+
// switching the origin will discard the original in-progress promise result, as well any resolved non-hijacked state
|
|
25384
25381
|
this.origin = promise;
|
|
25385
|
-
|
|
25386
|
-
|
|
25387
|
-
this._thenResolver(this._resolve, this._reject);
|
|
25388
|
-
// catch has been invoked on this promise
|
|
25389
|
-
}
|
|
25390
|
-
else if (this._reject) {
|
|
25391
|
-
this._catchResolver(this._reject);
|
|
25392
|
-
}
|
|
25382
|
+
this._toResolve = undefined;
|
|
25383
|
+
this._toReject = undefined;
|
|
25393
25384
|
};
|
|
25394
25385
|
return HijackablePromise;
|
|
25395
25386
|
}());
|
|
@@ -27031,7 +27022,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27031
27022
|
requestParams.url = requestParams.url.replace(constants.domainPlaceHolder, this.serviceOptions.domain);
|
|
27032
27023
|
}
|
|
27033
27024
|
}
|
|
27034
|
-
(
|
|
27025
|
+
if (requestParams.url.toLocaleLowerCase().includes(this.serviceOptions.domain.toLocaleLowerCase()) ||
|
|
27026
|
+
requestParams.url.toLocaleLowerCase().includes(this.serviceOptions.staticAssetsDomain.toLocaleLowerCase())) {
|
|
27027
|
+
(_a = this.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
|
|
27028
|
+
}
|
|
27035
27029
|
if (url.includes(constants.languagePlaceHolder)) {
|
|
27036
27030
|
requestParams.url = requestParams.url.replace(constants.languagePlaceHolder, this.styleOptions.language);
|
|
27037
27031
|
}
|