azure-maps-control 2.2.0 → 2.2.2

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.
@@ -43236,126 +43236,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43236
43236
  sessionIdHeaderName: "Session-Id"
43237
43237
  };
43238
43238
 
43239
- /*! *****************************************************************************
43240
- Copyright (c) Microsoft Corporation.
43241
-
43242
- Permission to use, copy, modify, and/or distribute this software for any
43243
- purpose with or without fee is hereby granted.
43244
-
43245
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
43246
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
43247
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
43248
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43249
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43250
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43251
- PERFORMANCE OF THIS SOFTWARE.
43252
- ***************************************************************************** */
43253
- /* global Reflect, Promise */
43254
-
43255
- var extendStatics = function(d, b) {
43256
- extendStatics = Object.setPrototypeOf ||
43257
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
43258
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
43259
- return extendStatics(d, b);
43260
- };
43261
-
43262
- function __extends(d, b) {
43263
- extendStatics(d, b);
43264
- function __() { this.constructor = d; }
43265
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43266
- }
43267
-
43268
- var __assign = function() {
43269
- __assign = Object.assign || function __assign(t) {
43270
- for (var s, i = 1, n = arguments.length; i < n; i++) {
43271
- s = arguments[i];
43272
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
43273
- }
43274
- return t;
43275
- };
43276
- return __assign.apply(this, arguments);
43277
- };
43278
-
43279
- function __decorate(decorators, target, key, desc) {
43280
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
43281
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
43282
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
43283
- return c > 3 && r && Object.defineProperty(target, key, r), r;
43284
- }
43285
-
43286
- function __awaiter(thisArg, _arguments, P, generator) {
43287
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43288
- return new (P || (P = Promise))(function (resolve, reject) {
43289
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
43290
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43291
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
43292
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43293
- });
43294
- }
43295
-
43296
- function __generator(thisArg, body) {
43297
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
43298
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
43299
- function verb(n) { return function (v) { return step([n, v]); }; }
43300
- function step(op) {
43301
- if (f) throw new TypeError("Generator is already executing.");
43302
- while (_) try {
43303
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
43304
- if (y = 0, t) op = [op[0] & 2, t.value];
43305
- switch (op[0]) {
43306
- case 0: case 1: t = op; break;
43307
- case 4: _.label++; return { value: op[1], done: false };
43308
- case 5: _.label++; y = op[1]; op = [0]; continue;
43309
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
43310
- default:
43311
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
43312
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43313
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
43314
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
43315
- if (t[2]) _.ops.pop();
43316
- _.trys.pop(); continue;
43317
- }
43318
- op = body.call(thisArg, _);
43319
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
43320
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
43321
- }
43322
- }
43323
-
43324
- function __values(o) {
43325
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
43326
- if (m) return m.call(o);
43327
- if (o && typeof o.length === "number") return {
43328
- next: function () {
43329
- if (o && i >= o.length) o = void 0;
43330
- return { value: o && o[i++], done: !o };
43331
- }
43332
- };
43333
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
43334
- }
43335
-
43336
- function __read(o, n) {
43337
- var m = typeof Symbol === "function" && o[Symbol.iterator];
43338
- if (!m) return o;
43339
- var i = m.call(o), r, ar = [], e;
43340
- try {
43341
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
43342
- }
43343
- catch (error) { e = { error: error }; }
43344
- finally {
43345
- try {
43346
- if (r && !r.done && (m = i["return"])) m.call(i);
43347
- }
43348
- finally { if (e) throw e.error; }
43349
- }
43350
- return ar;
43351
- }
43352
-
43353
- function __spread() {
43354
- for (var ar = [], i = 0; i < arguments.length; i++)
43355
- ar = ar.concat(__read(arguments[i]));
43356
- return ar;
43357
- }
43358
-
43239
+ var __values = (window && window.__values) || function(o) {
43240
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
43241
+ if (m) return m.call(o);
43242
+ if (o && typeof o.length === "number") return {
43243
+ next: function () {
43244
+ if (o && i >= o.length) o = void 0;
43245
+ return { value: o && o[i++], done: !o };
43246
+ }
43247
+ };
43248
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
43249
+ };
43359
43250
  /**
43360
43251
  * @private
43361
43252
  */
@@ -43413,6 +43304,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43413
43304
  return Options;
43414
43305
  }());
43415
43306
 
43307
+ var __extends = (window && window.__extends) || (function () {
43308
+ var extendStatics = function (d, b) {
43309
+ extendStatics = Object.setPrototypeOf ||
43310
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
43311
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
43312
+ return extendStatics(d, b);
43313
+ };
43314
+ return function (d, b) {
43315
+ if (typeof b !== "function" && b !== null)
43316
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
43317
+ extendStatics(d, b);
43318
+ function __() { this.constructor = d; }
43319
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43320
+ };
43321
+ })();
43322
+ var __read = (window && window.__read) || function (o, n) {
43323
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
43324
+ if (!m) return o;
43325
+ var i = m.call(o), r, ar = [], e;
43326
+ try {
43327
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
43328
+ }
43329
+ catch (error) { e = { error: error }; }
43330
+ finally {
43331
+ try {
43332
+ if (r && !r.done && (m = i["return"])) m.call(i);
43333
+ }
43334
+ finally { if (e) throw e.error; }
43335
+ }
43336
+ return ar;
43337
+ };
43416
43338
  /**
43417
43339
  * @private
43418
43340
  */
@@ -43488,7 +43410,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43488
43410
  return Url;
43489
43411
  }());
43490
43412
 
43491
- var version = "2.2.0";
43413
+ var version = "2.2.2";
43492
43414
 
43493
43415
  /**
43494
43416
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -43610,6 +43532,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43610
43532
  eventTarget.addEventListener("focusin", positionTooltip);
43611
43533
  };
43612
43534
 
43535
+ var __extends$1 = (window && window.__extends) || (function () {
43536
+ var extendStatics = function (d, b) {
43537
+ extendStatics = Object.setPrototypeOf ||
43538
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
43539
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
43540
+ return extendStatics(d, b);
43541
+ };
43542
+ return function (d, b) {
43543
+ if (typeof b !== "function" && b !== null)
43544
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
43545
+ extendStatics(d, b);
43546
+ function __() { this.constructor = d; }
43547
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43548
+ };
43549
+ })();
43613
43550
  (function (ControlPosition) {
43614
43551
  /**
43615
43552
  * Places the control in the top left of the map.
@@ -43641,7 +43578,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43641
43578
  * The options for adding a control to the map.
43642
43579
  */
43643
43580
  var ControlOptions = /** @class */ (function (_super) {
43644
- __extends(ControlOptions, _super);
43581
+ __extends$1(ControlOptions, _super);
43645
43582
  function ControlOptions() {
43646
43583
  var _this = _super !== null && _super.apply(this, arguments) || this;
43647
43584
  /**
@@ -43786,12 +43723,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43786
43723
  EventEmitter: EventEmitter
43787
43724
  });
43788
43725
 
43726
+ var __extends$2 = (window && window.__extends) || (function () {
43727
+ var extendStatics = function (d, b) {
43728
+ extendStatics = Object.setPrototypeOf ||
43729
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
43730
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
43731
+ return extendStatics(d, b);
43732
+ };
43733
+ return function (d, b) {
43734
+ if (typeof b !== "function" && b !== null)
43735
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
43736
+ extendStatics(d, b);
43737
+ function __() { this.constructor = d; }
43738
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43739
+ };
43740
+ })();
43789
43741
  /**
43790
43742
  * For internal use only.
43791
43743
  * Implements control interface and provides support for automatic styling based on the map style.
43792
43744
  */
43793
43745
  var ControlBase = /** @class */ (function (_super) {
43794
- __extends(ControlBase, _super);
43746
+ __extends$2(ControlBase, _super);
43795
43747
  function ControlBase() {
43796
43748
  var _this = _super !== null && _super.apply(this, arguments) || this;
43797
43749
  /**
@@ -43896,11 +43848,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43896
43848
  return ControlBase;
43897
43849
  }(EventEmitter));
43898
43850
 
43851
+ var __extends$3 = (window && window.__extends) || (function () {
43852
+ var extendStatics = function (d, b) {
43853
+ extendStatics = Object.setPrototypeOf ||
43854
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
43855
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
43856
+ return extendStatics(d, b);
43857
+ };
43858
+ return function (d, b) {
43859
+ if (typeof b !== "function" && b !== null)
43860
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
43861
+ extendStatics(d, b);
43862
+ function __() { this.constructor = d; }
43863
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43864
+ };
43865
+ })();
43899
43866
  /**
43900
43867
  * The options for a CompassControl object.
43901
43868
  */
43902
43869
  var CompassControlOptions = /** @class */ (function (_super) {
43903
- __extends(CompassControlOptions, _super);
43870
+ __extends$3(CompassControlOptions, _super);
43904
43871
  function CompassControlOptions() {
43905
43872
  var _this = _super !== null && _super.apply(this, arguments) || this;
43906
43873
  /**
@@ -43925,11 +43892,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43925
43892
  return CompassControlOptions;
43926
43893
  }(Options));
43927
43894
 
43895
+ var __extends$4 = (window && window.__extends) || (function () {
43896
+ var extendStatics = function (d, b) {
43897
+ extendStatics = Object.setPrototypeOf ||
43898
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
43899
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
43900
+ return extendStatics(d, b);
43901
+ };
43902
+ return function (d, b) {
43903
+ if (typeof b !== "function" && b !== null)
43904
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
43905
+ extendStatics(d, b);
43906
+ function __() { this.constructor = d; }
43907
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43908
+ };
43909
+ })();
43928
43910
  /**
43929
43911
  * A control for changing the rotation of the map.
43930
43912
  */
43931
43913
  var CompassControl = /** @class */ (function (_super) {
43932
- __extends(CompassControl, _super);
43914
+ __extends$4(CompassControl, _super);
43933
43915
  /**
43934
43916
  * Constructs a CompassControl.
43935
43917
  * @param options The options for the control.
@@ -44097,11 +44079,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
44097
44079
  return CompassControl;
44098
44080
  }(ControlBase));
44099
44081
 
44082
+ var __extends$5 = (window && window.__extends) || (function () {
44083
+ var extendStatics = function (d, b) {
44084
+ extendStatics = Object.setPrototypeOf ||
44085
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
44086
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
44087
+ return extendStatics(d, b);
44088
+ };
44089
+ return function (d, b) {
44090
+ if (typeof b !== "function" && b !== null)
44091
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
44092
+ extendStatics(d, b);
44093
+ function __() { this.constructor = d; }
44094
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
44095
+ };
44096
+ })();
44100
44097
  /**
44101
44098
  * The options for a PitchControl object.
44102
44099
  */
44103
44100
  var PitchControlOptions = /** @class */ (function (_super) {
44104
- __extends(PitchControlOptions, _super);
44101
+ __extends$5(PitchControlOptions, _super);
44105
44102
  function PitchControlOptions() {
44106
44103
  var _this = _super !== null && _super.apply(this, arguments) || this;
44107
44104
  /**
@@ -44126,11 +44123,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
44126
44123
  return PitchControlOptions;
44127
44124
  }(Options));
44128
44125
 
44126
+ var __extends$6 = (window && window.__extends) || (function () {
44127
+ var extendStatics = function (d, b) {
44128
+ extendStatics = Object.setPrototypeOf ||
44129
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
44130
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
44131
+ return extendStatics(d, b);
44132
+ };
44133
+ return function (d, b) {
44134
+ if (typeof b !== "function" && b !== null)
44135
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
44136
+ extendStatics(d, b);
44137
+ function __() { this.constructor = d; }
44138
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
44139
+ };
44140
+ })();
44129
44141
  /**
44130
44142
  * A control for changing the pitch of the map.
44131
44143
  */
44132
44144
  var PitchControl = /** @class */ (function (_super) {
44133
- __extends(PitchControl, _super);
44145
+ __extends$6(PitchControl, _super);
44134
44146
  /**
44135
44147
  * Constructs a PitchControl.
44136
44148
  * @param options The options for the control.
@@ -47425,11 +47437,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47425
47437
 
47426
47438
  var merge_1 = merge;
47427
47439
 
47440
+ var __extends$7 = (window && window.__extends) || (function () {
47441
+ var extendStatics = function (d, b) {
47442
+ extendStatics = Object.setPrototypeOf ||
47443
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
47444
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
47445
+ return extendStatics(d, b);
47446
+ };
47447
+ return function (d, b) {
47448
+ if (typeof b !== "function" && b !== null)
47449
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
47450
+ extendStatics(d, b);
47451
+ function __() { this.constructor = d; }
47452
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47453
+ };
47454
+ })();
47428
47455
  /**
47429
47456
  * The options for a StyleControl object.
47430
47457
  */
47431
47458
  var StyleControlOptions = /** @class */ (function (_super) {
47432
- __extends(StyleControlOptions, _super);
47459
+ __extends$7(StyleControlOptions, _super);
47433
47460
  function StyleControlOptions() {
47434
47461
  var _this = _super !== null && _super.apply(this, arguments) || this;
47435
47462
  /**
@@ -47474,11 +47501,78 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47474
47501
  return StyleControlOptions;
47475
47502
  }(Options));
47476
47503
 
47504
+ var __extends$8 = (window && window.__extends) || (function () {
47505
+ var extendStatics = function (d, b) {
47506
+ extendStatics = Object.setPrototypeOf ||
47507
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
47508
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
47509
+ return extendStatics(d, b);
47510
+ };
47511
+ return function (d, b) {
47512
+ if (typeof b !== "function" && b !== null)
47513
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
47514
+ extendStatics(d, b);
47515
+ function __() { this.constructor = d; }
47516
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47517
+ };
47518
+ })();
47519
+ var __awaiter = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
47520
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
47521
+ return new (P || (P = Promise))(function (resolve, reject) {
47522
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
47523
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
47524
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47525
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
47526
+ });
47527
+ };
47528
+ var __generator = (window && window.__generator) || function (thisArg, body) {
47529
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47530
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
47531
+ function verb(n) { return function (v) { return step([n, v]); }; }
47532
+ function step(op) {
47533
+ if (f) throw new TypeError("Generator is already executing.");
47534
+ while (_) try {
47535
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47536
+ if (y = 0, t) op = [op[0] & 2, t.value];
47537
+ switch (op[0]) {
47538
+ case 0: case 1: t = op; break;
47539
+ case 4: _.label++; return { value: op[1], done: false };
47540
+ case 5: _.label++; y = op[1]; op = [0]; continue;
47541
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
47542
+ default:
47543
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
47544
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
47545
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
47546
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
47547
+ if (t[2]) _.ops.pop();
47548
+ _.trys.pop(); continue;
47549
+ }
47550
+ op = body.call(thisArg, _);
47551
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
47552
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47553
+ }
47554
+ };
47555
+ var __read$1 = (window && window.__read) || function (o, n) {
47556
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
47557
+ if (!m) return o;
47558
+ var i = m.call(o), r, ar = [], e;
47559
+ try {
47560
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
47561
+ }
47562
+ catch (error) { e = { error: error }; }
47563
+ finally {
47564
+ try {
47565
+ if (r && !r.done && (m = i["return"])) m.call(i);
47566
+ }
47567
+ finally { if (e) throw e.error; }
47568
+ }
47569
+ return ar;
47570
+ };
47477
47571
  /**
47478
47572
  * A control for changing the style of the map.
47479
47573
  */
47480
47574
  var StyleControl = /** @class */ (function (_super) {
47481
- __extends(StyleControl, _super);
47575
+ __extends$8(StyleControl, _super);
47482
47576
  /**
47483
47577
  * Constructs a StyleControl.
47484
47578
  * @param options The options for the control.
@@ -47620,7 +47714,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47620
47714
  image_1.src = newSrc;
47621
47715
  }
47622
47716
  Object.entries(this.styleButtons).forEach(function (_a) {
47623
- var _b = __read(_a, 2), buttonStyleName = _b[0], button = _b[1];
47717
+ var _b = __read$1(_a, 2), buttonStyleName = _b[0], button = _b[1];
47624
47718
  return button.setAttribute('aria-current', buttonStyleName === styleName ? 'true' : 'false');
47625
47719
  });
47626
47720
  this.map.styles.definitions().then(function (mapConfiguration) {
@@ -47698,7 +47792,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47698
47792
  _this.map.setStyle({ style: name });
47699
47793
  }
47700
47794
  Object.entries(_this.styleButtons).forEach(function (_a) {
47701
- var _b = __read(_a, 2), styleName = _b[0], button = _b[1];
47795
+ var _b = __read$1(_a, 2), styleName = _b[0], button = _b[1];
47702
47796
  return button.setAttribute('aria-current', styleName === name ? 'true' : 'false');
47703
47797
  });
47704
47798
  }
@@ -47783,7 +47877,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47783
47877
  });
47784
47878
  var targetStyleName = this.map.getStyle().style;
47785
47879
  Object.entries(this.styleButtons).forEach(function (_a) {
47786
- var _b = __read(_a, 2), styleName = _b[0], button = _b[1];
47880
+ var _b = __read$1(_a, 2), styleName = _b[0], button = _b[1];
47787
47881
  return button.setAttribute('aria-current', styleName === targetStyleName ? 'true' : 'false');
47788
47882
  });
47789
47883
  };
@@ -47800,11 +47894,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47800
47894
  return StyleControl;
47801
47895
  }(ControlBase));
47802
47896
 
47897
+ var __extends$9 = (window && window.__extends) || (function () {
47898
+ var extendStatics = function (d, b) {
47899
+ extendStatics = Object.setPrototypeOf ||
47900
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
47901
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
47902
+ return extendStatics(d, b);
47903
+ };
47904
+ return function (d, b) {
47905
+ if (typeof b !== "function" && b !== null)
47906
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
47907
+ extendStatics(d, b);
47908
+ function __() { this.constructor = d; }
47909
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47910
+ };
47911
+ })();
47803
47912
  /**
47804
47913
  * The options for setting traffic on the map.
47805
47914
  */
47806
47915
  var TrafficOptions = /** @class */ (function (_super) {
47807
- __extends(TrafficOptions, _super);
47916
+ __extends$9(TrafficOptions, _super);
47808
47917
  function TrafficOptions() {
47809
47918
  var _this = _super !== null && _super.apply(this, arguments) || this;
47810
47919
  /**
@@ -47829,11 +47938,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47829
47938
  return TrafficOptions;
47830
47939
  }(Options));
47831
47940
 
47941
+ var __extends$a = (window && window.__extends) || (function () {
47942
+ var extendStatics = function (d, b) {
47943
+ extendStatics = Object.setPrototypeOf ||
47944
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
47945
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
47946
+ return extendStatics(d, b);
47947
+ };
47948
+ return function (d, b) {
47949
+ if (typeof b !== "function" && b !== null)
47950
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
47951
+ extendStatics(d, b);
47952
+ function __() { this.constructor = d; }
47953
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47954
+ };
47955
+ })();
47832
47956
  /**
47833
47957
  * The options for a TrafficControl object.
47834
47958
  */
47835
47959
  var TrafficControlOptions = /** @class */ (function (_super) {
47836
- __extends(TrafficControlOptions, _super);
47960
+ __extends$a(TrafficControlOptions, _super);
47837
47961
  function TrafficControlOptions() {
47838
47962
  var _this = _super !== null && _super.apply(this, arguments) || this;
47839
47963
  /**
@@ -47853,16 +47977,32 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47853
47977
  return TrafficControlOptions;
47854
47978
  }(TrafficOptions));
47855
47979
 
47980
+ var __extends$b = (window && window.__extends) || (function () {
47981
+ var extendStatics = function (d, b) {
47982
+ extendStatics = Object.setPrototypeOf ||
47983
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
47984
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
47985
+ return extendStatics(d, b);
47986
+ };
47987
+ return function (d, b) {
47988
+ if (typeof b !== "function" && b !== null)
47989
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
47990
+ extendStatics(d, b);
47991
+ function __() { this.constructor = d; }
47992
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47993
+ };
47994
+ })();
47856
47995
  /**
47857
47996
  * A control that toggles traffic data on the map.
47858
47997
  */
47859
47998
  var TrafficControl = /** @class */ (function (_super) {
47860
- __extends(TrafficControl, _super);
47999
+ __extends$b(TrafficControl, _super);
47861
48000
  /**
47862
48001
  * Constructs a TrafficControl
47863
48002
  * @param options The options for the control.
47864
48003
  */
47865
48004
  function TrafficControl(options) {
48005
+ var _a, _b;
47866
48006
  var _this = _super.call(this) || this;
47867
48007
  _this.hasMouse = false;
47868
48008
  _this.hasFocus = false;
@@ -47876,9 +48016,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47876
48016
  _this.trafficButton = null;
47877
48017
  _this.map = null;
47878
48018
  if (options) {
47879
- _this.initIsActive = options.isActive || false;
48019
+ _this.initIsActive = (_a = options.isActive) !== null && _a !== void 0 ? _a : false;
47880
48020
  _this.options.flow = options.flow || 'relative';
47881
- _this.options.incidents = options.incidents || true;
48021
+ _this.options.incidents = (_b = options.incidents) !== null && _b !== void 0 ? _b : true;
47882
48022
  _this.style = options.style || exports.ControlStyle.light;
47883
48023
  }
47884
48024
  return _this;
@@ -47980,11 +48120,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47980
48120
  return TrafficControl;
47981
48121
  }(ControlBase));
47982
48122
 
48123
+ var __extends$c = (window && window.__extends) || (function () {
48124
+ var extendStatics = function (d, b) {
48125
+ extendStatics = Object.setPrototypeOf ||
48126
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
48127
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
48128
+ return extendStatics(d, b);
48129
+ };
48130
+ return function (d, b) {
48131
+ if (typeof b !== "function" && b !== null)
48132
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
48133
+ extendStatics(d, b);
48134
+ function __() { this.constructor = d; }
48135
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
48136
+ };
48137
+ })();
48138
+ var __values$1 = (window && window.__values) || function(o) {
48139
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
48140
+ if (m) return m.call(o);
48141
+ if (o && typeof o.length === "number") return {
48142
+ next: function () {
48143
+ if (o && i >= o.length) o = void 0;
48144
+ return { value: o && o[i++], done: !o };
48145
+ }
48146
+ };
48147
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
48148
+ };
47983
48149
  /**
47984
48150
  * A control that display traffic legend on the map.
47985
48151
  */
47986
48152
  var TrafficLegendControl = /** @class */ (function (_super) {
47987
- __extends(TrafficLegendControl, _super);
48153
+ __extends$c(TrafficLegendControl, _super);
47988
48154
  /**
47989
48155
  * Construct a traffic legend control
47990
48156
  */
@@ -48040,7 +48206,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
48040
48206
  // legend table contents
48041
48207
  var tr2 = document.createElement("tr");
48042
48208
  try {
48043
- for (var _c = __values(this.table), _d = _c.next(); !_d.done; _d = _c.next()) {
48209
+ for (var _c = __values$1(this.table), _d = _c.next(); !_d.done; _d = _c.next()) {
48044
48210
  var col = _d.value;
48045
48211
  var data = document.createElement("td");
48046
48212
  if (col === "Fast" || col === "Slow") {
@@ -48053,7 +48219,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
48053
48219
  data.setAttribute("aria-label", "Traffic Legend");
48054
48220
  data.setAttribute("role", "img");
48055
48221
  try {
48056
- for (var col_1 = (e_2 = void 0, __values(col)), col_1_1 = col_1.next(); !col_1_1.done; col_1_1 = col_1.next()) {
48222
+ for (var col_1 = (e_2 = void 0, __values$1(col)), col_1_1 = col_1.next(); !col_1_1.done; col_1_1 = col_1.next()) {
48057
48223
  var color = col_1_1.value;
48058
48224
  var div = document.createElement("div");
48059
48225
  div.classList.add(color);
@@ -48804,11 +48970,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
48804
48970
  return Feature;
48805
48971
  }());
48806
48972
 
48973
+ var __extends$d = (window && window.__extends) || (function () {
48974
+ var extendStatics = function (d, b) {
48975
+ extendStatics = Object.setPrototypeOf ||
48976
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
48977
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
48978
+ return extendStatics(d, b);
48979
+ };
48980
+ return function (d, b) {
48981
+ if (typeof b !== "function" && b !== null)
48982
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
48983
+ extendStatics(d, b);
48984
+ function __() { this.constructor = d; }
48985
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
48986
+ };
48987
+ })();
48807
48988
  /**
48808
48989
  * Represent a pixel coordinate or offset. Extends an array of [x, y].
48809
48990
  */
48810
48991
  var Pixel = /** @class */ (function (_super) {
48811
- __extends(Pixel, _super);
48992
+ __extends$d(Pixel, _super);
48812
48993
  /**
48813
48994
  * Constructs a Pixel object and initializes it with the specified x and y coordinates.
48814
48995
  * @param x The horizontal pixel offset.
@@ -48924,6 +49105,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
48924
49105
  return Point;
48925
49106
  }());
48926
49107
 
49108
+ var __read$2 = (window && window.__read) || function (o, n) {
49109
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
49110
+ if (!m) return o;
49111
+ var i = m.call(o), r, ar = [], e;
49112
+ try {
49113
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
49114
+ }
49115
+ catch (error) { e = { error: error }; }
49116
+ finally {
49117
+ try {
49118
+ if (r && !r.done && (m = i["return"])) m.call(i);
49119
+ }
49120
+ finally { if (e) throw e.error; }
49121
+ }
49122
+ return ar;
49123
+ };
49124
+ var __values$2 = (window && window.__values) || function(o) {
49125
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
49126
+ if (m) return m.call(o);
49127
+ if (o && typeof o.length === "number") return {
49128
+ next: function () {
49129
+ if (o && i >= o.length) o = void 0;
49130
+ return { value: o && o[i++], done: !o };
49131
+ }
49132
+ };
49133
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
49134
+ };
48927
49135
  //////////////////////
48928
49136
  /// Constants
48929
49137
  //////////////////////
@@ -49888,8 +50096,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
49888
50096
  if (k + 1 >= coords.length) {
49889
50097
  continue;
49890
50098
  }
49891
- var _a = __read(coords[k], 2), lon1 = _a[0], lat1 = _a[1];
49892
- var _b = __read(coords[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
50099
+ var _a = __read$2(coords[k], 2), lon1 = _a[0], lat1 = _a[1];
50100
+ var _b = __read$2(coords[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
49893
50101
  // split the line by antimeridian
49894
50102
  // and break geodesic into two line segments
49895
50103
  if (Math.abs(lon2 - lon1) > 180.0) {
@@ -49960,8 +50168,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
49960
50168
  if (k + 1 >= geodesic.length) {
49961
50169
  continue;
49962
50170
  }
49963
- var _a = __read(geodesic[k], 2), lon1 = _a[0], lat1 = _a[1];
49964
- var _b = __read(geodesic[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
50171
+ var _a = __read$2(geodesic[k], 2), lon1 = _a[0], lat1 = _a[1];
50172
+ var _b = __read$2(geodesic[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
49965
50173
  // split the line by antimeridian
49966
50174
  // and break geodesic into two line segments
49967
50175
  if (Math.abs(lon2 - lon1) > 180.0) {
@@ -50172,7 +50380,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
50172
50380
  function getPixelHeading(origin, destination) {
50173
50381
  origin = getPosition(origin);
50174
50382
  destination = getPosition(destination);
50175
- var _a = __read(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
50383
+ var _a = __read$2(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
50176
50384
  var dx = (p2[0] - p1[0]);
50177
50385
  var dy = (p1[1] - p2[1]);
50178
50386
  var alpha = ((5 / 2 * Math.PI) - Math.atan2(dy, dx)) * INV_PI_BY_180 % 360;
@@ -50719,7 +50927,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
50719
50927
  });
50720
50928
  var lower = [];
50721
50929
  try {
50722
- for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
50930
+ for (var positions_1 = __values$2(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
50723
50931
  var position = positions_1_1.value;
50724
50932
  while (lower.length >= 2 && _cross(lower[lower.length - 2], lower[lower.length - 1], position) <= 0) {
50725
50933
  lower.pop();
@@ -51001,12 +51209,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
51001
51209
  return result;
51002
51210
  }
51003
51211
 
51212
+ var __extends$e = (window && window.__extends) || (function () {
51213
+ var extendStatics = function (d, b) {
51214
+ extendStatics = Object.setPrototypeOf ||
51215
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
51216
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
51217
+ return extendStatics(d, b);
51218
+ };
51219
+ return function (d, b) {
51220
+ if (typeof b !== "function" && b !== null)
51221
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
51222
+ extendStatics(d, b);
51223
+ function __() { this.constructor = d; }
51224
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51225
+ };
51226
+ })();
51004
51227
  /**
51005
51228
  * A GeoJSON Position object - an array that specifies the longitude and latitude of a location. The
51006
51229
  * full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
51007
51230
  */
51008
51231
  var Position = /** @class */ (function (_super) {
51009
- __extends(Position, _super);
51232
+ __extends$e(Position, _super);
51010
51233
  /**
51011
51234
  * Constructs a Position.
51012
51235
  * @param longitude The position's longitude.
@@ -51198,11 +51421,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
51198
51421
  return Polygon;
51199
51422
  }());
51200
51423
 
51424
+ var __extends$f = (window && window.__extends) || (function () {
51425
+ var extendStatics = function (d, b) {
51426
+ extendStatics = Object.setPrototypeOf ||
51427
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
51428
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
51429
+ return extendStatics(d, b);
51430
+ };
51431
+ return function (d, b) {
51432
+ if (typeof b !== "function" && b !== null)
51433
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
51434
+ extendStatics(d, b);
51435
+ function __() { this.constructor = d; }
51436
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51437
+ };
51438
+ })();
51439
+ var __values$3 = (window && window.__values) || function(o) {
51440
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
51441
+ if (m) return m.call(o);
51442
+ if (o && typeof o.length === "number") return {
51443
+ next: function () {
51444
+ if (o && i >= o.length) o = void 0;
51445
+ return { value: o && o[i++], done: !o };
51446
+ }
51447
+ };
51448
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
51449
+ };
51201
51450
  /**
51202
51451
  * A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
51203
51452
  */
51204
51453
  var Shape = /** @class */ (function (_super) {
51205
- __extends(Shape, _super);
51454
+ __extends$f(Shape, _super);
51206
51455
  function Shape(data, id, properties) {
51207
51456
  var _this = _super.call(this) || this;
51208
51457
  var geometry;
@@ -51274,7 +51523,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
51274
51523
  else if (geoType === "MultiLineString") {
51275
51524
  var pos = positions;
51276
51525
  try {
51277
- for (var pos_1 = __values(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
51526
+ for (var pos_1 = __values$3(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
51278
51527
  var p = pos_1_1.value;
51279
51528
  bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p));
51280
51529
  }
@@ -51290,7 +51539,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
51290
51539
  else if (geoType === "MultiPolygon") {
51291
51540
  var pos = positions;
51292
51541
  try {
51293
- for (var pos_2 = __values(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
51542
+ for (var pos_2 = __values$3(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
51294
51543
  var p1 = pos_2_1.value;
51295
51544
  // only need to check the exterior ring of Polygon
51296
51545
  bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p1[0]));
@@ -51498,6 +51747,32 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
51498
51747
  return Shape;
51499
51748
  }(EventEmitter));
51500
51749
 
51750
+ var __extends$g = (window && window.__extends) || (function () {
51751
+ var extendStatics = function (d, b) {
51752
+ extendStatics = Object.setPrototypeOf ||
51753
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
51754
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
51755
+ return extendStatics(d, b);
51756
+ };
51757
+ return function (d, b) {
51758
+ if (typeof b !== "function" && b !== null)
51759
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
51760
+ extendStatics(d, b);
51761
+ function __() { this.constructor = d; }
51762
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51763
+ };
51764
+ })();
51765
+ var __values$4 = (window && window.__values) || function(o) {
51766
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
51767
+ if (m) return m.call(o);
51768
+ if (o && typeof o.length === "number") return {
51769
+ next: function () {
51770
+ if (o && i >= o.length) o = void 0;
51771
+ return { value: o && o[i++], done: !o };
51772
+ }
51773
+ };
51774
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
51775
+ };
51501
51776
  /**
51502
51777
  * A GeoJSON BoundingBox object - an array that defines a shape whose edges follow lines of constant longitude,
51503
51778
  * latitude, and elevation. All axes of the most southwesterly point are followed by all axes of the more northeasterly
@@ -51505,7 +51780,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
51505
51780
  * [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
51506
51781
  */
51507
51782
  var BoundingBox = /** @class */ (function (_super) {
51508
- __extends(BoundingBox, _super);
51783
+ __extends$g(BoundingBox, _super);
51509
51784
  function BoundingBox(southwestPositionOrPositions, northeastPosition) {
51510
51785
  var _this = this;
51511
51786
  if (southwestPositionOrPositions && northeastPosition) {
@@ -51911,7 +52186,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
51911
52186
  var bounds = null;
51912
52187
  if (Array.isArray(data) && data.length > 0) {
51913
52188
  try {
51914
- for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
52189
+ for (var data_1 = __values$4(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
51915
52190
  var datum = data_1_1.value;
51916
52191
  tempBounds = BoundingBox.fromData(datum);
51917
52192
  if (tempBounds != null) {
@@ -52222,6 +52497,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
52222
52497
  return MultiPolygon;
52223
52498
  }());
52224
52499
 
52500
+ var __extends$h = (window && window.__extends) || (function () {
52501
+ var extendStatics = function (d, b) {
52502
+ extendStatics = Object.setPrototypeOf ||
52503
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
52504
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
52505
+ return extendStatics(d, b);
52506
+ };
52507
+ return function (d, b) {
52508
+ if (typeof b !== "function" && b !== null)
52509
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
52510
+ extendStatics(d, b);
52511
+ function __() { this.constructor = d; }
52512
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
52513
+ };
52514
+ })();
52225
52515
  //Based on: https://github.com/mapbox/mapbox-gl-js/blob/main/src/geo/mercator_coordinate.js
52226
52516
  /**
52227
52517
  * A `MercatorPoint` object represents a projected three dimensional position.
@@ -52238,7 +52528,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
52238
52528
  * The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
52239
52529
  */
52240
52530
  var MercatorPoint = /** @class */ (function (_super) {
52241
- __extends(MercatorPoint, _super);
52531
+ __extends$h(MercatorPoint, _super);
52242
52532
  /**
52243
52533
  * Constructs a MercatorPoint.
52244
52534
  * @param x A points x position in mercator units.
@@ -52477,6 +52767,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
52477
52767
  return arrayPoints_1(points, tolerance, true);
52478
52768
  }
52479
52769
 
52770
+ var __values$5 = (window && window.__values) || function(o) {
52771
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
52772
+ if (m) return m.call(o);
52773
+ if (o && typeof o.length === "number") return {
52774
+ next: function () {
52775
+ if (o && i >= o.length) o = void 0;
52776
+ return { value: o && o[i++], done: !o };
52777
+ }
52778
+ };
52779
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
52780
+ };
52480
52781
  /**
52481
52782
  * An Affine Transform class generated from a set of reference points.
52482
52783
  */
@@ -52526,7 +52827,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
52526
52827
  if (points && Array.isArray(points) && Array.isArray(points[0])) {
52527
52828
  var pos = [];
52528
52829
  try {
52529
- for (var points_1 = __values(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
52830
+ for (var points_1 = __values$5(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
52530
52831
  var subPoints = points_1_1.value;
52531
52832
  pos.push(this.transform(subPoints, transformMatrix, decimals));
52532
52833
  }
@@ -52726,11 +53027,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
52726
53027
  simplify: simplify
52727
53028
  });
52728
53029
 
53030
+ var __extends$i = (window && window.__extends) || (function () {
53031
+ var extendStatics = function (d, b) {
53032
+ extendStatics = Object.setPrototypeOf ||
53033
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53034
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
53035
+ return extendStatics(d, b);
53036
+ };
53037
+ return function (d, b) {
53038
+ if (typeof b !== "function" && b !== null)
53039
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
53040
+ extendStatics(d, b);
53041
+ function __() { this.constructor = d; }
53042
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53043
+ };
53044
+ })();
52729
53045
  /**
52730
53046
  * The options for a ZoomControl object.
52731
53047
  */
52732
53048
  var ZoomControlOptions = /** @class */ (function (_super) {
52733
- __extends(ZoomControlOptions, _super);
53049
+ __extends$i(ZoomControlOptions, _super);
52734
53050
  function ZoomControlOptions() {
52735
53051
  var _this = _super !== null && _super.apply(this, arguments) || this;
52736
53052
  /**
@@ -52750,11 +53066,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
52750
53066
  return ZoomControlOptions;
52751
53067
  }(Options));
52752
53068
 
53069
+ var __extends$j = (window && window.__extends) || (function () {
53070
+ var extendStatics = function (d, b) {
53071
+ extendStatics = Object.setPrototypeOf ||
53072
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53073
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
53074
+ return extendStatics(d, b);
53075
+ };
53076
+ return function (d, b) {
53077
+ if (typeof b !== "function" && b !== null)
53078
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
53079
+ extendStatics(d, b);
53080
+ function __() { this.constructor = d; }
53081
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53082
+ };
53083
+ })();
52753
53084
  /**
52754
53085
  * A control for changing the zoom of the map.
52755
53086
  */
52756
53087
  var ZoomControl = /** @class */ (function (_super) {
52757
- __extends(ZoomControl, _super);
53088
+ __extends$j(ZoomControl, _super);
52758
53089
  /**
52759
53090
  * Constructs a ZoomControl.
52760
53091
  * @param options The options for the control.
@@ -52916,6 +53247,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
52916
53247
 
52917
53248
  var cloneDeepWith_1 = cloneDeepWith;
52918
53249
 
53250
+ var __extends$k = (window && window.__extends) || (function () {
53251
+ var extendStatics = function (d, b) {
53252
+ extendStatics = Object.setPrototypeOf ||
53253
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53254
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
53255
+ return extendStatics(d, b);
53256
+ };
53257
+ return function (d, b) {
53258
+ if (typeof b !== "function" && b !== null)
53259
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
53260
+ extendStatics(d, b);
53261
+ function __() { this.constructor = d; }
53262
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53263
+ };
53264
+ })();
52919
53265
  /**
52920
53266
  * A data source for managing shape data that will be displayed on the map.
52921
53267
  * A data source must be added to a layer before it is visible on the map.
@@ -52923,7 +53269,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
52923
53269
  * @module Object Definitions
52924
53270
  */
52925
53271
  var DataSourceOptions = /** @class */ (function (_super) {
52926
- __extends(DataSourceOptions, _super);
53272
+ __extends$k(DataSourceOptions, _super);
52927
53273
  function DataSourceOptions() {
52928
53274
  var _this = _super !== null && _super.apply(this, arguments) || this;
52929
53275
  /*
@@ -52978,12 +53324,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
52978
53324
  return DataSourceOptions;
52979
53325
  }(Options));
52980
53326
 
53327
+ var __extends$l = (window && window.__extends) || (function () {
53328
+ var extendStatics = function (d, b) {
53329
+ extendStatics = Object.setPrototypeOf ||
53330
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53331
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
53332
+ return extendStatics(d, b);
53333
+ };
53334
+ return function (d, b) {
53335
+ if (typeof b !== "function" && b !== null)
53336
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
53337
+ extendStatics(d, b);
53338
+ function __() { this.constructor = d; }
53339
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53340
+ };
53341
+ })();
52981
53342
  /**
52982
53343
  * A base abstract class in which all other source objects extend.
52983
53344
  * A source must be added to a layer before it is visible on the map.
52984
53345
  */
52985
53346
  var Source = /** @class */ (function (_super) {
52986
- __extends(Source, _super);
53347
+ __extends$l(Source, _super);
52987
53348
  function Source(id) {
52988
53349
  var _this = _super.call(this) || this;
52989
53350
  _this.id = id || uuidRandom();
@@ -53017,13 +53378,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53017
53378
  return Source;
53018
53379
  }(EventEmitter));
53019
53380
 
53381
+ var __extends$m = (window && window.__extends) || (function () {
53382
+ var extendStatics = function (d, b) {
53383
+ extendStatics = Object.setPrototypeOf ||
53384
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53385
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
53386
+ return extendStatics(d, b);
53387
+ };
53388
+ return function (d, b) {
53389
+ if (typeof b !== "function" && b !== null)
53390
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
53391
+ extendStatics(d, b);
53392
+ function __() { this.constructor = d; }
53393
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53394
+ };
53395
+ })();
53396
+ var __values$6 = (window && window.__values) || function(o) {
53397
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
53398
+ if (m) return m.call(o);
53399
+ if (o && typeof o.length === "number") return {
53400
+ next: function () {
53401
+ if (o && i >= o.length) o = void 0;
53402
+ return { value: o && o[i++], done: !o };
53403
+ }
53404
+ };
53405
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
53406
+ };
53020
53407
  /**
53021
53408
  * A data source class that makes it easy to manage shapes data that will be displayed on the map.
53022
53409
  * A data source must be added to a layer before it is visible on the map.
53023
53410
  * The DataSource class may be used with the SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, and HeatMapLayer.
53024
53411
  */
53025
53412
  var DataSource = /** @class */ (function (_super) {
53026
- __extends(DataSource, _super);
53413
+ __extends$m(DataSource, _super);
53027
53414
  /**
53028
53415
  * A data source class that makes it easy to manage shapes data that will be displayed on the map.
53029
53416
  * A data source must be added to a layer before it is visible on the map.
@@ -53205,7 +53592,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53205
53592
  var e_1, _a;
53206
53593
  var shapes = Array.isArray(shape) ? shape : [shape];
53207
53594
  try {
53208
- for (var shapes_1 = __values(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
53595
+ for (var shapes_1 = __values$6(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
53209
53596
  var s = shapes_1_1.value;
53210
53597
  if (typeof s === "number") {
53211
53598
  this._removeByIndex(s);
@@ -53232,7 +53619,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53232
53619
  var e_2, _a;
53233
53620
  var ids = Array.isArray(id) ? id : [id];
53234
53621
  try {
53235
- for (var ids_1 = __values(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
53622
+ for (var ids_1 = __values$6(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
53236
53623
  var i = ids_1_1.value;
53237
53624
  this._removeById(i);
53238
53625
  }
@@ -53371,7 +53758,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53371
53758
  data = Array.isArray(data) ? data : [data];
53372
53759
  if (typeof index !== "number") {
53373
53760
  try {
53374
- for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
53761
+ for (var data_1 = __values$6(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
53375
53762
  var d = data_1_1.value;
53376
53763
  this.shapes.push(d);
53377
53764
  this.shapesMap.set(d.getId(), this.shapes.length - 1);
@@ -53392,7 +53779,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53392
53779
  }
53393
53780
  }
53394
53781
  try {
53395
- for (var data_2 = __values(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
53782
+ for (var data_2 = __values$6(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
53396
53783
  var d = data_2_1.value;
53397
53784
  d._setDataSource(this);
53398
53785
  }
@@ -53449,6 +53836,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53449
53836
  return DataSource;
53450
53837
  }(Source));
53451
53838
 
53839
+ var __extends$n = (window && window.__extends) || (function () {
53840
+ var extendStatics = function (d, b) {
53841
+ extendStatics = Object.setPrototypeOf ||
53842
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53843
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
53844
+ return extendStatics(d, b);
53845
+ };
53846
+ return function (d, b) {
53847
+ if (typeof b !== "function" && b !== null)
53848
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
53849
+ extendStatics(d, b);
53850
+ function __() { this.constructor = d; }
53851
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53852
+ };
53853
+ })();
53452
53854
  /**
53453
53855
  * A data source for managing shape data that will be displayed on the map.
53454
53856
  * A data source must be added to a layer before it is visible on the map.
@@ -53456,7 +53858,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53456
53858
  * @module Object Definitions
53457
53859
  */
53458
53860
  var VectorTileSourceOptions = /** @class */ (function (_super) {
53459
- __extends(VectorTileSourceOptions, _super);
53861
+ __extends$n(VectorTileSourceOptions, _super);
53460
53862
  function VectorTileSourceOptions() {
53461
53863
  /*
53462
53864
  * TODO:
@@ -53509,12 +53911,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53509
53911
  return VectorTileSourceOptions;
53510
53912
  }(Options));
53511
53913
 
53914
+ var __extends$o = (window && window.__extends) || (function () {
53915
+ var extendStatics = function (d, b) {
53916
+ extendStatics = Object.setPrototypeOf ||
53917
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53918
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
53919
+ return extendStatics(d, b);
53920
+ };
53921
+ return function (d, b) {
53922
+ if (typeof b !== "function" && b !== null)
53923
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
53924
+ extendStatics(d, b);
53925
+ function __() { this.constructor = d; }
53926
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53927
+ };
53928
+ })();
53512
53929
  /**
53513
53930
  * A vector tile source describes how to access a vector tile layer.
53514
53931
  * Vector tile sources can be used with; SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer and VectorTileLayer.
53515
53932
  */
53516
53933
  var VectorTileSource = /** @class */ (function (_super) {
53517
- __extends(VectorTileSource, _super);
53934
+ __extends$o(VectorTileSource, _super);
53518
53935
  function VectorTileSource(id, options) {
53519
53936
  var _this = _super.call(this, id) || this;
53520
53937
  _this.options = new VectorTileSourceOptions().merge(cloneDeep_1(options));
@@ -53569,11 +53986,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53569
53986
  VectorTileSource: VectorTileSource
53570
53987
  });
53571
53988
 
53989
+ var __extends$p = (window && window.__extends) || (function () {
53990
+ var extendStatics = function (d, b) {
53991
+ extendStatics = Object.setPrototypeOf ||
53992
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
53993
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
53994
+ return extendStatics(d, b);
53995
+ };
53996
+ return function (d, b) {
53997
+ if (typeof b !== "function" && b !== null)
53998
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
53999
+ extendStatics(d, b);
54000
+ function __() { this.constructor = d; }
54001
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54002
+ };
54003
+ })();
53572
54004
  /**
53573
54005
  * Abstract class for other layer classes to extend.
53574
54006
  */
53575
54007
  var Layer = /** @class */ (function (_super) {
53576
- __extends(Layer, _super);
54008
+ __extends$p(Layer, _super);
53577
54009
  function Layer(id) {
53578
54010
  var _this =
53579
54011
  // Assign an random id using a UUID if none was specified.
@@ -53678,11 +54110,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53678
54110
  return Layer;
53679
54111
  }(EventEmitter));
53680
54112
 
54113
+ var __extends$q = (window && window.__extends) || (function () {
54114
+ var extendStatics = function (d, b) {
54115
+ extendStatics = Object.setPrototypeOf ||
54116
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54117
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
54118
+ return extendStatics(d, b);
54119
+ };
54120
+ return function (d, b) {
54121
+ if (typeof b !== "function" && b !== null)
54122
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54123
+ extendStatics(d, b);
54124
+ function __() { this.constructor = d; }
54125
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54126
+ };
54127
+ })();
53681
54128
  /**
53682
54129
  * A base class which all other layer options inherit from.
53683
54130
  */
53684
54131
  var LayerOptions = /** @class */ (function (_super) {
53685
- __extends(LayerOptions, _super);
54132
+ __extends$q(LayerOptions, _super);
53686
54133
  function LayerOptions() {
53687
54134
  var _this = _super !== null && _super.apply(this, arguments) || this;
53688
54135
  /**
@@ -53729,11 +54176,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53729
54176
  return LayerOptions;
53730
54177
  }(Options));
53731
54178
 
54179
+ var __extends$r = (window && window.__extends) || (function () {
54180
+ var extendStatics = function (d, b) {
54181
+ extendStatics = Object.setPrototypeOf ||
54182
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54183
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
54184
+ return extendStatics(d, b);
54185
+ };
54186
+ return function (d, b) {
54187
+ if (typeof b !== "function" && b !== null)
54188
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54189
+ extendStatics(d, b);
54190
+ function __() { this.constructor = d; }
54191
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54192
+ };
54193
+ })();
53732
54194
  /**
53733
54195
  * Options used when rendering Point objects in a BubbleLayer.
53734
54196
  */
53735
54197
  var BubbleLayerOptions = /** @class */ (function (_super) {
53736
- __extends(BubbleLayerOptions, _super);
54198
+ __extends$r(BubbleLayerOptions, _super);
53737
54199
  function BubbleLayerOptions() {
53738
54200
  var _this = _super !== null && _super.apply(this, arguments) || this;
53739
54201
  /**
@@ -53803,11 +54265,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53803
54265
  return BubbleLayerOptions;
53804
54266
  }(LayerOptions));
53805
54267
 
54268
+ var __extends$s = (window && window.__extends) || (function () {
54269
+ var extendStatics = function (d, b) {
54270
+ extendStatics = Object.setPrototypeOf ||
54271
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54272
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
54273
+ return extendStatics(d, b);
54274
+ };
54275
+ return function (d, b) {
54276
+ if (typeof b !== "function" && b !== null)
54277
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54278
+ extendStatics(d, b);
54279
+ function __() { this.constructor = d; }
54280
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54281
+ };
54282
+ })();
53806
54283
  /**
53807
54284
  * Renders Point objects as scalable circles (bubbles).
53808
54285
  */
53809
54286
  var BubbleLayer = /** @class */ (function (_super) {
53810
- __extends(BubbleLayer, _super);
54287
+ __extends$s(BubbleLayer, _super);
53811
54288
  /**
53812
54289
  * Constructs a new BubbleLayer.
53813
54290
  * @param source The id or instance of a data source which the layer will render.
@@ -53917,11 +54394,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53917
54394
  return BubbleLayer;
53918
54395
  }(Layer));
53919
54396
 
54397
+ var __extends$t = (window && window.__extends) || (function () {
54398
+ var extendStatics = function (d, b) {
54399
+ extendStatics = Object.setPrototypeOf ||
54400
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54401
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
54402
+ return extendStatics(d, b);
54403
+ };
54404
+ return function (d, b) {
54405
+ if (typeof b !== "function" && b !== null)
54406
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54407
+ extendStatics(d, b);
54408
+ function __() { this.constructor = d; }
54409
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54410
+ };
54411
+ })();
53920
54412
  /**
53921
54413
  * Options used when rendering Point objects in a HeatMapLayer.
53922
54414
  */
53923
54415
  var HeatMapLayerOptions = /** @class */ (function (_super) {
53924
- __extends(HeatMapLayerOptions, _super);
54416
+ __extends$t(HeatMapLayerOptions, _super);
53925
54417
  function HeatMapLayerOptions() {
53926
54418
  var _this = _super !== null && _super.apply(this, arguments) || this;
53927
54419
  /**
@@ -53988,11 +54480,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
53988
54480
  return HeatMapLayerOptions;
53989
54481
  }(LayerOptions));
53990
54482
 
54483
+ var __extends$u = (window && window.__extends) || (function () {
54484
+ var extendStatics = function (d, b) {
54485
+ extendStatics = Object.setPrototypeOf ||
54486
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54487
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
54488
+ return extendStatics(d, b);
54489
+ };
54490
+ return function (d, b) {
54491
+ if (typeof b !== "function" && b !== null)
54492
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54493
+ extendStatics(d, b);
54494
+ function __() { this.constructor = d; }
54495
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54496
+ };
54497
+ })();
53991
54498
  /**
53992
54499
  * Represent the density of data using different colors (HeatMap).
53993
54500
  */
53994
54501
  var HeatMapLayer = /** @class */ (function (_super) {
53995
- __extends(HeatMapLayer, _super);
54502
+ __extends$u(HeatMapLayer, _super);
53996
54503
  /**
53997
54504
  * Constructs a new HeatMapLayer.
53998
54505
  * @param source The id or instance of a data source which the layer will render.
@@ -54096,11 +54603,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54096
54603
  return HeatMapLayer;
54097
54604
  }(Layer));
54098
54605
 
54606
+ var __extends$v = (window && window.__extends) || (function () {
54607
+ var extendStatics = function (d, b) {
54608
+ extendStatics = Object.setPrototypeOf ||
54609
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54610
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
54611
+ return extendStatics(d, b);
54612
+ };
54613
+ return function (d, b) {
54614
+ if (typeof b !== "function" && b !== null)
54615
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54616
+ extendStatics(d, b);
54617
+ function __() { this.constructor = d; }
54618
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54619
+ };
54620
+ })();
54099
54621
  /**
54100
54622
  * Options used when rendering canvas, image, raster tile, and video layers
54101
54623
  */
54102
54624
  var MediaLayerOptions = /** @class */ (function (_super) {
54103
- __extends(MediaLayerOptions, _super);
54625
+ __extends$v(MediaLayerOptions, _super);
54104
54626
  function MediaLayerOptions() {
54105
54627
  var _this = _super !== null && _super.apply(this, arguments) || this;
54106
54628
  /**
@@ -54152,11 +54674,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54152
54674
  return MediaLayerOptions;
54153
54675
  }(LayerOptions));
54154
54676
 
54677
+ var __extends$w = (window && window.__extends) || (function () {
54678
+ var extendStatics = function (d, b) {
54679
+ extendStatics = Object.setPrototypeOf ||
54680
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54681
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
54682
+ return extendStatics(d, b);
54683
+ };
54684
+ return function (d, b) {
54685
+ if (typeof b !== "function" && b !== null)
54686
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54687
+ extendStatics(d, b);
54688
+ function __() { this.constructor = d; }
54689
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54690
+ };
54691
+ })();
54155
54692
  /**
54156
54693
  * Options used when rendering Point objects in a ImageLayer.
54157
54694
  */
54158
54695
  var ImageLayerOptions = /** @class */ (function (_super) {
54159
- __extends(ImageLayerOptions, _super);
54696
+ __extends$w(ImageLayerOptions, _super);
54160
54697
  function ImageLayerOptions() {
54161
54698
  var _this = _super !== null && _super.apply(this, arguments) || this;
54162
54699
  /**
@@ -54186,12 +54723,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54186
54723
  return ImageLayerOptions;
54187
54724
  }(MediaLayerOptions));
54188
54725
 
54726
+ var __extends$x = (window && window.__extends) || (function () {
54727
+ var extendStatics = function (d, b) {
54728
+ extendStatics = Object.setPrototypeOf ||
54729
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54730
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
54731
+ return extendStatics(d, b);
54732
+ };
54733
+ return function (d, b) {
54734
+ if (typeof b !== "function" && b !== null)
54735
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54736
+ extendStatics(d, b);
54737
+ function __() { this.constructor = d; }
54738
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54739
+ };
54740
+ })();
54189
54741
  /**
54190
54742
  * Abstract class for other layer classes which have to build sources.
54191
54743
  * @internal
54192
54744
  */
54193
54745
  var SourceBuildingLayer = /** @class */ (function (_super) {
54194
- __extends(SourceBuildingLayer, _super);
54746
+ __extends$x(SourceBuildingLayer, _super);
54195
54747
  function SourceBuildingLayer() {
54196
54748
  return _super !== null && _super.apply(this, arguments) || this;
54197
54749
  }
@@ -54206,11 +54758,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54206
54758
  return SourceBuildingLayer;
54207
54759
  }(Layer));
54208
54760
 
54761
+ var __extends$y = (window && window.__extends) || (function () {
54762
+ var extendStatics = function (d, b) {
54763
+ extendStatics = Object.setPrototypeOf ||
54764
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54765
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
54766
+ return extendStatics(d, b);
54767
+ };
54768
+ return function (d, b) {
54769
+ if (typeof b !== "function" && b !== null)
54770
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54771
+ extendStatics(d, b);
54772
+ function __() { this.constructor = d; }
54773
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54774
+ };
54775
+ })();
54209
54776
  /**
54210
54777
  * Overlays an image on the map with each corner anchored to a coordinate on the map. Also known as a ground or image overlay.
54211
54778
  */
54212
54779
  var ImageLayer = /** @class */ (function (_super) {
54213
- __extends(ImageLayer, _super);
54780
+ __extends$y(ImageLayer, _super);
54214
54781
  /**
54215
54782
  * Constructs a new ImageLayer.
54216
54783
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -54413,12 +54980,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54413
54980
  return ImageLayer;
54414
54981
  }(SourceBuildingLayer));
54415
54982
 
54983
+ var __extends$z = (window && window.__extends) || (function () {
54984
+ var extendStatics = function (d, b) {
54985
+ extendStatics = Object.setPrototypeOf ||
54986
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54987
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
54988
+ return extendStatics(d, b);
54989
+ };
54990
+ return function (d, b) {
54991
+ if (typeof b !== "function" && b !== null)
54992
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
54993
+ extendStatics(d, b);
54994
+ function __() { this.constructor = d; }
54995
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
54996
+ };
54997
+ })();
54416
54998
  /**
54417
54999
  * Options used when rendering SimpleLine, SimplePolygon, CirclePolygon,
54418
55000
  * LineString, MultiLineString, Polygon, and MultiPolygon objects in a line layer.
54419
55001
  */
54420
55002
  var LineLayerOptions = /** @class */ (function (_super) {
54421
- __extends(LineLayerOptions, _super);
55003
+ __extends$z(LineLayerOptions, _super);
54422
55004
  function LineLayerOptions() {
54423
55005
  var _this = _super !== null && _super.apply(this, arguments) || this;
54424
55006
  /**
@@ -54518,12 +55100,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54518
55100
  return LineLayerOptions;
54519
55101
  }(LayerOptions));
54520
55102
 
55103
+ var __extends$A = (window && window.__extends) || (function () {
55104
+ var extendStatics = function (d, b) {
55105
+ extendStatics = Object.setPrototypeOf ||
55106
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
55107
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
55108
+ return extendStatics(d, b);
55109
+ };
55110
+ return function (d, b) {
55111
+ if (typeof b !== "function" && b !== null)
55112
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55113
+ extendStatics(d, b);
55114
+ function __() { this.constructor = d; }
55115
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
55116
+ };
55117
+ })();
55118
+ var __assign = (window && window.__assign) || function () {
55119
+ __assign = Object.assign || function(t) {
55120
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
55121
+ s = arguments[i];
55122
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
55123
+ t[p] = s[p];
55124
+ }
55125
+ return t;
55126
+ };
55127
+ return __assign.apply(this, arguments);
55128
+ };
54521
55129
  /**
54522
55130
  * Renders line data on the map. Can be used with SimpleLine, SimplePolygon,
54523
55131
  * CirclePolygon, LineString, MultiLineString, Polygon, and MultiPolygon objects.
54524
55132
  */
54525
55133
  var LineLayer = /** @class */ (function (_super) {
54526
- __extends(LineLayer, _super);
55134
+ __extends$A(LineLayer, _super);
54527
55135
  /**
54528
55136
  * Constructs a new LineLayer.
54529
55137
  * @param source The id or instance of a data source which the layer will render.
@@ -54614,11 +55222,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54614
55222
  return LineLayer;
54615
55223
  }(Layer));
54616
55224
 
55225
+ var __extends$B = (window && window.__extends) || (function () {
55226
+ var extendStatics = function (d, b) {
55227
+ extendStatics = Object.setPrototypeOf ||
55228
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
55229
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
55230
+ return extendStatics(d, b);
55231
+ };
55232
+ return function (d, b) {
55233
+ if (typeof b !== "function" && b !== null)
55234
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55235
+ extendStatics(d, b);
55236
+ function __() { this.constructor = d; }
55237
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
55238
+ };
55239
+ })();
54617
55240
  /**
54618
55241
  * Options used when rendering `Polygon` and `MultiPolygon` objects in a `PolygonExtrusionLayer`.
54619
55242
  */
54620
55243
  var PolygonExtrusionLayerOptions = /** @class */ (function (_super) {
54621
- __extends(PolygonExtrusionLayerOptions, _super);
55244
+ __extends$B(PolygonExtrusionLayerOptions, _super);
54622
55245
  function PolygonExtrusionLayerOptions() {
54623
55246
  var _this = _super !== null && _super.apply(this, arguments) || this;
54624
55247
  /**
@@ -54691,11 +55314,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54691
55314
  return PolygonExtrusionLayerOptions;
54692
55315
  }(LayerOptions));
54693
55316
 
55317
+ var __extends$C = (window && window.__extends) || (function () {
55318
+ var extendStatics = function (d, b) {
55319
+ extendStatics = Object.setPrototypeOf ||
55320
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
55321
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
55322
+ return extendStatics(d, b);
55323
+ };
55324
+ return function (d, b) {
55325
+ if (typeof b !== "function" && b !== null)
55326
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55327
+ extendStatics(d, b);
55328
+ function __() { this.constructor = d; }
55329
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
55330
+ };
55331
+ })();
55332
+ var __assign$1 = (window && window.__assign) || function () {
55333
+ __assign$1 = Object.assign || function(t) {
55334
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
55335
+ s = arguments[i];
55336
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
55337
+ t[p] = s[p];
55338
+ }
55339
+ return t;
55340
+ };
55341
+ return __assign$1.apply(this, arguments);
55342
+ };
54694
55343
  /**
54695
55344
  * Renders extruded filled `Polygon` and `MultiPolygon` objects on the map.
54696
55345
  */
54697
55346
  var PolygonExtrusionLayer = /** @class */ (function (_super) {
54698
- __extends(PolygonExtrusionLayer, _super);
55347
+ __extends$C(PolygonExtrusionLayer, _super);
54699
55348
  /**
54700
55349
  * Constructs a new PolygonExtrusionLayer.
54701
55350
  * @param source The id or instance of a data source which the layer will render.
@@ -54755,11 +55404,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54755
55404
  * @internal
54756
55405
  */
54757
55406
  PolygonExtrusionLayer.prototype._buildLayers = function () {
54758
- var layer = __assign(__assign(__assign(__assign({ id: this.id, type: "fill-extrusion" }, (this.options.sourceLayer && { "source-layer": this.options.sourceLayer })), { source: this.options.source instanceof Source ?
55407
+ var layer = __assign$1(__assign$1(__assign$1(__assign$1({ id: this.id, type: "fill-extrusion" }, (this.options.sourceLayer && { "source-layer": this.options.sourceLayer })), { source: this.options.source instanceof Source ?
54759
55408
  this.options.source.getId() :
54760
55409
  this.options.source, layout: {
54761
55410
  visibility: this.options.visible ? "visible" : "none",
54762
- }, paint: __assign(__assign({ "fill-extrusion-base": this.options.base, "fill-extrusion-height": this.options.height, "fill-extrusion-opacity": this.options.fillOpacity }, (this.options.fillPattern ?
55411
+ }, paint: __assign$1(__assign$1({ "fill-extrusion-base": this.options.base, "fill-extrusion-height": this.options.height, "fill-extrusion-opacity": this.options.fillOpacity }, (this.options.fillPattern ?
54763
55412
  { "fill-extrusion-pattern": this.options.fillPattern } :
54764
55413
  { "fill-extrusion-color": this.options.fillColor })), { "fill-extrusion-translate": this.options.translate, "fill-extrusion-translate-anchor": this.options.translateAnchor, "fill-extrusion-vertical-gradient": this.options.verticalGradient }) }), (this.options.filter && { filter: this.options.filter })), { minzoom: this.options.minZoom, maxzoom: this.options.maxZoom });
54765
55414
  return [layer];
@@ -54783,11 +55432,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54783
55432
  return PolygonExtrusionLayer;
54784
55433
  }(Layer));
54785
55434
 
55435
+ var __extends$D = (window && window.__extends) || (function () {
55436
+ var extendStatics = function (d, b) {
55437
+ extendStatics = Object.setPrototypeOf ||
55438
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
55439
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
55440
+ return extendStatics(d, b);
55441
+ };
55442
+ return function (d, b) {
55443
+ if (typeof b !== "function" && b !== null)
55444
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55445
+ extendStatics(d, b);
55446
+ function __() { this.constructor = d; }
55447
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
55448
+ };
55449
+ })();
55450
+ var __values$7 = (window && window.__values) || function(o) {
55451
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
55452
+ if (m) return m.call(o);
55453
+ if (o && typeof o.length === "number") return {
55454
+ next: function () {
55455
+ if (o && i >= o.length) o = void 0;
55456
+ return { value: o && o[i++], done: !o };
55457
+ }
55458
+ };
55459
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
55460
+ };
55461
+ var __read$3 = (window && window.__read) || function (o, n) {
55462
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
55463
+ if (!m) return o;
55464
+ var i = m.call(o), r, ar = [], e;
55465
+ try {
55466
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
55467
+ }
55468
+ catch (error) { e = { error: error }; }
55469
+ finally {
55470
+ try {
55471
+ if (r && !r.done && (m = i["return"])) m.call(i);
55472
+ }
55473
+ finally { if (e) throw e.error; }
55474
+ }
55475
+ return ar;
55476
+ };
55477
+ var __spreadArray = (window && window.__spreadArray) || function (to, from) {
55478
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
55479
+ to[j] = from[i];
55480
+ return to;
55481
+ };
54786
55482
  /**
54787
55483
  * Options used when rendering Polygon and MultiPolygon objects in a PolygonLayer.
54788
55484
  */
54789
55485
  var PolygonLayerOptions = /** @class */ (function (_super) {
54790
- __extends(PolygonLayerOptions, _super);
55486
+ __extends$D(PolygonLayerOptions, _super);
54791
55487
  function PolygonLayerOptions() {
54792
55488
  var _this = _super !== null && _super.apply(this, arguments) || this;
54793
55489
  /**
@@ -54831,7 +55527,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54831
55527
  var isNewColorSet = false;
54832
55528
  var isNewPatternSet = false;
54833
55529
  try {
54834
- for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
55530
+ for (var valueList_1 = __values$7(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
54835
55531
  var value = valueList_1_1.value;
54836
55532
  if (value) {
54837
55533
  if (value.hasOwnProperty("fillColor")) {
@@ -54853,7 +55549,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54853
55549
  finally { if (e_1) throw e_1.error; }
54854
55550
  }
54855
55551
  // Then execute the standard merge behavior.
54856
- var merged = _super.prototype.merge.apply(this, __spread(valueList));
55552
+ var merged = _super.prototype.merge.apply(this, __spreadArray([], __read$3(valueList)));
54857
55553
  if (isNewColorSet) {
54858
55554
  merged.fillPattern = undefined;
54859
55555
  }
@@ -54865,11 +55561,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54865
55561
  return PolygonLayerOptions;
54866
55562
  }(LayerOptions));
54867
55563
 
55564
+ var __extends$E = (window && window.__extends) || (function () {
55565
+ var extendStatics = function (d, b) {
55566
+ extendStatics = Object.setPrototypeOf ||
55567
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
55568
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
55569
+ return extendStatics(d, b);
55570
+ };
55571
+ return function (d, b) {
55572
+ if (typeof b !== "function" && b !== null)
55573
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55574
+ extendStatics(d, b);
55575
+ function __() { this.constructor = d; }
55576
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
55577
+ };
55578
+ })();
54868
55579
  /**
54869
55580
  * Renders filled Polygon and MultiPolygon objects on the map.
54870
55581
  */
54871
55582
  var PolygonLayer = /** @class */ (function (_super) {
54872
- __extends(PolygonLayer, _super);
55583
+ __extends$E(PolygonLayer, _super);
54873
55584
  /**
54874
55585
  * Constructs a new PolygonLayer.
54875
55586
  * @param source The id or instance of a data source which the layer will render.
@@ -54975,11 +55686,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
54975
55686
  return PolygonLayer;
54976
55687
  }(Layer));
54977
55688
 
55689
+ var __extends$F = (window && window.__extends) || (function () {
55690
+ var extendStatics = function (d, b) {
55691
+ extendStatics = Object.setPrototypeOf ||
55692
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
55693
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
55694
+ return extendStatics(d, b);
55695
+ };
55696
+ return function (d, b) {
55697
+ if (typeof b !== "function" && b !== null)
55698
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55699
+ extendStatics(d, b);
55700
+ function __() { this.constructor = d; }
55701
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
55702
+ };
55703
+ })();
54978
55704
  /**
54979
55705
  * Options used to customize the icons in a SymbolLayer
54980
55706
  */
54981
55707
  var IconOptions = /** @class */ (function (_super) {
54982
- __extends(IconOptions, _super);
55708
+ __extends$F(IconOptions, _super);
54983
55709
  function IconOptions() {
54984
55710
  var _this = _super !== null && _super.apply(this, arguments) || this;
54985
55711
  /**
@@ -55089,11 +55815,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55089
55815
  return IconOptions;
55090
55816
  }(Options));
55091
55817
 
55818
+ var __extends$G = (window && window.__extends) || (function () {
55819
+ var extendStatics = function (d, b) {
55820
+ extendStatics = Object.setPrototypeOf ||
55821
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
55822
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
55823
+ return extendStatics(d, b);
55824
+ };
55825
+ return function (d, b) {
55826
+ if (typeof b !== "function" && b !== null)
55827
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55828
+ extendStatics(d, b);
55829
+ function __() { this.constructor = d; }
55830
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
55831
+ };
55832
+ })();
55092
55833
  /**
55093
55834
  * Options used to customize the text in a SymbolLayer
55094
55835
  */
55095
55836
  var TextOptions = /** @class */ (function (_super) {
55096
- __extends(TextOptions, _super);
55837
+ __extends$G(TextOptions, _super);
55097
55838
  function TextOptions() {
55098
55839
  var _this = _super !== null && _super.apply(this, arguments) || this;
55099
55840
  /**
@@ -55247,11 +55988,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55247
55988
  return TextOptions;
55248
55989
  }(Options));
55249
55990
 
55991
+ var __extends$H = (window && window.__extends) || (function () {
55992
+ var extendStatics = function (d, b) {
55993
+ extendStatics = Object.setPrototypeOf ||
55994
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
55995
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
55996
+ return extendStatics(d, b);
55997
+ };
55998
+ return function (d, b) {
55999
+ if (typeof b !== "function" && b !== null)
56000
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
56001
+ extendStatics(d, b);
56002
+ function __() { this.constructor = d; }
56003
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
56004
+ };
56005
+ })();
55250
56006
  /**
55251
56007
  * Options used when rendering geometries in a SymbolLayer.
55252
56008
  */
55253
56009
  var SymbolLayerOptions = /** @class */ (function (_super) {
55254
- __extends(SymbolLayerOptions, _super);
56010
+ __extends$H(SymbolLayerOptions, _super);
55255
56011
  function SymbolLayerOptions() {
55256
56012
  var _this = _super !== null && _super.apply(this, arguments) || this;
55257
56013
  /**
@@ -55309,12 +56065,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55309
56065
  return SymbolLayerOptions;
55310
56066
  }(LayerOptions));
55311
56067
 
56068
+ var __extends$I = (window && window.__extends) || (function () {
56069
+ var extendStatics = function (d, b) {
56070
+ extendStatics = Object.setPrototypeOf ||
56071
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
56072
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
56073
+ return extendStatics(d, b);
56074
+ };
56075
+ return function (d, b) {
56076
+ if (typeof b !== "function" && b !== null)
56077
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
56078
+ extendStatics(d, b);
56079
+ function __() { this.constructor = d; }
56080
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
56081
+ };
56082
+ })();
56083
+ var __assign$2 = (window && window.__assign) || function () {
56084
+ __assign$2 = Object.assign || function(t) {
56085
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
56086
+ s = arguments[i];
56087
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
56088
+ t[p] = s[p];
56089
+ }
56090
+ return t;
56091
+ };
56092
+ return __assign$2.apply(this, arguments);
56093
+ };
55312
56094
  /**
55313
56095
  * Renders point based data as symbols on the map using text and/or icons.
55314
56096
  * Symbols can also be created for line and polygon data as well.
55315
56097
  */
55316
56098
  var SymbolLayer = /** @class */ (function (_super) {
55317
- __extends(SymbolLayer, _super);
56099
+ __extends$I(SymbolLayer, _super);
55318
56100
  /**
55319
56101
  * Constructs a new SymbolLayer.
55320
56102
  * @param source The id or instance of a data source which the layer will render.
@@ -55408,9 +56190,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55408
56190
  * @internal
55409
56191
  */
55410
56192
  SymbolLayer.prototype._buildLayers = function () {
55411
- var layer = __assign(__assign(__assign(__assign({ id: this.id, type: "symbol" }, (this.options.sourceLayer && { "source-layer": this.options.sourceLayer })), { source: this.options.source instanceof Source ?
56193
+ var layer = __assign$2(__assign$2(__assign$2(__assign$2({ id: this.id, type: "symbol" }, (this.options.sourceLayer && { "source-layer": this.options.sourceLayer })), { source: this.options.source instanceof Source ?
55412
56194
  this.options.source.getId() :
55413
- this.options.source, layout: __assign(__assign({ visibility: this.options.visible ? "visible" : "none", "symbol-placement": this.options.placement, "symbol-spacing": this.options.lineSpacing, "symbol-z-order": this.options.zOrder,
56195
+ this.options.source, layout: __assign$2(__assign$2({ visibility: this.options.visible ? "visible" : "none", "symbol-placement": this.options.placement, "symbol-spacing": this.options.lineSpacing, "symbol-z-order": this.options.zOrder,
55414
56196
  // Text options.
55415
56197
  "text-allow-overlap": this.options.textOptions.allowOverlap, "text-anchor": this.options.textOptions.anchor }, (this.options.textOptions.textField && { "text-field": this.options.textOptions.textField })), { "text-font": this.options.textOptions.font, "text-ignore-placement": this.options.textOptions.ignorePlacement, "text-justify": this.options.textOptions.justify, "text-offset": this.options.textOptions.offset, "text-optional": this.options.textOptions.optional, "text-padding": this.options.textOptions.padding, "text-pitch-alignment": this.options.textOptions.pitchAlignment, "text-rotate": this.options.textOptions.rotation, "text-rotation-alignment": this.options.textOptions.rotationAlignment, "text-size": this.options.textOptions.size,
55416
56198
  // Icon options.
@@ -55456,11 +56238,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55456
56238
  return SymbolLayer;
55457
56239
  }(Layer));
55458
56240
 
56241
+ var __extends$J = (window && window.__extends) || (function () {
56242
+ var extendStatics = function (d, b) {
56243
+ extendStatics = Object.setPrototypeOf ||
56244
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
56245
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
56246
+ return extendStatics(d, b);
56247
+ };
56248
+ return function (d, b) {
56249
+ if (typeof b !== "function" && b !== null)
56250
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
56251
+ extendStatics(d, b);
56252
+ function __() { this.constructor = d; }
56253
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
56254
+ };
56255
+ })();
55459
56256
  /**
55460
56257
  * Options used when rendering raster tiled images in a TileLayer.
55461
56258
  */
55462
56259
  var TileLayerOptions = /** @class */ (function (_super) {
55463
- __extends(TileLayerOptions, _super);
56260
+ __extends$J(TileLayerOptions, _super);
55464
56261
  function TileLayerOptions() {
55465
56262
  var _this = _super !== null && _super.apply(this, arguments) || this;
55466
56263
  /**
@@ -55516,11 +56313,48 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55516
56313
  return TileLayerOptions;
55517
56314
  }(MediaLayerOptions));
55518
56315
 
56316
+ var __extends$K = (window && window.__extends) || (function () {
56317
+ var extendStatics = function (d, b) {
56318
+ extendStatics = Object.setPrototypeOf ||
56319
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
56320
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
56321
+ return extendStatics(d, b);
56322
+ };
56323
+ return function (d, b) {
56324
+ if (typeof b !== "function" && b !== null)
56325
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
56326
+ extendStatics(d, b);
56327
+ function __() { this.constructor = d; }
56328
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
56329
+ };
56330
+ })();
56331
+ var __assign$3 = (window && window.__assign) || function () {
56332
+ __assign$3 = Object.assign || function(t) {
56333
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
56334
+ s = arguments[i];
56335
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
56336
+ t[p] = s[p];
56337
+ }
56338
+ return t;
56339
+ };
56340
+ return __assign$3.apply(this, arguments);
56341
+ };
56342
+ var __values$8 = (window && window.__values) || function(o) {
56343
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
56344
+ if (m) return m.call(o);
56345
+ if (o && typeof o.length === "number") return {
56346
+ next: function () {
56347
+ if (o && i >= o.length) o = void 0;
56348
+ return { value: o && o[i++], done: !o };
56349
+ }
56350
+ };
56351
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
56352
+ };
55519
56353
  /**
55520
56354
  * Renders raster tiled images on top of the map tiles.
55521
56355
  */
55522
56356
  var TileLayer = /** @class */ (function (_super) {
55523
- __extends(TileLayer, _super);
56357
+ __extends$K(TileLayer, _super);
55524
56358
  /**
55525
56359
  * Constructs a new TileLayer.
55526
56360
  * @param options The options for the tile layer.
@@ -55582,7 +56416,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55582
56416
  * @internal
55583
56417
  */
55584
56418
  TileLayer.prototype._buildLayers = function () {
55585
- var layer = __assign(__assign({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
56419
+ var layer = __assign$3(__assign$3({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
55586
56420
  visibility: this.options.visible ? "visible" : "none"
55587
56421
  }, paint: {
55588
56422
  "raster-contrast": this.options.contrast,
@@ -55619,7 +56453,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55619
56453
  if (this.options.subdomains && this.options.subdomains.length > 0) {
55620
56454
  var urls = [];
55621
56455
  try {
55622
- for (var _b = __values(this.options.subdomains), _c = _b.next(); !_c.done; _c = _b.next()) {
56456
+ for (var _b = __values$8(this.options.subdomains), _c = _b.next(); !_c.done; _c = _b.next()) {
55623
56457
  var subdomain = _c.value;
55624
56458
  urls.push(this.options.tileUrl.replace(/{subdomain}/g, subdomain));
55625
56459
  }
@@ -55651,7 +56485,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55651
56485
  };
55652
56486
  }
55653
56487
  }
55654
- return __assign({ type: "raster", bounds: this.options.bounds, maxzoom: this.options.maxSourceZoom, minzoom: this.options.minSourceZoom, scheme: this.options.isTMS ? "tms" : "xyz", tileSize: this.options.tileSize }, (tiles && { tiles: tiles }));
56488
+ return __assign$3({ type: "raster", bounds: this.options.bounds, maxzoom: this.options.maxSourceZoom, minzoom: this.options.minSourceZoom, scheme: this.options.isTMS ? "tms" : "xyz", tileSize: this.options.tileSize }, (tiles && { tiles: tiles }));
55655
56489
  };
55656
56490
  /**
55657
56491
  * Gets the id of the source to be paired with this layer.
@@ -55663,11 +56497,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55663
56497
  return TileLayer;
55664
56498
  }(SourceBuildingLayer));
55665
56499
 
56500
+ var __extends$L = (window && window.__extends) || (function () {
56501
+ var extendStatics = function (d, b) {
56502
+ extendStatics = Object.setPrototypeOf ||
56503
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
56504
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
56505
+ return extendStatics(d, b);
56506
+ };
56507
+ return function (d, b) {
56508
+ if (typeof b !== "function" && b !== null)
56509
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
56510
+ extendStatics(d, b);
56511
+ function __() { this.constructor = d; }
56512
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
56513
+ };
56514
+ })();
55666
56515
  /**
55667
56516
  * Options used to render graphics in a WebGLLayer.
55668
56517
  */
55669
56518
  var WebGLLayerOptions = /** @class */ (function (_super) {
55670
- __extends(WebGLLayerOptions, _super);
56519
+ __extends$L(WebGLLayerOptions, _super);
55671
56520
  function WebGLLayerOptions() {
55672
56521
  var _this = _super !== null && _super.apply(this, arguments) || this;
55673
56522
  /**
@@ -55679,11 +56528,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55679
56528
  return WebGLLayerOptions;
55680
56529
  }(LayerOptions));
55681
56530
 
56531
+ var __extends$M = (window && window.__extends) || (function () {
56532
+ var extendStatics = function (d, b) {
56533
+ extendStatics = Object.setPrototypeOf ||
56534
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
56535
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
56536
+ return extendStatics(d, b);
56537
+ };
56538
+ return function (d, b) {
56539
+ if (typeof b !== "function" && b !== null)
56540
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
56541
+ extendStatics(d, b);
56542
+ function __() { this.constructor = d; }
56543
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
56544
+ };
56545
+ })();
55682
56546
  /**
55683
56547
  * Enables custom rendering logic with access to the WebGL context of the map.
55684
56548
  */
55685
56549
  var WebGLLayer = /** @class */ (function (_super) {
55686
- __extends(WebGLLayer, _super);
56550
+ __extends$M(WebGLLayer, _super);
55687
56551
  /**
55688
56552
  * Constructs a new WebGLLayer.
55689
56553
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -55701,9 +56565,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55701
56565
  // Add this layer again if the layer was removed by mapbox after a style change.
55702
56566
  if (!_this.map._getMap().getLayer(_this.id)) {
55703
56567
  var map = _this.map;
55704
- var before_1 = (_a = _this.map.layers._getUserLayers().find(function (l) { return l.layer.getId() == _this.id; })) === null || _a === void 0 ? void 0 : _a.before;
56568
+ var before = (_a = _this.map.layers._getUserLayers().find(function (l) { return l.layer.getId() == _this.id; })) === null || _a === void 0 ? void 0 : _a.before;
55705
56569
  map.layers.remove(_this);
55706
- map.layers.add(_this, before_1);
56570
+ map.layers.add(_this, before);
55707
56571
  }
55708
56572
  };
55709
56573
  _this.options = new WebGLLayerOptions().merge(cloneDeepWith_1(options, WebGLLayerOptions._cloneCustomizer));
@@ -55913,11 +56777,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55913
56777
 
55914
56778
  var isElement_1 = isElement;
55915
56779
 
56780
+ var __extends$N = (window && window.__extends) || (function () {
56781
+ var extendStatics = function (d, b) {
56782
+ extendStatics = Object.setPrototypeOf ||
56783
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
56784
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
56785
+ return extendStatics(d, b);
56786
+ };
56787
+ return function (d, b) {
56788
+ if (typeof b !== "function" && b !== null)
56789
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
56790
+ extendStatics(d, b);
56791
+ function __() { this.constructor = d; }
56792
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
56793
+ };
56794
+ })();
55916
56795
  /**
55917
56796
  * The options for a popup.
55918
56797
  */
55919
56798
  var PopupOptions = /** @class */ (function (_super) {
55920
- __extends(PopupOptions, _super);
56799
+ __extends$N(PopupOptions, _super);
55921
56800
  function PopupOptions() {
55922
56801
  var _this = _super !== null && _super.apply(this, arguments) || this;
55923
56802
  /**
@@ -55986,14 +56865,45 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
55986
56865
  return PopupOptions;
55987
56866
  }(Options));
55988
56867
 
55989
- /**
55990
- * An information window anchored at a specified position on a map.
55991
- */
55992
- var Popup = /** @class */ (function (_super) {
55993
- __extends(Popup, _super);
55994
- /**
55995
- * Constructs a Popup object and initializes it with the specified options.
55996
- * @param options The options for the popup.
56868
+ var __extends$O = (window && window.__extends) || (function () {
56869
+ var extendStatics = function (d, b) {
56870
+ extendStatics = Object.setPrototypeOf ||
56871
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
56872
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
56873
+ return extendStatics(d, b);
56874
+ };
56875
+ return function (d, b) {
56876
+ if (typeof b !== "function" && b !== null)
56877
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
56878
+ extendStatics(d, b);
56879
+ function __() { this.constructor = d; }
56880
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
56881
+ };
56882
+ })();
56883
+ var __read$4 = (window && window.__read) || function (o, n) {
56884
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
56885
+ if (!m) return o;
56886
+ var i = m.call(o), r, ar = [], e;
56887
+ try {
56888
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
56889
+ }
56890
+ catch (error) { e = { error: error }; }
56891
+ finally {
56892
+ try {
56893
+ if (r && !r.done && (m = i["return"])) m.call(i);
56894
+ }
56895
+ finally { if (e) throw e.error; }
56896
+ }
56897
+ return ar;
56898
+ };
56899
+ /**
56900
+ * An information window anchored at a specified position on a map.
56901
+ */
56902
+ var Popup = /** @class */ (function (_super) {
56903
+ __extends$O(Popup, _super);
56904
+ /**
56905
+ * Constructs a Popup object and initializes it with the specified options.
56906
+ * @param options The options for the popup.
55997
56907
  */
55998
56908
  function Popup(options) {
55999
56909
  var _this = _super.call(this) || this;
@@ -56082,7 +56992,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
56082
56992
  */
56083
56993
  _this._onDown = function (event) {
56084
56994
  _this.map.popups._addDraggedPopup(_this);
56085
- var _a = __read(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
56995
+ var _a = __read$4(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
56086
56996
  if (event.type === "mousedown") {
56087
56997
  event = event;
56088
56998
  _this.dragOffset = [
@@ -56246,7 +57156,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
56246
57156
  pixel[0] + this.dragOffset[0],
56247
57157
  pixel[1] + this.dragOffset[1]
56248
57158
  ];
56249
- var _a = __read(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
57159
+ var _a = __read$4(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
56250
57160
  this.options.position = anchorPos;
56251
57161
  this.marker.setLngLat(this.options.position);
56252
57162
  this._invokeEvent("drag", { type: "drag", target: this });
@@ -56400,7 +57310,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
56400
57310
  posY = pt.y;
56401
57311
  }
56402
57312
  else {
56403
- var _a = __read(map.positionsToPixels([options.position]), 1), _b = __read(_a[0], 2), x = _b[0], y = _b[1];
57313
+ var _a = __read$4(map.positionsToPixels([options.position]), 1), _b = __read$4(_a[0], 2), x = _b[0], y = _b[1];
56404
57314
  posX = x;
56405
57315
  posY = y;
56406
57316
  }
@@ -56461,11 +57371,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
56461
57371
  return Popup;
56462
57372
  }(EventEmitter));
56463
57373
 
57374
+ var __extends$P = (window && window.__extends) || (function () {
57375
+ var extendStatics = function (d, b) {
57376
+ extendStatics = Object.setPrototypeOf ||
57377
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
57378
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
57379
+ return extendStatics(d, b);
57380
+ };
57381
+ return function (d, b) {
57382
+ if (typeof b !== "function" && b !== null)
57383
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
57384
+ extendStatics(d, b);
57385
+ function __() { this.constructor = d; }
57386
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
57387
+ };
57388
+ })();
56464
57389
  /**
56465
57390
  * Options for rendering an HtmlMarker object
56466
57391
  */
56467
57392
  var HtmlMarkerOptions = /** @class */ (function (_super) {
56468
- __extends(HtmlMarkerOptions, _super);
57393
+ __extends$P(HtmlMarkerOptions, _super);
56469
57394
  function HtmlMarkerOptions() {
56470
57395
  var _this = _super !== null && _super.apply(this, arguments) || this;
56471
57396
  /**
@@ -56543,11 +57468,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
56543
57468
  return HtmlMarkerOptions;
56544
57469
  }(Options));
56545
57470
 
57471
+ var __extends$Q = (window && window.__extends) || (function () {
57472
+ var extendStatics = function (d, b) {
57473
+ extendStatics = Object.setPrototypeOf ||
57474
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
57475
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
57476
+ return extendStatics(d, b);
57477
+ };
57478
+ return function (d, b) {
57479
+ if (typeof b !== "function" && b !== null)
57480
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
57481
+ extendStatics(d, b);
57482
+ function __() { this.constructor = d; }
57483
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
57484
+ };
57485
+ })();
56546
57486
  /**
56547
57487
  * This class wraps an HTML element that can be displayed on the map.
56548
57488
  */
56549
57489
  var HtmlMarker = /** @class */ (function (_super) {
56550
- __extends(HtmlMarker, _super);
57490
+ __extends$Q(HtmlMarker, _super);
56551
57491
  /**
56552
57492
  * Constructs a new HtmlMarker.
56553
57493
  * @param options The options for the HtmlMarker.
@@ -57239,6 +58179,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
57239
58179
  return UserAgent;
57240
58180
  }());
57241
58181
 
58182
+ var __extends$R = (window && window.__extends) || (function () {
58183
+ var extendStatics = function (d, b) {
58184
+ extendStatics = Object.setPrototypeOf ||
58185
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
58186
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
58187
+ return extendStatics(d, b);
58188
+ };
58189
+ return function (d, b) {
58190
+ if (typeof b !== "function" && b !== null)
58191
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58192
+ extendStatics(d, b);
58193
+ function __() { this.constructor = d; }
58194
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
58195
+ };
58196
+ })();
58197
+ var __read$5 = (window && window.__read) || function (o, n) {
58198
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
58199
+ if (!m) return o;
58200
+ var i = m.call(o), r, ar = [], e;
58201
+ try {
58202
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
58203
+ }
58204
+ catch (error) { e = { error: error }; }
58205
+ finally {
58206
+ try {
58207
+ if (r && !r.done && (m = i["return"])) m.call(i);
58208
+ }
58209
+ finally { if (e) throw e.error; }
58210
+ }
58211
+ return ar;
58212
+ };
58213
+ var __spreadArray$1 = (window && window.__spreadArray) || function (to, from) {
58214
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
58215
+ to[j] = from[i];
58216
+ return to;
58217
+ };
57242
58218
  (function (AuthenticationType) {
57243
58219
  /**
57244
58220
  * The subscription key authentication mechanism.
@@ -57269,7 +58245,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
57269
58245
  * Options for specifying how the map control should authenticate with the Azure Maps services.
57270
58246
  */
57271
58247
  var AuthenticationOptions = /** @class */ (function (_super) {
57272
- __extends(AuthenticationOptions, _super);
58248
+ __extends$R(AuthenticationOptions, _super);
57273
58249
  function AuthenticationOptions() {
57274
58250
  var _this = _super !== null && _super.apply(this, arguments) || this;
57275
58251
  /**
@@ -57371,7 +58347,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
57371
58347
  for (var _i = 0; _i < arguments.length; _i++) {
57372
58348
  valueList[_i] = arguments[_i];
57373
58349
  }
57374
- var merged = _super.prototype.merge.apply(this, __spread(valueList));
58350
+ var merged = _super.prototype.merge.apply(this, __spreadArray$1([], __read$5(valueList)));
57375
58351
  if (merged.authType === exports.AuthenticationType.subscriptionKey) {
57376
58352
  merged.authContext = merged.aadAppId = merged.getToken = undefined;
57377
58353
  }
@@ -57870,11 +58846,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
57870
58846
  return Media;
57871
58847
  }());
57872
58848
 
58849
+ var __extends$S = (window && window.__extends) || (function () {
58850
+ var extendStatics = function (d, b) {
58851
+ extendStatics = Object.setPrototypeOf ||
58852
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
58853
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
58854
+ return extendStatics(d, b);
58855
+ };
58856
+ return function (d, b) {
58857
+ if (typeof b !== "function" && b !== null)
58858
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58859
+ extendStatics(d, b);
58860
+ function __() { this.constructor = d; }
58861
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
58862
+ };
58863
+ })();
57873
58864
  /**
57874
58865
  * The options for a CopyrightControl object.
57875
58866
  */
57876
58867
  var CopyrightControlOptions = /** @class */ (function (_super) {
57877
- __extends(CopyrightControlOptions, _super);
58868
+ __extends$S(CopyrightControlOptions, _super);
57878
58869
  function CopyrightControlOptions() {
57879
58870
  var _this = _super !== null && _super.apply(this, arguments) || this;
57880
58871
  /**
@@ -57903,11 +58894,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
57903
58894
  return CopyrightControlOptions;
57904
58895
  }(Options));
57905
58896
 
58897
+ var __extends$T = (window && window.__extends) || (function () {
58898
+ var extendStatics = function (d, b) {
58899
+ extendStatics = Object.setPrototypeOf ||
58900
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
58901
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
58902
+ return extendStatics(d, b);
58903
+ };
58904
+ return function (d, b) {
58905
+ if (typeof b !== "function" && b !== null)
58906
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58907
+ extendStatics(d, b);
58908
+ function __() { this.constructor = d; }
58909
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
58910
+ };
58911
+ })();
57906
58912
  /**
57907
58913
  * @private
57908
58914
  */
57909
58915
  var CopyrightControl = /** @class */ (function (_super) {
57910
- __extends(CopyrightControl, _super);
58916
+ __extends$T(CopyrightControl, _super);
57911
58917
  function CopyrightControl(options) {
57912
58918
  var _this = _super.call(this) || this;
57913
58919
  _this.textAttribution = function (options) {
@@ -58095,6 +59101,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
58095
59101
  return ErrorHandler;
58096
59102
  }());
58097
59103
 
59104
+ var __assign$4 = (window && window.__assign) || function () {
59105
+ __assign$4 = Object.assign || function(t) {
59106
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
59107
+ s = arguments[i];
59108
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
59109
+ t[p] = s[p];
59110
+ }
59111
+ return t;
59112
+ };
59113
+ return __assign$4.apply(this, arguments);
59114
+ };
58098
59115
  /**
58099
59116
  * @private
58100
59117
  */
@@ -58108,7 +59125,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
58108
59125
  var urlOptions = {
58109
59126
  domain: domain,
58110
59127
  path: "search/address/reverse/json",
58111
- queryParams: __assign({ "api-version": "1.0", "language": options.style.language, "limit": 1, "query": normalizeLatitude(options.position[1]) + "," + normalizeLongitude(options.position[0]) }, (options.style.view && { view: options.style.view }))
59128
+ queryParams: __assign$4({ "api-version": "1.0", "language": options.style.language, "limit": 1, "query": normalizeLatitude(options.position[1]) + "," + normalizeLongitude(options.position[0]) }, (options.style.view && { view: options.style.view }))
58112
59129
  };
58113
59130
  return new Url(((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(urlOptions)) || urlOptions).get();
58114
59131
  };
@@ -58234,6 +59251,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
58234
59251
  return MapLabelCache;
58235
59252
  }());
58236
59253
 
59254
+ var __awaiter$1 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
59255
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
59256
+ return new (P || (P = Promise))(function (resolve, reject) {
59257
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
59258
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
59259
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
59260
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
59261
+ });
59262
+ };
59263
+ var __generator$1 = (window && window.__generator) || function (thisArg, body) {
59264
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
59265
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
59266
+ function verb(n) { return function (v) { return step([n, v]); }; }
59267
+ function step(op) {
59268
+ if (f) throw new TypeError("Generator is already executing.");
59269
+ while (_) try {
59270
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
59271
+ if (y = 0, t) op = [op[0] & 2, t.value];
59272
+ switch (op[0]) {
59273
+ case 0: case 1: t = op; break;
59274
+ case 4: _.label++; return { value: op[1], done: false };
59275
+ case 5: _.label++; y = op[1]; op = [0]; continue;
59276
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
59277
+ default:
59278
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
59279
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
59280
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
59281
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
59282
+ if (t[2]) _.ops.pop();
59283
+ _.trys.pop(); continue;
59284
+ }
59285
+ op = body.call(thisArg, _);
59286
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
59287
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
59288
+ }
59289
+ };
59290
+ var __read$6 = (window && window.__read) || function (o, n) {
59291
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
59292
+ if (!m) return o;
59293
+ var i = m.call(o), r, ar = [], e;
59294
+ try {
59295
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
59296
+ }
59297
+ catch (error) { e = { error: error }; }
59298
+ finally {
59299
+ try {
59300
+ if (r && !r.done && (m = i["return"])) m.call(i);
59301
+ }
59302
+ finally { if (e) throw e.error; }
59303
+ }
59304
+ return ar;
59305
+ };
58237
59306
  /**
58238
59307
  * This class analyizes the current view of a map and provides a description for use by accessibilty tools.
58239
59308
  * TODO: Use services when in GeoPol regions. (Kasmir) or when user region sensitive.
@@ -58472,9 +59541,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
58472
59541
  // Flag indicating if detailed descriptions which include zoom, lat/lon information should be returned.
58473
59542
  this._returnDetailedDescriptions = false;
58474
59543
  /** Event handler for shortcuts. */
58475
- this._shortcutListener = function (e) { return __awaiter(_this, void 0, void 0, function () {
59544
+ this._shortcutListener = function (e) { return __awaiter$1(_this, void 0, void 0, function () {
58476
59545
  var cam, styleOps, lang, style, camDesc;
58477
- return __generator(this, function (_a) {
59546
+ return __generator$1(this, function (_a) {
58478
59547
  switch (_a.label) {
58479
59548
  case 0:
58480
59549
  if (!(e.altKey && e.ctrlKey && e.keyCode === 68)) return [3 /*break*/, 2];
@@ -58542,9 +59611,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
58542
59611
  /** Event handler for when the mouse or touch goes down */
58543
59612
  this._onPointerDown = function (event) {
58544
59613
  _this._lastPointerPos = _this._getEventPos(event);
58545
- _this._pointerTimeout = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
59614
+ _this._pointerTimeout = setTimeout(function () { return __awaiter$1(_this, void 0, void 0, function () {
58546
59615
  var styleOps, lang, style, cam, loc;
58547
- return __generator(this, function (_a) {
59616
+ return __generator$1(this, function (_a) {
58548
59617
  switch (_a.label) {
58549
59618
  case 0:
58550
59619
  styleOps = this._map.getStyle();
@@ -58602,9 +59671,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
58602
59671
  delete _this._rotateTimeout;
58603
59672
  };
58604
59673
  /** Called when the map has finished changing styles and is ready to create a new description */
58605
- this._updateStyle = function () { return __awaiter(_this, void 0, void 0, function () {
59674
+ this._updateStyle = function () { return __awaiter$1(_this, void 0, void 0, function () {
58606
59675
  var cam, styleOps, lang, style, camDesc;
58607
- return __generator(this, function (_a) {
59676
+ return __generator$1(this, function (_a) {
58608
59677
  switch (_a.label) {
58609
59678
  case 0:
58610
59679
  cam = this._map.getCamera();
@@ -58656,9 +59725,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
58656
59725
  delete _this._moveTimeout;
58657
59726
  }
58658
59727
  // Send the new description to the map.
58659
- _this._moveTimeout = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
59728
+ _this._moveTimeout = setTimeout(function () { return __awaiter$1(_this, void 0, void 0, function () {
58660
59729
  var loc;
58661
- return __generator(this, function (_a) {
59730
+ return __generator$1(this, function (_a) {
58662
59731
  switch (_a.label) {
58663
59732
  case 0:
58664
59733
  // Clear the rotate timeout as the move description will cover rotation.
@@ -58749,7 +59818,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
58749
59818
  };
58750
59819
  /** Checks if the location has changed enough to justify a new description */
58751
59820
  MapViewDescriptor.prototype._checkLocThreshold = function (newCenter, lastCenter) {
58752
- var _a = __read(this._map.positionsToPixels([lastCenter, newCenter]), 2), lastPixel = _a[0], newPixel = _a[1];
59821
+ var _a = __read$6(this._map.positionsToPixels([lastCenter, newCenter]), 2), lastPixel = _a[0], newPixel = _a[1];
58753
59822
  return Pixel.getDistance(lastPixel, newPixel) >= this._moveThreshold;
58754
59823
  };
58755
59824
  /** Checks if the heading has changed enough to justify a new description */
@@ -58774,10 +59843,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
58774
59843
  * @param cam The map camera informaiton.
58775
59844
  */
58776
59845
  MapViewDescriptor.prototype._getLocDesc = function (cam, lang, style) {
58777
- return __awaiter(this, void 0, void 0, function () {
59846
+ return __awaiter$1(this, void 0, void 0, function () {
58778
59847
  var info_1, cPx_1, intersects_1, intersectingPolygon, intersectingType_1, i, cnt, layerInfo, cl_1;
58779
59848
  var _this = this;
58780
- return __generator(this, function (_a) {
59849
+ return __generator$1(this, function (_a) {
58781
59850
  switch (_a.label) {
58782
59851
  case 0:
58783
59852
  if (!(style !== "blank")) return [3 /*break*/, 3];
@@ -59472,11 +60541,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
59472
60541
  return FlowServiceDelegate;
59473
60542
  }());
59474
60543
 
60544
+ var __extends$U = (window && window.__extends) || (function () {
60545
+ var extendStatics = function (d, b) {
60546
+ extendStatics = Object.setPrototypeOf ||
60547
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
60548
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
60549
+ return extendStatics(d, b);
60550
+ };
60551
+ return function (d, b) {
60552
+ if (typeof b !== "function" && b !== null)
60553
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
60554
+ extendStatics(d, b);
60555
+ function __() { this.constructor = d; }
60556
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
60557
+ };
60558
+ })();
59475
60559
  /**
59476
60560
  * @private
59477
60561
  */
59478
60562
  var Incident = /** @class */ (function (_super) {
59479
- __extends(Incident, _super);
60563
+ __extends$U(Incident, _super);
59480
60564
  function Incident(data, point, localizedStrings) {
59481
60565
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
59482
60566
  var _this = this;
@@ -59691,6 +60775,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
59691
60775
  return IncidentPopupFactory;
59692
60776
  }());
59693
60777
 
60778
+ var __awaiter$2 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
60779
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
60780
+ return new (P || (P = Promise))(function (resolve, reject) {
60781
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
60782
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
60783
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
60784
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
60785
+ });
60786
+ };
60787
+ var __generator$2 = (window && window.__generator) || function (thisArg, body) {
60788
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
60789
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
60790
+ function verb(n) { return function (v) { return step([n, v]); }; }
60791
+ function step(op) {
60792
+ if (f) throw new TypeError("Generator is already executing.");
60793
+ while (_) try {
60794
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
60795
+ if (y = 0, t) op = [op[0] & 2, t.value];
60796
+ switch (op[0]) {
60797
+ case 0: case 1: t = op; break;
60798
+ case 4: _.label++; return { value: op[1], done: false };
60799
+ case 5: _.label++; y = op[1]; op = [0]; continue;
60800
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
60801
+ default:
60802
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
60803
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
60804
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
60805
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
60806
+ if (t[2]) _.ops.pop();
60807
+ _.trys.pop(); continue;
60808
+ }
60809
+ op = body.call(thisArg, _);
60810
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
60811
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
60812
+ }
60813
+ };
59694
60814
  /**
59695
60815
  * @private
59696
60816
  */
@@ -59718,10 +60838,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
59718
60838
  _this.map.events.add('moveend', _this.setAccessiblePopups);
59719
60839
  };
59720
60840
  this.accessiblePopups = [];
59721
- this.setAccessiblePopups = function () { return __awaiter(_this, void 0, void 0, function () {
60841
+ this.setAccessiblePopups = function () { return __awaiter$2(_this, void 0, void 0, function () {
59722
60842
  var features, localizedStrings, createPopup, insertHiddenBefore, insertHiddenInFront, addHidden;
59723
60843
  var _this = this;
59724
- return __generator(this, function (_a) {
60844
+ return __generator$2(this, function (_a) {
59725
60845
  switch (_a.label) {
59726
60846
  case 0:
59727
60847
  this.accessiblePopups.forEach(function (popup) { return popup.remove(); });
@@ -59873,7 +60993,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
59873
60993
  "red",
59874
60994
  ["==", ['var', 'magnitude'], 4],
59875
60995
  "grey",
59876
- "grey",
60996
+ "grey", // default.
59877
60997
  ],
59878
60998
  ];
59879
60999
  // incident icon type name expression
@@ -59935,11 +61055,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
59935
61055
  return IncidentServiceDelegate;
59936
61056
  }());
59937
61057
 
61058
+ var __extends$V = (window && window.__extends) || (function () {
61059
+ var extendStatics = function (d, b) {
61060
+ extendStatics = Object.setPrototypeOf ||
61061
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
61062
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
61063
+ return extendStatics(d, b);
61064
+ };
61065
+ return function (d, b) {
61066
+ if (typeof b !== "function" && b !== null)
61067
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
61068
+ extendStatics(d, b);
61069
+ function __() { this.constructor = d; }
61070
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61071
+ };
61072
+ })();
59938
61073
  /**
59939
61074
  * The options for enabling/disabling user interaction with the map.
59940
61075
  */
59941
61076
  var UserInteractionOptions = /** @class */ (function (_super) {
59942
- __extends(UserInteractionOptions, _super);
61077
+ __extends$V(UserInteractionOptions, _super);
59943
61078
  function UserInteractionOptions() {
59944
61079
  var _this = _super !== null && _super.apply(this, arguments) || this;
59945
61080
  /**
@@ -62968,6 +64103,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
62968
64103
  return descriptor;
62969
64104
  }; };
62970
64105
 
64106
+ var __decorate = (window && window.__decorate) || function (decorators, target, key, desc) {
64107
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
64108
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
64109
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
64110
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
64111
+ };
64112
+ var __read$7 = (window && window.__read) || function (o, n) {
64113
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
64114
+ if (!m) return o;
64115
+ var i = m.call(o), r, ar = [], e;
64116
+ try {
64117
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
64118
+ }
64119
+ catch (error) { e = { error: error }; }
64120
+ finally {
64121
+ try {
64122
+ if (r && !r.done && (m = i["return"])) m.call(i);
64123
+ }
64124
+ finally { if (e) throw e.error; }
64125
+ }
64126
+ return ar;
64127
+ };
64128
+ var __spreadArray$2 = (window && window.__spreadArray) || function (to, from) {
64129
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
64130
+ to[j] = from[i];
64131
+ return to;
64132
+ };
62971
64133
  var allowedAttributionTags = [
62972
64134
  'DIV',
62973
64135
  'SPAN',
@@ -62981,9 +64143,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
62981
64143
  'data-azure-maps-attribution-order',
62982
64144
  'data-azure-maps-attribution-dynamic'
62983
64145
  ];
62984
- var allowedAttributionAttributes = __spread([
64146
+ var allowedAttributionAttributes = __spreadArray$2([
62985
64147
  'href'
62986
- ], attributionRuleAttributes);
64148
+ ], __read$7(attributionRuleAttributes));
62987
64149
  var AttributionRuleProxy = /** @class */ (function () {
62988
64150
  function AttributionRuleProxy(element, attributionChangeCallback) {
62989
64151
  var _this = this;
@@ -63206,7 +64368,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
63206
64368
  };
63207
64369
  AttributionRuleProxy.prototype.applyAttributionResponse = function (attributions) {
63208
64370
  var _this = this;
63209
- var copyrights = attributions.map(function (resp) { return resp.copyrights || []; }).reduce(function (flat, copyrights) { return __spread(flat, copyrights); }, []);
64371
+ var copyrights = attributions.map(function (resp) { return resp.copyrights || []; }).reduce(function (flat, copyrights) { return __spreadArray$2(__spreadArray$2([], __read$7(flat)), __read$7(copyrights)); }, []);
63210
64372
  if (copyrights.length == 0) {
63211
64373
  // no attribution for a provided tileset/bbox/z
63212
64374
  return;
@@ -63255,6 +64417,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
63255
64417
  return AttributionRuleProxy;
63256
64418
  }());
63257
64419
 
64420
+ var __read$8 = (window && window.__read) || function (o, n) {
64421
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
64422
+ if (!m) return o;
64423
+ var i = m.call(o), r, ar = [], e;
64424
+ try {
64425
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
64426
+ }
64427
+ catch (error) { e = { error: error }; }
64428
+ finally {
64429
+ try {
64430
+ if (r && !r.done && (m = i["return"])) m.call(i);
64431
+ }
64432
+ finally { if (e) throw e.error; }
64433
+ }
64434
+ return ar;
64435
+ };
64436
+ var __spreadArray$3 = (window && window.__spreadArray) || function (to, from) {
64437
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
64438
+ to[j] = from[i];
64439
+ return to;
64440
+ };
63258
64441
  // contains phrases that should be filtered out from all attribution content
63259
64442
  var attributionFilters = [
63260
64443
  /all rights reserved/gi
@@ -63288,7 +64471,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
63288
64471
  var style = map.getStyle();
63289
64472
  return Object.entries(style.sources)
63290
64473
  .filter(function (_a) {
63291
- var _b = __read(_a, 1), key = _b[0];
64474
+ var _b = __read$8(_a, 1), key = _b[0];
63292
64475
  return style.layers
63293
64476
  .filter(function (layer) { return layer && layer['source'] == key; })
63294
64477
  .reduce(function (isVisible, layer) {
@@ -63296,7 +64479,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
63296
64479
  return !isLayerHidden || isVisible;
63297
64480
  }, false);
63298
64481
  }).map(function (_a) {
63299
- var _b = __read(_a, 1), key = _b[0];
64482
+ var _b = __read$8(_a, 1), key = _b[0];
63300
64483
  return map.getSource(key);
63301
64484
  });
63302
64485
  };
@@ -63371,10 +64554,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
63371
64554
  }, function () { return document.createElement('span'); });
63372
64555
  });
63373
64556
  var registeredRuleSet = new Set(Object.values(registeredRules));
63374
- var redundantRules = new Set(__spread(allRules).filter(function (rule) { return !registeredRuleSet.has(rule); }));
63375
- var redundantElements = new Set(__spread(redundantRules).map(function (rule) { return rule.getElement(); }));
64557
+ var redundantRules = new Set(__spreadArray$3([], __read$8(allRules)).filter(function (rule) { return !registeredRuleSet.has(rule); }));
64558
+ var redundantElements = new Set(__spreadArray$3([], __read$8(redundantRules)).map(function (rule) { return rule.getElement(); }));
63376
64559
  // eject redundant rules associated elements altogether
63377
- __spread(redundantElements).filter(function (elem) { return elem.parentElement !== null; })
64560
+ __spreadArray$3([], __read$8(redundantElements)).filter(function (elem) { return elem.parentElement !== null; })
63378
64561
  .forEach(function (elem) { return elem.parentElement.removeChild(elem); });
63379
64562
  _this.rules = Object.values(registeredRules);
63380
64563
  var attributionsToApply = attributions
@@ -63410,7 +64593,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
63410
64593
  var visibleTextNodes = function (elem) {
63411
64594
  return Array.from(elem.style.display != 'none' ? elem.children : [])
63412
64595
  .map(function (elem) { return visibleTextNodes(elem); })
63413
- .reduce(function (flattened, nodes) { return __spread(flattened, nodes); }, Array.from(elem.style.display != 'none' ? elem.childNodes : []).filter(function (node) { return node.nodeType == node.TEXT_NODE; }));
64596
+ .reduce(function (flattened, nodes) { return __spreadArray$3(__spreadArray$3([], __read$8(flattened)), __read$8(nodes)); }, Array.from(elem.style.display != 'none' ? elem.childNodes : []).filter(function (node) { return node.nodeType == node.TEXT_NODE; }));
63414
64597
  };
63415
64598
  var newRenderContext = _this.virtualContext.cloneNode(true);
63416
64599
  var visibleNodes = visibleTextNodes(newRenderContext);
@@ -63425,7 +64608,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
63425
64608
  // }
63426
64609
  // });
63427
64610
  // strip all predefined keywords
63428
- visibleNodes.forEach(function (node) { return node.textContent = __spread(attributionFilters).reduce(function (target, filter) { return target.replace(filter, '').trim(); }, node.textContent); });
64611
+ visibleNodes.forEach(function (node) { return node.textContent = __spreadArray$3([], __read$8(attributionFilters)).reduce(function (target, filter) { return target.replace(filter, '').trim(); }, node.textContent); });
63429
64612
  // strip year from each node
63430
64613
  // visibleNodes.forEach(node => node.textContent = node.textContent.replace(copyrightYearPattern, '').trim());
63431
64614
  // deduplicate attribution text
@@ -65956,6 +67139,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
65956
67139
  return AuthenticationManager;
65957
67140
  }());
65958
67141
 
67142
+ var __values$9 = (window && window.__values) || function(o) {
67143
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
67144
+ if (m) return m.call(o);
67145
+ if (o && typeof o.length === "number") return {
67146
+ next: function () {
67147
+ if (o && i >= o.length) o = void 0;
67148
+ return { value: o && o[i++], done: !o };
67149
+ }
67150
+ };
67151
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
67152
+ };
65959
67153
  /**
65960
67154
  * A manager for the map control's controls.
65961
67155
  * Exposed through the controls property of the atlas.Map class.
@@ -65990,7 +67184,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
65990
67184
  var e_1, _a;
65991
67185
  if (Array.isArray(control)) {
65992
67186
  try {
65993
- for (var control_1 = __values(control), control_1_1 = control_1.next(); !control_1_1.done; control_1_1 = control_1.next()) {
67187
+ for (var control_1 = __values$9(control), control_1_1 = control_1.next(); !control_1_1.done; control_1_1 = control_1.next()) {
65994
67188
  var c = control_1_1.value;
65995
67189
  this._add(c, options);
65996
67190
  }
@@ -66021,7 +67215,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66021
67215
  var e_2, _a;
66022
67216
  if (Array.isArray(control)) {
66023
67217
  try {
66024
- for (var control_2 = __values(control), control_2_1 = control_2.next(); !control_2_1.done; control_2_1 = control_2.next()) {
67218
+ for (var control_2 = __values$9(control), control_2_1 = control_2.next(); !control_2_1.done; control_2_1 = control_2.next()) {
66025
67219
  var c = control_2_1.value;
66026
67220
  this._remove(c);
66027
67221
  }
@@ -66065,6 +67259,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66065
67259
  return ControlManager;
66066
67260
  }());
66067
67261
 
67262
+ var __assign$5 = (window && window.__assign) || function () {
67263
+ __assign$5 = Object.assign || function(t) {
67264
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
67265
+ s = arguments[i];
67266
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
67267
+ t[p] = s[p];
67268
+ }
67269
+ return t;
67270
+ };
67271
+ return __assign$5.apply(this, arguments);
67272
+ };
66068
67273
  /**
66069
67274
  * @private
66070
67275
  */
@@ -66107,7 +67312,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66107
67312
  case "sourcedata":
66108
67313
  case "styledata":
66109
67314
  modifiedCallback = function (data) {
66110
- var mapEventData = __assign(__assign({ dataType: data.dataType }, (data.dataType === "source" && __assign(__assign(__assign({ isSourceLoaded: data.isSourceLoaded }, (data.sourceDataType && { sourceDataType: data.sourceDataType })), { source: _this.map.sources.getById(data.sourceId) }), (data.tile && {
67315
+ var mapEventData = __assign$5(__assign$5({ dataType: data.dataType }, (data.dataType === "source" && __assign$5(__assign$5(__assign$5({ isSourceLoaded: data.isSourceLoaded }, (data.sourceDataType && { sourceDataType: data.sourceDataType })), { source: _this.map.sources.getById(data.sourceId) }), (data.tile && {
66111
67316
  tile: {
66112
67317
  id: {
66113
67318
  x: data.tile.tileID.canonical.x,
@@ -66348,6 +67553,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66348
67553
  return MapCallbackHandler;
66349
67554
  }());
66350
67555
 
67556
+ var __values$a = (window && window.__values) || function(o) {
67557
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
67558
+ if (m) return m.call(o);
67559
+ if (o && typeof o.length === "number") return {
67560
+ next: function () {
67561
+ if (o && i >= o.length) o = void 0;
67562
+ return { value: o && o[i++], done: !o };
67563
+ }
67564
+ };
67565
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
67566
+ };
67567
+ var __read$9 = (window && window.__read) || function (o, n) {
67568
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
67569
+ if (!m) return o;
67570
+ var i = m.call(o), r, ar = [], e;
67571
+ try {
67572
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
67573
+ }
67574
+ catch (error) { e = { error: error }; }
67575
+ finally {
67576
+ try {
67577
+ if (r && !r.done && (m = i["return"])) m.call(i);
67578
+ }
67579
+ finally { if (e) throw e.error; }
67580
+ }
67581
+ return ar;
67582
+ };
66351
67583
  // Disable unified signatures linter rule so we can generate separate docs for function overloads.
66352
67584
  // tslint:disable:unified-signatures
66353
67585
  var MAP_CLIENT_EVENTS = ['maxzoomchanged', 'minzoomchanged', 'mapconfigurationchanged'];
@@ -66372,7 +67604,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66372
67604
  else {
66373
67605
  targetOrCallback = Array.isArray(targetOrCallback) ? targetOrCallback : [targetOrCallback];
66374
67606
  try {
66375
- for (var targetOrCallback_1 = __values(targetOrCallback), targetOrCallback_1_1 = targetOrCallback_1.next(); !targetOrCallback_1_1.done; targetOrCallback_1_1 = targetOrCallback_1.next()) {
67607
+ for (var targetOrCallback_1 = __values$a(targetOrCallback), targetOrCallback_1_1 = targetOrCallback_1.next(); !targetOrCallback_1_1.done; targetOrCallback_1_1 = targetOrCallback_1.next()) {
66376
67608
  var target = targetOrCallback_1_1.value;
66377
67609
  if (target instanceof Layer && Layer._isMBoxEvent(eventType)) {
66378
67610
  this._addLayerListener(eventType, target, callback, false, false);
@@ -66423,7 +67655,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66423
67655
  // Must disable it on every Mapbox layer our layer builds.
66424
67656
  if (modifiedCallback && layer) {
66425
67657
  try {
66426
- for (var _c = __values(layer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
67658
+ for (var _c = __values$a(layer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
66427
67659
  var id = _d.value;
66428
67660
  this.map._getMap().off(eventType, id, modifiedCallback);
66429
67661
  }
@@ -66443,7 +67675,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66443
67675
  if (layer) {
66444
67676
  modifiedCallback = this.mapCallbackHandler.getModifiedCallback(eventType, layerId, callback);
66445
67677
  try {
66446
- for (var _e = __values(layer._getLayerIds()), _f = _e.next(); !_f.done; _f = _e.next()) {
67678
+ for (var _e = __values$a(layer._getLayerIds()), _f = _e.next(); !_f.done; _f = _e.next()) {
66447
67679
  var id = _f.value;
66448
67680
  this.map._getMap().on(eventType, id, modifiedCallback);
66449
67681
  }
@@ -66530,7 +67762,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66530
67762
  var callbacks = new Dictionary(this.mapCallbackHandler.getEventCallbacks(eventType, layer));
66531
67763
  if (callbacks) {
66532
67764
  callbacks.forEach(function (_a, callback) {
66533
- var _b = __read(_a, 2), _ = _b[0], once = _b[1];
67765
+ var _b = __read$9(_a, 2), _ = _b[0], once = _b[1];
66534
67766
  // Invoking a listener this way circumvents the fire once logic in the modified callback.
66535
67767
  // So we check if the callback was added as a fire once and if so remove it here.
66536
67768
  if (once) {
@@ -66553,7 +67785,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66553
67785
  else {
66554
67786
  targetOrCallback = Array.isArray(targetOrCallback) ? targetOrCallback : [targetOrCallback];
66555
67787
  try {
66556
- for (var targetOrCallback_2 = __values(targetOrCallback), targetOrCallback_2_1 = targetOrCallback_2.next(); !targetOrCallback_2_1.done; targetOrCallback_2_1 = targetOrCallback_2.next()) {
67788
+ for (var targetOrCallback_2 = __values$a(targetOrCallback), targetOrCallback_2_1 = targetOrCallback_2.next(); !targetOrCallback_2_1.done; targetOrCallback_2_1 = targetOrCallback_2.next()) {
66557
67789
  var target = targetOrCallback_2_1.value;
66558
67790
  if (target instanceof Layer && Layer._isMBoxEvent(eventType)) {
66559
67791
  this._removeListener(eventType, target, callback);
@@ -66603,7 +67835,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66603
67835
  var layer = this.map.layers.getLayerById(layerId);
66604
67836
  if (layer) {
66605
67837
  try {
66606
- for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
67838
+ for (var _b = __values$a(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
66607
67839
  var id = _c.value;
66608
67840
  this.map._getMap().off(eventType, id, modifiedCallback);
66609
67841
  }
@@ -66638,9 +67870,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66638
67870
  eventDict.forEach(function (callbackDict, eventType) {
66639
67871
  callbackDict.forEach(function (_a) {
66640
67872
  var e_6, _b;
66641
- var _c = __read(_a, 1), modifiedCallback = _c[0];
67873
+ var _c = __read$9(_a, 1), modifiedCallback = _c[0];
66642
67874
  try {
66643
- for (var _d = __values(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
67875
+ for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
66644
67876
  var mbLayerId = _e.value;
66645
67877
  _this.map._getMap().on(eventType, mbLayerId, modifiedCallback);
66646
67878
  }
@@ -66671,9 +67903,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66671
67903
  eventDict.forEach(function (callbackDict, eventType) {
66672
67904
  callbackDict.forEach(function (_a) {
66673
67905
  var e_7, _b;
66674
- var _c = __read(_a, 1), modifiedCallback = _c[0];
67906
+ var _c = __read$9(_a, 1), modifiedCallback = _c[0];
66675
67907
  try {
66676
- for (var _d = __values(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
67908
+ for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
66677
67909
  var mbLayerId = _e.value;
66678
67910
  _this.map._getMap().off(eventType, mbLayerId, modifiedCallback);
66679
67911
  }
@@ -66692,6 +67924,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66692
67924
  return EventManager;
66693
67925
  }());
66694
67926
 
67927
+ var __values$b = (window && window.__values) || function(o) {
67928
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
67929
+ if (m) return m.call(o);
67930
+ if (o && typeof o.length === "number") return {
67931
+ next: function () {
67932
+ if (o && i >= o.length) o = void 0;
67933
+ return { value: o && o[i++], done: !o };
67934
+ }
67935
+ };
67936
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
67937
+ };
66695
67938
  /**
66696
67939
  * A manager for the map control's HTML markers.
66697
67940
  * Exposed through the markers property of the atlas.Map class.
@@ -66711,7 +67954,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66711
67954
  var e_1, _a;
66712
67955
  if (Array.isArray(element)) {
66713
67956
  try {
66714
- for (var element_1 = __values(element), element_1_1 = element_1.next(); !element_1_1.done; element_1_1 = element_1.next()) {
67957
+ for (var element_1 = __values$b(element), element_1_1 = element_1.next(); !element_1_1.done; element_1_1 = element_1.next()) {
66715
67958
  var marker = element_1_1.value;
66716
67959
  this._addMarker(marker, position);
66717
67960
  }
@@ -66749,7 +67992,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66749
67992
  var e_2, _a;
66750
67993
  if (Array.isArray(marker)) {
66751
67994
  try {
66752
- for (var marker_1 = __values(marker), marker_1_1 = marker_1.next(); !marker_1_1.done; marker_1_1 = marker_1.next()) {
67995
+ for (var marker_1 = __values$b(marker), marker_1_1 = marker_1.next(); !marker_1_1.done; marker_1_1 = marker_1.next()) {
66753
67996
  var singleMarker = marker_1_1.value;
66754
67997
  this._removeMarker(singleMarker);
66755
67998
  }
@@ -66954,13 +68197,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66954
68197
  return ImageSpriteManager;
66955
68198
  }());
66956
68199
 
68200
+ var __extends$W = (window && window.__extends) || (function () {
68201
+ var extendStatics = function (d, b) {
68202
+ extendStatics = Object.setPrototypeOf ||
68203
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
68204
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
68205
+ return extendStatics(d, b);
68206
+ };
68207
+ return function (d, b) {
68208
+ if (typeof b !== "function" && b !== null)
68209
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
68210
+ extendStatics(d, b);
68211
+ function __() { this.constructor = d; }
68212
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
68213
+ };
68214
+ })();
68215
+ var __values$c = (window && window.__values) || function(o) {
68216
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
68217
+ if (m) return m.call(o);
68218
+ if (o && typeof o.length === "number") return {
68219
+ next: function () {
68220
+ if (o && i >= o.length) o = void 0;
68221
+ return { value: o && o[i++], done: !o };
68222
+ }
68223
+ };
68224
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
68225
+ };
66957
68226
  /**
66958
68227
  * Used to represent the layer described by a resource files.
66959
68228
  * Serves primarily as a wrapper for multiple Mapbox layers in LayerManger.
66960
68229
  * @private
66961
68230
  */
66962
68231
  var FundamentalMapLayer = /** @class */ (function (_super) {
66963
- __extends(FundamentalMapLayer, _super);
68232
+ __extends$W(FundamentalMapLayer, _super);
66964
68233
  /**
66965
68234
  * Constructs a base layer used to represent the base, transit, and labels layers.
66966
68235
  * @param mbLayers The stylesheet used to define the style sources and style layers.
@@ -66990,7 +68259,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
66990
68259
  var e_1, _a;
66991
68260
  var ids = new Set();
66992
68261
  try {
66993
- for (var _b = __values(this.layers), _c = _b.next(); !_c.done; _c = _b.next()) {
68262
+ for (var _b = __values$c(this.layers), _c = _b.next(); !_c.done; _c = _b.next()) {
66994
68263
  var layer = _c.value;
66995
68264
  if (typeof layer.source === "string") {
66996
68265
  // If the layer's source is just a string id use that.
@@ -67022,6 +68291,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67022
68291
  return FundamentalMapLayer;
67023
68292
  }(Layer));
67024
68293
 
68294
+ var __values$d = (window && window.__values) || function(o) {
68295
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
68296
+ if (m) return m.call(o);
68297
+ if (o && typeof o.length === "number") return {
68298
+ next: function () {
68299
+ if (o && i >= o.length) o = void 0;
68300
+ return { value: o && o[i++], done: !o };
68301
+ }
68302
+ };
68303
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
68304
+ };
68305
+ var __read$a = (window && window.__read) || function (o, n) {
68306
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
68307
+ if (!m) return o;
68308
+ var i = m.call(o), r, ar = [], e;
68309
+ try {
68310
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
68311
+ }
68312
+ catch (error) { e = { error: error }; }
68313
+ finally {
68314
+ try {
68315
+ if (r && !r.done && (m = i["return"])) m.call(i);
68316
+ }
68317
+ finally { if (e) throw e.error; }
68318
+ }
68319
+ return ar;
68320
+ };
68321
+ var __spreadArray$4 = (window && window.__spreadArray) || function (to, from) {
68322
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
68323
+ to[j] = from[i];
68324
+ return to;
68325
+ };
67025
68326
  /**
67026
68327
  * A manager for the map control's layers.
67027
68328
  * Exposed through the layers property of the atlas.Map class.
@@ -67045,7 +68346,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67045
68346
  before;
67046
68347
  if (Array.isArray(layer)) {
67047
68348
  try {
67048
- for (var layer_1 = __values(layer), layer_1_1 = layer_1.next(); !layer_1_1.done; layer_1_1 = layer_1.next()) {
68349
+ for (var layer_1 = __values$d(layer), layer_1_1 = layer_1.next(); !layer_1_1.done; layer_1_1 = layer_1.next()) {
67049
68350
  var singleLayer = layer_1_1.value;
67050
68351
  this._addLayer(singleLayer, beforeId);
67051
68352
  }
@@ -67077,6 +68378,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67077
68378
  // Replace the existing layer with the new one.
67078
68379
  // Place the new layer behind the specified before layer.
67079
68380
  var layerIndex = this.layerIndex.findIndex(function (l) { return l.getId() === layer.getId(); });
68381
+ var userLayerIndex = this.userLayers.findIndex(function (ul) { return ul.layer.getId() === layer.getId(); });
67080
68382
  var tempLayer = this.layerIndex[layerIndex];
67081
68383
  this._removeMapboxLayers(layer);
67082
68384
  this._addMapboxLayers(layer, before);
@@ -67085,8 +68387,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67085
68387
  this.layerIndex.splice(layerIndex, 1);
67086
68388
  var beforeIndex = this.layerIndex.findIndex(function (l) { return l.getId() === before; });
67087
68389
  this.layerIndex.splice(beforeIndex, 0, layer);
67088
- if (!(layer instanceof FundamentalMapLayer))
67089
- this.userLayers.push({ layer: layer, before: before });
68390
+ if (!(layer instanceof FundamentalMapLayer)) {
68391
+ this.userLayers[userLayerIndex] = { layer: layer, before: before };
68392
+ }
67090
68393
  tempLayer.onRemove();
67091
68394
  layer.onAdd(this.map);
67092
68395
  }
@@ -67096,14 +68399,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67096
68399
  this.map.events._enableLayerEvents(layer);
67097
68400
  var beforeIndex = this.layerIndex.findIndex(function (l) { return l.getId() === before; });
67098
68401
  this.layerIndex.splice(beforeIndex, 0, layer);
67099
- if (!(layer instanceof FundamentalMapLayer))
68402
+ if (!(layer instanceof FundamentalMapLayer)) {
67100
68403
  this.userLayers.push({ layer: layer, before: before });
68404
+ }
67101
68405
  layer.onAdd(this.map);
67102
68406
  }
67103
68407
  }
67104
68408
  else {
67105
68409
  var layerIndex = this.layerIndex.findIndex(function (l) { return l.getId() === layer.getId(); });
67106
- if (layerIndex >= 0) {
68410
+ var userLayerIndex = this.userLayers.findIndex(function (ul) { return ul.layer.getId() === layer.getId(); });
68411
+ if (layerIndex >= 0 && userLayerIndex >= 0) {
67107
68412
  // Replace the existing layer with the new one.
67108
68413
  var tempLayer = this.layerIndex[layerIndex];
67109
68414
  this._removeMapboxLayers(tempLayer);
@@ -67111,6 +68416,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67111
68416
  this.map.events._disableLayerEvents(tempLayer);
67112
68417
  this.map.events._enableLayerEvents(layer);
67113
68418
  this.layerIndex[layerIndex] = layer;
68419
+ if (!(layer instanceof FundamentalMapLayer)) {
68420
+ this.userLayers[userLayerIndex] = { layer: layer, before: undefined };
68421
+ }
67114
68422
  tempLayer.onRemove();
67115
68423
  layer.onAdd(this.map);
67116
68424
  }
@@ -67119,8 +68427,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67119
68427
  this._addMapboxLayers(layer);
67120
68428
  this.map.events._enableLayerEvents(layer);
67121
68429
  this.layerIndex.push(layer);
67122
- if (!(layer instanceof FundamentalMapLayer))
68430
+ if (!(layer instanceof FundamentalMapLayer)) {
67123
68431
  this.userLayers.push({ layer: layer, before: before });
68432
+ }
67124
68433
  layer.onAdd(this.map);
67125
68434
  }
67126
68435
  }
@@ -67150,7 +68459,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67150
68459
  }
67151
68460
  var mbBefore = this._getMapboxBefore(before);
67152
68461
  try {
67153
- for (var _b = __values(layer._buildLayers()), _c = _b.next(); !_c.done; _c = _b.next()) {
68462
+ for (var _b = __values$d(layer._buildLayers()), _c = _b.next(); !_c.done; _c = _b.next()) {
67154
68463
  var mbLayer = _c.value;
67155
68464
  this.map._getMap().addLayer(mbLayer, mbBefore);
67156
68465
  }
@@ -67179,7 +68488,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67179
68488
  return;
67180
68489
  }
67181
68490
  try {
67182
- for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
68491
+ for (var _b = __values$d(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
67183
68492
  var mbLayerId = _c.value;
67184
68493
  // Check if the layer does exist.
67185
68494
  if (this.map._getMap().getLayer(mbLayerId)) {
@@ -67238,7 +68547,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67238
68547
  // it would build until a layer exists on the mapbox map.
67239
68548
  if (beforeLayer) {
67240
68549
  try {
67241
- for (var _c = __values(beforeLayer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
68550
+ for (var _c = __values$d(beforeLayer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
67242
68551
  var layerId = _d.value;
67243
68552
  if (this.map._getMap().getLayer(layerId)) {
67244
68553
  return layerId;
@@ -67268,7 +68577,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67268
68577
  // the mapbox layers built by an atlas layer exists in the mapbox map.
67269
68578
  for (var i = before; i < this.layerIndex.length; i++) {
67270
68579
  try {
67271
- for (var _e = (e_5 = void 0, __values(this.layerIndex[i]._getLayerIds())), _f = _e.next(); !_f.done; _f = _e.next()) {
68580
+ for (var _e = (e_5 = void 0, __values$d(this.layerIndex[i]._getLayerIds())), _f = _e.next(); !_f.done; _f = _e.next()) {
67272
68581
  var layerId = _f.value;
67273
68582
  if (this.map._getMap().getLayer(layerId)) {
67274
68583
  return layerId;
@@ -67322,7 +68631,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67322
68631
  var e_6, _a;
67323
68632
  var ids = new Set();
67324
68633
  try {
67325
- for (var _b = __values(this.layerIndex), _c = _b.next(); !_c.done; _c = _b.next()) {
68634
+ for (var _b = __values$d(this.layerIndex), _c = _b.next(); !_c.done; _c = _b.next()) {
67326
68635
  var layer = _c.value;
67327
68636
  layer._getSourceIds().forEach(function (id) { return ids.add(id); });
67328
68637
  }
@@ -67366,12 +68675,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67366
68675
  else {
67367
68676
  this.layerIndex.push(layer);
67368
68677
  }
68678
+ // Update before property of the user layer
68679
+ var userLayer = this.userLayers.find(function (ul) { return ul.layer.getId() === layerId; });
68680
+ if (userLayer) {
68681
+ userLayer.before = beforeId;
68682
+ }
67369
68683
  };
67370
68684
  LayerManager.prototype._moveMapboxLayers = function (layer, before) {
67371
68685
  var e_7, _a;
67372
68686
  var mbBefore = this._getMapboxBefore(before);
67373
68687
  try {
67374
- for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
68688
+ for (var _b = __values$d(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
67375
68689
  var mbLayerId = _c.value;
67376
68690
  this.map._getMap().moveLayer(mbLayerId, mbBefore);
67377
68691
  }
@@ -67440,8 +68754,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67440
68754
  // If a specified layer hasn't been added to the map throw an error.
67441
68755
  var index = this_1.layerIndex.findIndex(function (l) { return l.getId() === layerId; });
67442
68756
  if (index > -1) {
67443
- layerIds.push.apply(layerIds, __spread(this_1.layerIndex[index]._getLayerIds()
67444
- .filter(function (id) { return !!_this.map._getMap().getLayer(id); })));
68757
+ layerIds.push.apply(layerIds, __spreadArray$4([], __read$a(this_1.layerIndex[index]._getLayerIds()
68758
+ .filter(function (id) { return !!_this.map._getMap().getLayer(id); }))));
67445
68759
  }
67446
68760
  else {
67447
68761
  throw new Error("The layer '" + layerId + "' has not been added to the map " +
@@ -67450,7 +68764,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67450
68764
  };
67451
68765
  var this_1 = this;
67452
68766
  try {
67453
- for (var layers_1 = __values(layers), layers_1_1 = layers_1.next(); !layers_1_1.done; layers_1_1 = layers_1.next()) {
68767
+ for (var layers_1 = __values$d(layers), layers_1_1 = layers_1.next(); !layers_1_1.done; layers_1_1 = layers_1.next()) {
67454
68768
  var layer = layers_1_1.value;
67455
68769
  _loop_1(layer);
67456
68770
  }
@@ -67476,7 +68790,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67476
68790
  var e_9, _a;
67477
68791
  if (Array.isArray(layer)) {
67478
68792
  try {
67479
- for (var layer_2 = __values(layer), layer_2_1 = layer_2.next(); !layer_2_1.done; layer_2_1 = layer_2.next()) {
68793
+ for (var layer_2 = __values$d(layer), layer_2_1 = layer_2.next(); !layer_2_1.done; layer_2_1 = layer_2.next()) {
67480
68794
  var singleLayer = layer_2_1.value;
67481
68795
  this._removeLayer(singleLayer);
67482
68796
  }
@@ -67515,6 +68829,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67515
68829
  return LayerManager;
67516
68830
  }());
67517
68831
 
68832
+ var __values$e = (window && window.__values) || function(o) {
68833
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
68834
+ if (m) return m.call(o);
68835
+ if (o && typeof o.length === "number") return {
68836
+ next: function () {
68837
+ if (o && i >= o.length) o = void 0;
68838
+ return { value: o && o[i++], done: !o };
68839
+ }
68840
+ };
68841
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
68842
+ };
67518
68843
  /**
67519
68844
  * A manager for the map control's popups.
67520
68845
  * Exposed through the `popups` property of the `atlas.Map` class.
@@ -67575,7 +68900,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67575
68900
  var e_1, _a;
67576
68901
  popup = Array.isArray(popup) ? popup : [popup];
67577
68902
  try {
67578
- for (var popup_1 = __values(popup), popup_1_1 = popup_1.next(); !popup_1_1.done; popup_1_1 = popup_1.next()) {
68903
+ for (var popup_1 = __values$e(popup), popup_1_1 = popup_1.next(); !popup_1_1.done; popup_1_1 = popup_1.next()) {
67579
68904
  var p = popup_1_1.value;
67580
68905
  if (!this.popups.has(p)) {
67581
68906
  this.popups.add(p);
@@ -67609,7 +68934,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67609
68934
  var e_2, _a;
67610
68935
  popup = Array.isArray(popup) ? popup : [popup];
67611
68936
  try {
67612
- for (var popup_2 = __values(popup), popup_2_1 = popup_2.next(); !popup_2_1.done; popup_2_1 = popup_2.next()) {
68937
+ for (var popup_2 = __values$e(popup), popup_2_1 = popup_2.next(); !popup_2_1.done; popup_2_1 = popup_2.next()) {
67613
68938
  var p = popup_2_1.value;
67614
68939
  if (this.popups.has(p)) {
67615
68940
  this.popups.delete(p);
@@ -67669,12 +68994,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67669
68994
  return PopupManager;
67670
68995
  }());
67671
68996
 
68997
+ var __extends$X = (window && window.__extends) || (function () {
68998
+ var extendStatics = function (d, b) {
68999
+ extendStatics = Object.setPrototypeOf ||
69000
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69001
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69002
+ return extendStatics(d, b);
69003
+ };
69004
+ return function (d, b) {
69005
+ if (typeof b !== "function" && b !== null)
69006
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69007
+ extendStatics(d, b);
69008
+ function __() { this.constructor = d; }
69009
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69010
+ };
69011
+ })();
69012
+ var __assign$6 = (window && window.__assign) || function () {
69013
+ __assign$6 = Object.assign || function(t) {
69014
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
69015
+ s = arguments[i];
69016
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
69017
+ t[p] = s[p];
69018
+ }
69019
+ return t;
69020
+ };
69021
+ return __assign$6.apply(this, arguments);
69022
+ };
67672
69023
  /**
67673
69024
  * Used to represent the fundamental map source.
67674
69025
  * @private
67675
69026
  */
67676
69027
  var FundamentalMapSource = /** @class */ (function (_super) {
67677
- __extends(FundamentalMapSource, _super);
69028
+ __extends$X(FundamentalMapSource, _super);
67678
69029
  /**
67679
69030
  * Constructs a source from the contents of a layer resource file.
67680
69031
  * @param id The source's id.
@@ -67706,7 +69057,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67706
69057
  var tileUrl = new Url({
67707
69058
  domain: constants.domainPlaceHolder,
67708
69059
  path: tile.path,
67709
- queryParams: __assign(__assign({}, options), tile.queryParams)
69060
+ queryParams: __assign$6(__assign$6({}, options), tile.queryParams)
67710
69061
  });
67711
69062
  return tileUrl.toString();
67712
69063
  });
@@ -67718,7 +69069,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67718
69069
  new Url({
67719
69070
  domain: constants.domainPlaceHolder,
67720
69071
  path: sourceDef.url.path,
67721
- queryParams: __assign(__assign({}, options), sourceDef.url.queryParams)
69072
+ queryParams: __assign$6(__assign$6({}, options), sourceDef.url.queryParams)
67722
69073
  }).toString();
67723
69074
  }
67724
69075
  else {
@@ -67729,6 +69080,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67729
69080
  return FundamentalMapSource;
67730
69081
  }(Source));
67731
69082
 
69083
+ var __values$f = (window && window.__values) || function(o) {
69084
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
69085
+ if (m) return m.call(o);
69086
+ if (o && typeof o.length === "number") return {
69087
+ next: function () {
69088
+ if (o && i >= o.length) o = void 0;
69089
+ return { value: o && o[i++], done: !o };
69090
+ }
69091
+ };
69092
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
69093
+ };
67732
69094
  /**
67733
69095
  * A manager for the map control's sources.
67734
69096
  * Exposed through the sources property of the atlas.Map class.
@@ -67747,7 +69109,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67747
69109
  if (update === void 0) { update = true; }
67748
69110
  if (Array.isArray(source)) {
67749
69111
  try {
67750
- for (var source_1 = __values(source), source_1_1 = source_1.next(); !source_1_1.done; source_1_1 = source_1.next()) {
69112
+ for (var source_1 = __values$f(source), source_1_1 = source_1.next(); !source_1_1.done; source_1_1 = source_1.next()) {
67751
69113
  var singleSource = source_1_1.value;
67752
69114
  this._addSource(singleSource, update);
67753
69115
  }
@@ -67873,7 +69235,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67873
69235
  if (update === void 0) { update = true; }
67874
69236
  if (Array.isArray(source)) {
67875
69237
  try {
67876
- for (var source_2 = __values(source), source_2_1 = source_2.next(); !source_2_1.done; source_2_1 = source_2.next()) {
69238
+ for (var source_2 = __values$f(source), source_2_1 = source_2.next(); !source_2_1.done; source_2_1 = source_2.next()) {
67877
69239
  var singleSource = source_2_1.value;
67878
69240
  this._removeSource(singleSource, update);
67879
69241
  }
@@ -67940,7 +69302,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
67940
69302
  var e_3, _a;
67941
69303
  var shapesOrFeatures = [];
67942
69304
  try {
67943
- for (var features_1 = __values(features), features_1_1 = features_1.next(); !features_1_1.done; features_1_1 = features_1.next()) {
69305
+ for (var features_1 = __values$f(features), features_1_1 = features_1.next(); !features_1_1.done; features_1_1 = features_1.next()) {
67944
69306
  var feature = features_1_1.value;
67945
69307
  if ((dataSource || typeof feature["source"] === "string") &&
67946
69308
  typeof feature.properties[Shape._shapeIdPropName] === "string") {
@@ -68015,11 +69377,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68015
69377
  return SourceManager;
68016
69378
  }());
68017
69379
 
69380
+ var __extends$Y = (window && window.__extends) || (function () {
69381
+ var extendStatics = function (d, b) {
69382
+ extendStatics = Object.setPrototypeOf ||
69383
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69384
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69385
+ return extendStatics(d, b);
69386
+ };
69387
+ return function (d, b) {
69388
+ if (typeof b !== "function" && b !== null)
69389
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69390
+ extendStatics(d, b);
69391
+ function __() { this.constructor = d; }
69392
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69393
+ };
69394
+ })();
68018
69395
  /**
68019
69396
  * The options for animating changes to the map control's camera.
68020
69397
  */
68021
69398
  var AnimationOptions = /** @class */ (function (_super) {
68022
- __extends(AnimationOptions, _super);
69399
+ __extends$Y(AnimationOptions, _super);
68023
69400
  function AnimationOptions() {
68024
69401
  var _this = _super !== null && _super.apply(this, arguments) || this;
68025
69402
  /**
@@ -68043,11 +69420,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68043
69420
  return AnimationOptions;
68044
69421
  }(Options));
68045
69422
 
69423
+ var __extends$Z = (window && window.__extends) || (function () {
69424
+ var extendStatics = function (d, b) {
69425
+ extendStatics = Object.setPrototypeOf ||
69426
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69427
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69428
+ return extendStatics(d, b);
69429
+ };
69430
+ return function (d, b) {
69431
+ if (typeof b !== "function" && b !== null)
69432
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69433
+ extendStatics(d, b);
69434
+ function __() { this.constructor = d; }
69435
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69436
+ };
69437
+ })();
68046
69438
  /**
68047
69439
  * Represent the amount of padding in pixels to add to the side of a BoundingBox when setting the camera of a map.
68048
69440
  */
68049
69441
  var Padding = /** @class */ (function (_super) {
68050
- __extends(Padding, _super);
69442
+ __extends$Z(Padding, _super);
68051
69443
  function Padding() {
68052
69444
  var _this = _super !== null && _super.apply(this, arguments) || this;
68053
69445
  /**
@@ -68079,11 +69471,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68079
69471
  return Padding;
68080
69472
  }(Options));
68081
69473
 
69474
+ var __extends$_ = (window && window.__extends) || (function () {
69475
+ var extendStatics = function (d, b) {
69476
+ extendStatics = Object.setPrototypeOf ||
69477
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69478
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69479
+ return extendStatics(d, b);
69480
+ };
69481
+ return function (d, b) {
69482
+ if (typeof b !== "function" && b !== null)
69483
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69484
+ extendStatics(d, b);
69485
+ function __() { this.constructor = d; }
69486
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69487
+ };
69488
+ })();
69489
+ var __values$g = (window && window.__values) || function(o) {
69490
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
69491
+ if (m) return m.call(o);
69492
+ if (o && typeof o.length === "number") return {
69493
+ next: function () {
69494
+ if (o && i >= o.length) o = void 0;
69495
+ return { value: o && o[i++], done: !o };
69496
+ }
69497
+ };
69498
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
69499
+ };
69500
+ var __read$b = (window && window.__read) || function (o, n) {
69501
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
69502
+ if (!m) return o;
69503
+ var i = m.call(o), r, ar = [], e;
69504
+ try {
69505
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
69506
+ }
69507
+ catch (error) { e = { error: error }; }
69508
+ finally {
69509
+ try {
69510
+ if (r && !r.done && (m = i["return"])) m.call(i);
69511
+ }
69512
+ finally { if (e) throw e.error; }
69513
+ }
69514
+ return ar;
69515
+ };
69516
+ var __spreadArray$5 = (window && window.__spreadArray) || function (to, from) {
69517
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
69518
+ to[j] = from[i];
69519
+ return to;
69520
+ };
68082
69521
  /**
68083
69522
  * The options for setting the bounds of the map control's camera.
68084
69523
  */
68085
69524
  var CameraBoundsOptions = /** @class */ (function (_super) {
68086
- __extends(CameraBoundsOptions, _super);
69525
+ __extends$_(CameraBoundsOptions, _super);
68087
69526
  function CameraBoundsOptions() {
68088
69527
  var _this = _super !== null && _super.apply(this, arguments) || this;
68089
69528
  /**
@@ -68130,7 +69569,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68130
69569
  valuesList[_i] = arguments[_i];
68131
69570
  }
68132
69571
  try {
68133
- for (var valuesList_1 = __values(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
69572
+ for (var valuesList_1 = __values$g(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
68134
69573
  var value = valuesList_1_1.value;
68135
69574
  if (value && typeof value.padding === "number") {
68136
69575
  value.padding = {
@@ -68149,16 +69588,31 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68149
69588
  }
68150
69589
  finally { if (e_1) throw e_1.error; }
68151
69590
  }
68152
- return _super.prototype.merge.apply(this, __spread(valuesList));
69591
+ return _super.prototype.merge.apply(this, __spreadArray$5([], __read$b(valuesList)));
68153
69592
  };
68154
69593
  return CameraBoundsOptions;
68155
69594
  }(Options));
68156
69595
 
69596
+ var __extends$$ = (window && window.__extends) || (function () {
69597
+ var extendStatics = function (d, b) {
69598
+ extendStatics = Object.setPrototypeOf ||
69599
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69600
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69601
+ return extendStatics(d, b);
69602
+ };
69603
+ return function (d, b) {
69604
+ if (typeof b !== "function" && b !== null)
69605
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69606
+ extendStatics(d, b);
69607
+ function __() { this.constructor = d; }
69608
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69609
+ };
69610
+ })();
68157
69611
  /**
68158
69612
  * The options for setting the map control's camera.
68159
69613
  */
68160
69614
  var CameraOptions = /** @class */ (function (_super) {
68161
- __extends(CameraOptions, _super);
69615
+ __extends$$(CameraOptions, _super);
68162
69616
  function CameraOptions() {
68163
69617
  var _this = _super !== null && _super.apply(this, arguments) || this;
68164
69618
  /**
@@ -68217,11 +69671,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68217
69671
  return CameraOptions;
68218
69672
  }(Options));
68219
69673
 
69674
+ var __extends$10 = (window && window.__extends) || (function () {
69675
+ var extendStatics = function (d, b) {
69676
+ extendStatics = Object.setPrototypeOf ||
69677
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69678
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69679
+ return extendStatics(d, b);
69680
+ };
69681
+ return function (d, b) {
69682
+ if (typeof b !== "function" && b !== null)
69683
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69684
+ extendStatics(d, b);
69685
+ function __() { this.constructor = d; }
69686
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69687
+ };
69688
+ })();
68220
69689
  /**
68221
69690
  * The options for a layer of the map.
68222
69691
  */
68223
69692
  var LayerOptions$1 = /** @class */ (function (_super) {
68224
- __extends(LayerOptions, _super);
69693
+ __extends$10(LayerOptions, _super);
68225
69694
  function LayerOptions() {
68226
69695
  var _this = _super !== null && _super.apply(this, arguments) || this;
68227
69696
  /**
@@ -68254,12 +69723,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68254
69723
  return LayerOptions;
68255
69724
  }(Options));
68256
69725
 
69726
+ var __extends$11 = (window && window.__extends) || (function () {
69727
+ var extendStatics = function (d, b) {
69728
+ extendStatics = Object.setPrototypeOf ||
69729
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69730
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69731
+ return extendStatics(d, b);
69732
+ };
69733
+ return function (d, b) {
69734
+ if (typeof b !== "function" && b !== null)
69735
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69736
+ extendStatics(d, b);
69737
+ function __() { this.constructor = d; }
69738
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69739
+ };
69740
+ })();
68257
69741
  /**
68258
69742
  * The options for a circle layer.
68259
69743
  * @deprecated Use BubbleLayerOptions with atlas.layer.BubbleLayer instead.
68260
69744
  */
68261
69745
  var CircleLayerOptions = /** @class */ (function (_super) {
68262
- __extends(CircleLayerOptions, _super);
69746
+ __extends$11(CircleLayerOptions, _super);
68263
69747
  function CircleLayerOptions() {
68264
69748
  var _this = _super !== null && _super.apply(this, arguments) || this;
68265
69749
  /**
@@ -68291,12 +69775,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68291
69775
  return CircleLayerOptions;
68292
69776
  }(LayerOptions$1));
68293
69777
 
69778
+ var __extends$12 = (window && window.__extends) || (function () {
69779
+ var extendStatics = function (d, b) {
69780
+ extendStatics = Object.setPrototypeOf ||
69781
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69782
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69783
+ return extendStatics(d, b);
69784
+ };
69785
+ return function (d, b) {
69786
+ if (typeof b !== "function" && b !== null)
69787
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69788
+ extendStatics(d, b);
69789
+ function __() { this.constructor = d; }
69790
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69791
+ };
69792
+ })();
68294
69793
  /**
68295
69794
  * The options for a linestring layer.
68296
69795
  * @deprecated Use LineLayerOptions with atlas.layer.LineLayer instead.
68297
69796
  */
68298
69797
  var LinestringLayerOptions = /** @class */ (function (_super) {
68299
- __extends(LinestringLayerOptions, _super);
69798
+ __extends$12(LinestringLayerOptions, _super);
68300
69799
  function LinestringLayerOptions() {
68301
69800
  var _this = _super !== null && _super.apply(this, arguments) || this;
68302
69801
  /**
@@ -68332,12 +69831,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68332
69831
  return LinestringLayerOptions;
68333
69832
  }(LayerOptions$1));
68334
69833
 
69834
+ var __extends$13 = (window && window.__extends) || (function () {
69835
+ var extendStatics = function (d, b) {
69836
+ extendStatics = Object.setPrototypeOf ||
69837
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69838
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69839
+ return extendStatics(d, b);
69840
+ };
69841
+ return function (d, b) {
69842
+ if (typeof b !== "function" && b !== null)
69843
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69844
+ extendStatics(d, b);
69845
+ function __() { this.constructor = d; }
69846
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69847
+ };
69848
+ })();
68335
69849
  /**
68336
69850
  * The options for a pin layer.
68337
69851
  * @deprecated Use SymbolLayerOptions with atlas.layer.SymbolLayer instead.
68338
69852
  */
68339
69853
  var PinLayerOptions = /** @class */ (function (_super) {
68340
- __extends(PinLayerOptions, _super);
69854
+ __extends$13(PinLayerOptions, _super);
68341
69855
  function PinLayerOptions() {
68342
69856
  var _this = _super !== null && _super.apply(this, arguments) || this;
68343
69857
  /**
@@ -68387,12 +69901,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68387
69901
  return PinLayerOptions;
68388
69902
  }(LayerOptions$1));
68389
69903
 
69904
+ var __extends$14 = (window && window.__extends) || (function () {
69905
+ var extendStatics = function (d, b) {
69906
+ extendStatics = Object.setPrototypeOf ||
69907
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69908
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69909
+ return extendStatics(d, b);
69910
+ };
69911
+ return function (d, b) {
69912
+ if (typeof b !== "function" && b !== null)
69913
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69914
+ extendStatics(d, b);
69915
+ function __() { this.constructor = d; }
69916
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69917
+ };
69918
+ })();
68390
69919
  /**
68391
69920
  * The options for a polygon layer.
68392
69921
  * @deprecated Use new PolygonLayerOptions with atlas.layer.PolygonLayer instead.
68393
69922
  */
68394
69923
  var PolygonLayerOptions$1 = /** @class */ (function (_super) {
68395
- __extends(PolygonLayerOptions, _super);
69924
+ __extends$14(PolygonLayerOptions, _super);
68396
69925
  function PolygonLayerOptions() {
68397
69926
  var _this = _super !== null && _super.apply(this, arguments) || this;
68398
69927
  /**
@@ -68415,12 +69944,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68415
69944
  return PolygonLayerOptions;
68416
69945
  }(LayerOptions$1));
68417
69946
 
69947
+ var __extends$15 = (window && window.__extends) || (function () {
69948
+ var extendStatics = function (d, b) {
69949
+ extendStatics = Object.setPrototypeOf ||
69950
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69951
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69952
+ return extendStatics(d, b);
69953
+ };
69954
+ return function (d, b) {
69955
+ if (typeof b !== "function" && b !== null)
69956
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69957
+ extendStatics(d, b);
69958
+ function __() { this.constructor = d; }
69959
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69960
+ };
69961
+ })();
68418
69962
  /**
68419
69963
  * The options for a raster layer.
68420
69964
  * @deprecated Use TileLayerOptions with atlas.layer.TileLayer instead.
68421
69965
  */
68422
69966
  var RasterLayerOptions = /** @class */ (function (_super) {
68423
- __extends(RasterLayerOptions, _super);
69967
+ __extends$15(RasterLayerOptions, _super);
68424
69968
  function RasterLayerOptions() {
68425
69969
  var _this = _super !== null && _super.apply(this, arguments) || this;
68426
69970
  /**
@@ -68432,11 +69976,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68432
69976
  return RasterLayerOptions;
68433
69977
  }(LayerOptions$1));
68434
69978
 
69979
+ var __extends$16 = (window && window.__extends) || (function () {
69980
+ var extendStatics = function (d, b) {
69981
+ extendStatics = Object.setPrototypeOf ||
69982
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
69983
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
69984
+ return extendStatics(d, b);
69985
+ };
69986
+ return function (d, b) {
69987
+ if (typeof b !== "function" && b !== null)
69988
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
69989
+ extendStatics(d, b);
69990
+ function __() { this.constructor = d; }
69991
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69992
+ };
69993
+ })();
68435
69994
  /**
68436
69995
  * The options for the map's lighting.
68437
69996
  */
68438
69997
  var LightOptions = /** @class */ (function (_super) {
68439
- __extends(LightOptions, _super);
69998
+ __extends$16(LightOptions, _super);
68440
69999
  function LightOptions() {
68441
70000
  var _this = _super !== null && _super.apply(this, arguments) || this;
68442
70001
  /**
@@ -68476,11 +70035,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68476
70035
  return LightOptions;
68477
70036
  }(Options));
68478
70037
 
70038
+ var __extends$17 = (window && window.__extends) || (function () {
70039
+ var extendStatics = function (d, b) {
70040
+ extendStatics = Object.setPrototypeOf ||
70041
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
70042
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
70043
+ return extendStatics(d, b);
70044
+ };
70045
+ return function (d, b) {
70046
+ if (typeof b !== "function" && b !== null)
70047
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
70048
+ extendStatics(d, b);
70049
+ function __() { this.constructor = d; }
70050
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
70051
+ };
70052
+ })();
70053
+ var __values$h = (window && window.__values) || function(o) {
70054
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
70055
+ if (m) return m.call(o);
70056
+ if (o && typeof o.length === "number") return {
70057
+ next: function () {
70058
+ if (o && i >= o.length) o = void 0;
70059
+ return { value: o && o[i++], done: !o };
70060
+ }
70061
+ };
70062
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
70063
+ };
70064
+ var __read$c = (window && window.__read) || function (o, n) {
70065
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
70066
+ if (!m) return o;
70067
+ var i = m.call(o), r, ar = [], e;
70068
+ try {
70069
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
70070
+ }
70071
+ catch (error) { e = { error: error }; }
70072
+ finally {
70073
+ try {
70074
+ if (r && !r.done && (m = i["return"])) m.call(i);
70075
+ }
70076
+ finally { if (e) throw e.error; }
70077
+ }
70078
+ return ar;
70079
+ };
70080
+ var __spreadArray$6 = (window && window.__spreadArray) || function (to, from) {
70081
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
70082
+ to[j] = from[i];
70083
+ return to;
70084
+ };
68479
70085
  /**
68480
70086
  * The options for the map's style.
68481
70087
  */
68482
70088
  var StyleOptions = /** @class */ (function (_super) {
68483
- __extends(StyleOptions, _super);
70089
+ __extends$17(StyleOptions, _super);
68484
70090
  function StyleOptions() {
68485
70091
  var _this = _super !== null && _super.apply(this, arguments) || this;
68486
70092
  /**
@@ -68512,6 +70118,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68512
70118
  * @default false
68513
70119
  */
68514
70120
  _this.preserveDrawingBuffer = false;
70121
+ /**
70122
+ * If true, the map will try to defer non-essential map layers and show essential layers as early as possible.
70123
+ * This option may only be set when initializing the map.
70124
+ * Default `false`
70125
+ * @default false
70126
+ */
70127
+ _this.progressiveLoading = false;
70128
+ /**
70129
+ * The list of layer groups to be loaded at the initial stage. Passing an empty array will disable the progressive loading.
70130
+ * This option may only be set when initializing the map.
70131
+ * Default `['base']`
70132
+ * @default ['base']
70133
+ */
70134
+ _this.progressiveLoadingInitialLayerGroups = ['base'];
68515
70135
  /**
68516
70136
  * Specifies if multiple copies of the world should be rendered when zoomed out.
68517
70137
  * Default `true`
@@ -68591,7 +70211,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68591
70211
  valueList[_i] = arguments[_i];
68592
70212
  }
68593
70213
  try {
68594
- for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
70214
+ for (var valueList_1 = __values$h(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
68595
70215
  var value = valueList_1_1.value;
68596
70216
  if (value) {
68597
70217
  // Make sure both view and userRegion properties exist. Prefer view's value.
@@ -68616,24 +70236,82 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68616
70236
  finally { if (e_1) throw e_1.error; }
68617
70237
  }
68618
70238
  // Then execute the standard merge behavior.
68619
- return _super.prototype.merge.apply(this, __spread(valueList));
70239
+ return _super.prototype.merge.apply(this, __spreadArray$6([], __read$c(valueList)));
68620
70240
  };
68621
70241
  return StyleOptions;
68622
70242
  }(Options));
68623
70243
 
70244
+ var __extends$18 = (window && window.__extends) || (function () {
70245
+ var extendStatics = function (d, b) {
70246
+ extendStatics = Object.setPrototypeOf ||
70247
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
70248
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
70249
+ return extendStatics(d, b);
70250
+ };
70251
+ return function (d, b) {
70252
+ if (typeof b !== "function" && b !== null)
70253
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
70254
+ extendStatics(d, b);
70255
+ function __() { this.constructor = d; }
70256
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
70257
+ };
70258
+ })();
70259
+ var __assign$7 = (window && window.__assign) || function () {
70260
+ __assign$7 = Object.assign || function(t) {
70261
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
70262
+ s = arguments[i];
70263
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
70264
+ t[p] = s[p];
70265
+ }
70266
+ return t;
70267
+ };
70268
+ return __assign$7.apply(this, arguments);
70269
+ };
70270
+ var __values$i = (window && window.__values) || function(o) {
70271
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
70272
+ if (m) return m.call(o);
70273
+ if (o && typeof o.length === "number") return {
70274
+ next: function () {
70275
+ if (o && i >= o.length) o = void 0;
70276
+ return { value: o && o[i++], done: !o };
70277
+ }
70278
+ };
70279
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
70280
+ };
70281
+ var __read$d = (window && window.__read) || function (o, n) {
70282
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
70283
+ if (!m) return o;
70284
+ var i = m.call(o), r, ar = [], e;
70285
+ try {
70286
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
70287
+ }
70288
+ catch (error) { e = { error: error }; }
70289
+ finally {
70290
+ try {
70291
+ if (r && !r.done && (m = i["return"])) m.call(i);
70292
+ }
70293
+ finally { if (e) throw e.error; }
70294
+ }
70295
+ return ar;
70296
+ };
70297
+ var __spreadArray$7 = (window && window.__spreadArray) || function (to, from) {
70298
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
70299
+ to[j] = from[i];
70300
+ return to;
70301
+ };
68624
70302
  var composeTransformers = function (transformers) { return transformers.length == 0
68625
70303
  ? undefined
68626
70304
  : transformers.slice(1).reduce(function (chained, transform) {
68627
70305
  return function (url, resourceType) {
68628
70306
  var resourceParams = chained(url, resourceType);
68629
- return __assign(__assign({}, resourceParams), transform(resourceParams.url, resourceType));
70307
+ return __assign$7(__assign$7({}, resourceParams), transform(resourceParams.url, resourceType));
68630
70308
  };
68631
70309
  }, transformers[0]); };
68632
70310
  /**
68633
70311
  * Global properties used in all atlas service requests.
68634
70312
  */
68635
70313
  var ServiceOptions = /** @class */ (function (_super) {
68636
- __extends(ServiceOptions, _super);
70314
+ __extends$18(ServiceOptions, _super);
68637
70315
  function ServiceOptions() {
68638
70316
  var _this = _super !== null && _super.apply(this, arguments) || this;
68639
70317
  /**
@@ -68792,7 +70470,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68792
70470
  }
68793
70471
  try {
68794
70472
  // Make sure both camel and dash case properties exist. Prefer the camel case ones.
68795
- for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
70473
+ for (var valueList_1 = __values$i(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
68796
70474
  var value = valueList_1_1.value;
68797
70475
  if (value) {
68798
70476
  // authOptions can also have a subscription key so check for that first.
@@ -68851,10 +70529,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68851
70529
  // won't change default behavior in Options as usually that's what desired
68852
70530
  // instead capture it here and reassign.
68853
70531
  var currentTransforms = this._transformers;
68854
- var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return __spread(flattened, value._transformers || []); }, []) : [];
70532
+ var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return __spreadArray$7(__spreadArray$7([], __read$d(flattened)), __read$d(value._transformers || [])); }, []) : [];
68855
70533
  // Then execute the standard merge behavior.
68856
70534
  // If subscription key auth method isn't being used then the subscription key property should be undefined.
68857
- var merged = _super.prototype.merge.apply(this, __spread(valueList));
70535
+ var merged = _super.prototype.merge.apply(this, __spreadArray$7([], __read$d(valueList)));
68858
70536
  if (merged.authOptions.authType !== exports.AuthenticationType.subscriptionKey) {
68859
70537
  merged["subscription-key"] = merged.subscriptionKey = undefined;
68860
70538
  }
@@ -68864,9 +70542,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
68864
70542
  }
68865
70543
  // reassign properties from legacy mapConfiguration to new structure if needed
68866
70544
  if (merged.mapConfiguration && typeof merged.mapConfiguration !== 'string') {
68867
- merged.mapConfiguration = __assign(__assign({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
70545
+ merged.mapConfiguration = __assign$7(__assign$7({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
68868
70546
  }
68869
- this._transformers = __spread(currentTransforms || [], transformersToMerge.filter(function (toMerge) { return !currentTransforms.includes(toMerge); }));
70547
+ this._transformers = __spreadArray$7(__spreadArray$7([], __read$d(currentTransforms || [])), __read$d(transformersToMerge.filter(function (toMerge) { return !currentTransforms.includes(toMerge); })));
68870
70548
  if (this.transformRequest && !this._transformers.includes(this.transformRequest)) {
68871
70549
  this._transformers.push(this.transformRequest);
68872
70550
  }
@@ -69051,6 +70729,74 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69051
70729
  high_contrast_light: "High contrast (Light)"
69052
70730
  };
69053
70731
 
70732
+ var __assign$8 = (window && window.__assign) || function () {
70733
+ __assign$8 = Object.assign || function(t) {
70734
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
70735
+ s = arguments[i];
70736
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
70737
+ t[p] = s[p];
70738
+ }
70739
+ return t;
70740
+ };
70741
+ return __assign$8.apply(this, arguments);
70742
+ };
70743
+ var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
70744
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
70745
+ return new (P || (P = Promise))(function (resolve, reject) {
70746
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
70747
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
70748
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
70749
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
70750
+ });
70751
+ };
70752
+ var __generator$3 = (window && window.__generator) || function (thisArg, body) {
70753
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
70754
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
70755
+ function verb(n) { return function (v) { return step([n, v]); }; }
70756
+ function step(op) {
70757
+ if (f) throw new TypeError("Generator is already executing.");
70758
+ while (_) try {
70759
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
70760
+ if (y = 0, t) op = [op[0] & 2, t.value];
70761
+ switch (op[0]) {
70762
+ case 0: case 1: t = op; break;
70763
+ case 4: _.label++; return { value: op[1], done: false };
70764
+ case 5: _.label++; y = op[1]; op = [0]; continue;
70765
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
70766
+ default:
70767
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
70768
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
70769
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
70770
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
70771
+ if (t[2]) _.ops.pop();
70772
+ _.trys.pop(); continue;
70773
+ }
70774
+ op = body.call(thisArg, _);
70775
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
70776
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70777
+ }
70778
+ };
70779
+ var __read$e = (window && window.__read) || function (o, n) {
70780
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
70781
+ if (!m) return o;
70782
+ var i = m.call(o), r, ar = [], e;
70783
+ try {
70784
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
70785
+ }
70786
+ catch (error) { e = { error: error }; }
70787
+ finally {
70788
+ try {
70789
+ if (r && !r.done && (m = i["return"])) m.call(i);
70790
+ }
70791
+ finally { if (e) throw e.error; }
70792
+ }
70793
+ return ar;
70794
+ };
70795
+ var __spreadArray$8 = (window && window.__spreadArray) || function (to, from) {
70796
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
70797
+ to[j] = from[i];
70798
+ return to;
70799
+ };
69054
70800
  /**
69055
70801
  * @private
69056
70802
  */
@@ -69073,6 +70819,57 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69073
70819
  * Preserve the map configuration that was used before the indoor map configuration was set
69074
70820
  */
69075
70821
  this.preservedPreindoorMapConfiguration = undefined;
70822
+ this._deferLayerGroupVisibilities = function (layerGroupLayers, initLayerGroups) {
70823
+ var validInitLayerGroups = initLayerGroups.filter(function (groupName) { return groupName in layerGroupLayers; });
70824
+ // If the initial layer groups are invalid, skip the progressive loading.
70825
+ if (validInitLayerGroups.length === 0)
70826
+ return;
70827
+ var map = _this.map._getMap();
70828
+ var currentZoomLevel = map.getZoom();
70829
+ // Select the layers to be deferred
70830
+ var deferredLayers = Object.entries(layerGroupLayers).reduce(function (deferred, _a) {
70831
+ var _b = __read$e(_a, 2), groupName = _b[0], layers = _b[1];
70832
+ var isInInitialLayerGroup = validInitLayerGroups.includes(groupName);
70833
+ return __spreadArray$8(__spreadArray$8([], __read$e(deferred)), __read$e(layers.filter(function (layer) {
70834
+ var _a;
70835
+ // Exclude custom layers
70836
+ if (layer.type === 'custom')
70837
+ return false;
70838
+ // Exclude visible layers from initial layer groups
70839
+ if (isInInitialLayerGroup) {
70840
+ if (typeof layer.maxzoom === 'number' && typeof layer.minzoom === 'number') {
70841
+ if (currentZoomLevel <= layer.maxzoom && currentZoomLevel >= layer.minzoom)
70842
+ return false;
70843
+ }
70844
+ else if (typeof layer.minzoom === 'number') {
70845
+ if (currentZoomLevel >= layer.minzoom)
70846
+ return false;
70847
+ }
70848
+ else if (typeof layer.maxzoom === 'number') {
70849
+ if (currentZoomLevel <= layer.maxzoom)
70850
+ return false;
70851
+ }
70852
+ else {
70853
+ return false;
70854
+ }
70855
+ }
70856
+ // Defer visible layers only.
70857
+ return ((_a = layer.layout) === null || _a === void 0 ? void 0 : _a.visibility) !== 'none';
70858
+ })));
70859
+ }, []);
70860
+ // Hide the deferred layers at initial load, therefore we can save the render time.
70861
+ deferredLayers.forEach(function (layer) {
70862
+ layer.layout = layer.layout || {};
70863
+ layer.layout.visibility = 'none';
70864
+ });
70865
+ // Make the deferred layers visible once the map instance is fully loaded
70866
+ _this.map.events.addOnce('load', function () {
70867
+ deferredLayers.forEach(function (layer) {
70868
+ layer.layout.visibility = 'visible';
70869
+ map.setLayoutProperty(layer.id, 'visibility', 'visible');
70870
+ });
70871
+ });
70872
+ };
69076
70873
  this._onStyleData = function () {
69077
70874
  _this._lookUpAsync(_this.map.getStyle()).then(function (style) {
69078
70875
  _this.map.events.invoke("stylechanged", {
@@ -69102,9 +70899,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69102
70899
  || definitions.configurations[0];
69103
70900
  }
69104
70901
  };
69105
- this._lookUpAsync = function (options) { return __awaiter(_this, void 0, void 0, function () {
70902
+ this._lookUpAsync = function (options) { return __awaiter$3(_this, void 0, void 0, function () {
69106
70903
  var definitions, result;
69107
- return __generator(this, function (_a) {
70904
+ return __generator$3(this, function (_a) {
69108
70905
  switch (_a.label) {
69109
70906
  case 0: return [4 /*yield*/, this.definitions()];
69110
70907
  case 1:
@@ -69214,6 +71011,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69214
71011
  path: constants.stylePath + "/" + constants.styleResourcePath + "/" + style.name,
69215
71012
  queryParams: {
69216
71013
  styleVersion: _this.serviceOptions.styleDefinitionsVersion,
71014
+ // thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
71015
+ //language: styleOptions.language
69217
71016
  },
69218
71017
  protocol: "https"
69219
71018
  }).toString(),
@@ -69223,7 +71022,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69223
71022
  else if (typeof this.serviceOptions.mapConfiguration === 'string') {
69224
71023
  newPromise = new HijackablePromise(this._request(this.serviceOptions.domain, constants.styleResourcePath + "/mapconfigurations/metadata/" + this.serviceOptions.mapConfiguration, "StyleDefinitions"
69225
71024
  // reassign properties from legacy mapConfiguration to new structure if needed
69226
- ).then(function (definitions) { return (__assign(__assign({}, definitions), { defaultConfiguration: definitions.defaultConfiguration || definitions['defaultStyle'], configurations: definitions.configurations || definitions['styles'] })); }));
71025
+ ).then(function (definitions) { return (__assign$8(__assign$8({}, definitions), { defaultConfiguration: definitions.defaultConfiguration || definitions['defaultStyle'], configurations: definitions.configurations || definitions['styles'] })); }));
69227
71026
  }
69228
71027
  else {
69229
71028
  newPromise = HijackablePromise.resolve(this.serviceOptions.mapConfiguration);
@@ -69283,8 +71082,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69283
71082
  return style.theme.toLowerCase();
69284
71083
  };
69285
71084
  StyleManager.prototype.getThemeAsync = function (styleOptions) {
69286
- return __awaiter(this, void 0, void 0, function () {
69287
- return __generator(this, function (_a) {
71085
+ return __awaiter$3(this, void 0, void 0, function () {
71086
+ return __generator$3(this, function (_a) {
69288
71087
  switch (_a.label) {
69289
71088
  case 0: return [4 /*yield*/, this._lookUpAsync(styleOptions)];
69290
71089
  case 1: return [2 /*return*/, (_a.sent()).theme];
@@ -69353,8 +71152,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69353
71152
  var trafficOptions = this.map.getTraffic();
69354
71153
  // force a replacement of language placeholder in the tileset url to avoid resolution to a same cache with placeholders on language change
69355
71154
  nextStyle.sources = Object.entries(nextStyle.sources).reduce(function (newSources, _a) {
69356
- var _b = __read(_a, 2), sourceKey = _b[0], source = _b[1];
69357
- var newSource = __assign({}, source);
71155
+ var _b = __read$e(_a, 2), sourceKey = _b[0], source = _b[1];
71156
+ var newSource = __assign$8({}, source);
69358
71157
  if ('url' in newSource && typeof newSource.url === 'string') {
69359
71158
  if (newSource.url.includes(constants.languagePlaceHolder)) {
69360
71159
  newSource.url = newSource.url.replace(constants.languagePlaceHolder, styleOptions.language);
@@ -69363,46 +71162,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69363
71162
  newSources[sourceKey] = newSource;
69364
71163
  return newSources;
69365
71164
  }, {});
69366
- // A FundamentalMapLayer (grouped layer) representation of the next style must be built.
69367
- var previousLayers = this.map.layers.getLayers();
69368
- var nextLayers = [];
71165
+ var shouldProgressiveLoading = (styleOptions.progressiveLoading &&
71166
+ // The feature only effective at the initial load.
71167
+ !this.map._isLoaded());
71168
+ var setLayerVisibility = function (layer, visibility) {
71169
+ var _a;
71170
+ if (!shouldProgressiveLoading) {
71171
+ // No need to apply the visibility change to maplibre while progressive loading is enabled.
71172
+ // This can save a lot of CPU time.
71173
+ updateLayoutProperty(layer.id, 'visibility', visibility);
71174
+ }
71175
+ layer.layout = (_a = layer.layout) !== null && _a !== void 0 ? _a : {};
71176
+ layer.layout.visibility = visibility;
71177
+ };
69369
71178
  var layerGroupLayers = {};
69370
71179
  nextStyle.layers.forEach(function (nextLayer) {
69371
- var _a, _b, _c, _d, _e;
71180
+ var _a;
69372
71181
  var layerGroup = LayerGroupComparator.getLayerGroup(nextLayer);
69373
71182
  if (layerGroup) {
69374
- // Set visiblity of fill-extrusion layers according to StyleOptions.showBuildingModels
69375
- if (!styleOptions.showBuildingModels && nextLayer.type === "fill-extrusion") {
69376
- updateLayoutProperty(nextLayer.id, "visibility", "none");
69377
- nextLayer.layout = (_a = nextLayer.layout) !== null && _a !== void 0 ? _a : {};
69378
- nextLayer.layout.visibility = "none";
69379
- }
69380
- else if (nextLayer.type === "fill-extrusion") {
69381
- updateLayoutProperty(nextLayer.id, "visibility", "visible");
69382
- nextLayer.layout = (_b = nextLayer.layout) !== null && _b !== void 0 ? _b : {};
69383
- nextLayer.layout.visibility = "visible";
71183
+ // Set visibility of fill-extrusion layers according to StyleOptions.showBuildingModels
71184
+ if (nextLayer.type === 'fill-extrusion') {
71185
+ setLayerVisibility(nextLayer, styleOptions.showBuildingModels ? 'visible' : 'none');
69384
71186
  }
69385
71187
  // Set visibility of traffic layers depending on traffic settings.
69386
- if (trafficOptions.flow !== "none" && layerGroup) {
69387
- if (layerGroup === "traffic_" + trafficOptions.flow && nextLayer.type == "line") {
69388
- updateLayoutProperty(nextLayer.id, "visibility", "visible");
69389
- nextLayer.layout = (_c = nextLayer.layout) !== null && _c !== void 0 ? _c : {};
69390
- nextLayer.layout.visibility = "visible";
69391
- }
71188
+ if (trafficOptions.flow !== 'none' &&
71189
+ layerGroup === "traffic_" + trafficOptions.flow &&
71190
+ nextLayer.type == 'line') {
71191
+ setLayerVisibility(nextLayer, 'visible');
69392
71192
  }
69393
71193
  // Set visibility of labels
69394
71194
  var isLabelLayerGroup = layerGroup === 'labels' || layerGroup === 'labels_places' || layerGroup === 'labels_indoor';
69395
71195
  if (isLabelLayerGroup && nextLayer.type === 'symbol') {
69396
- if (styleOptions.showLabels) {
69397
- updateLayoutProperty(nextLayer.id, "visibility", "visible");
69398
- nextLayer.layout = (_d = nextLayer.layout) !== null && _d !== void 0 ? _d : {};
69399
- nextLayer.layout.visibility = "visible";
69400
- }
69401
- else {
69402
- updateLayoutProperty(nextLayer.id, "visibility", "none");
69403
- nextLayer.layout = (_e = nextLayer.layout) !== null && _e !== void 0 ? _e : {};
69404
- nextLayer.layout.visibility = "none";
69405
- }
71196
+ var isLayerVisible = ((_a = nextLayer.layout) === null || _a === void 0 ? void 0 : _a.visibility) !== 'none';
71197
+ setLayerVisibility(nextLayer, isLayerVisible && styleOptions.showLabels ? 'visible' : 'none');
69406
71198
  }
69407
71199
  // Once this _stylePatch returns control to maplibre the next style will be applied immediately in the same context.
69408
71200
  // To avoid potential data races update LayerManager with new a new set of FundamentalMapLayers from here instead of
@@ -69415,13 +71207,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69415
71207
  }
69416
71208
  }
69417
71209
  });
69418
- Object.entries(layerGroupLayers).forEach(function (_a) {
69419
- var _b = __read(_a, 2), layerGroupId = _b[0], layerGroupMapboxLayers = _b[1];
69420
- nextLayers.push(_this._buildFundamentalLayerFrom(layerGroupMapboxLayers, layerGroupId));
71210
+ if (shouldProgressiveLoading) {
71211
+ var initLayerGroups = styleOptions.progressiveLoadingInitialLayerGroups;
71212
+ if (Array.isArray(initLayerGroups) && initLayerGroups.length > 0) {
71213
+ this._deferLayerGroupVisibilities(layerGroupLayers, initLayerGroups);
71214
+ }
71215
+ }
71216
+ // A FundamentalMapLayer (grouped layer) representation of the next style must be built.
71217
+ var previousLayers = this.map.layers.getLayers();
71218
+ var nextLayers = Object.entries(layerGroupLayers).map(function (_a) {
71219
+ var _b = __read$e(_a, 2), layerGroupName = _b[0], layerGroupMapboxLayers = _b[1];
71220
+ return _this._buildFundamentalLayerFrom(layerGroupMapboxLayers, layerGroupName);
69421
71221
  });
69422
71222
  // Update FundamentalMapLayers in LayerManager
69423
71223
  var userLayers = this.map.layers._getUserLayers();
69424
- var firstUserLayer = userLayers[0];
69425
71224
  var layersToRemove = previousLayers.filter(function (c) {
69426
71225
  return (nextLayers.findIndex(function (n) { return c.getId() === n.getId(); }) < 0 &&
69427
71226
  userLayers.findIndex(function (n) { return c.getId() === n.layer.getId(); }) < 0);
@@ -69443,8 +71242,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69443
71242
  _this.map.layers.add(newFundamentalLayer, replace.value[1]);
69444
71243
  }
69445
71244
  else {
69446
- // Insert new layer underneath the first user layer, or the .
69447
- _this.map.layers.add(newFundamentalLayer, firstUserLayer === null || firstUserLayer === void 0 ? void 0 : firstUserLayer.layer);
71245
+ _this.map.layers.add(newFundamentalLayer);
69448
71246
  }
69449
71247
  }
69450
71248
  });
@@ -69465,6 +71263,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69465
71263
  before = (beforeCandidates.length > 0) ? beforeCandidates[0] : undefined;
69466
71264
  }
69467
71265
  preserveLayer(userLayer.layer.getId(), before === null || before === void 0 ? void 0 : before.id);
71266
+ _this.map.layers.move(userLayer.layer, userLayer.before);
69468
71267
  });
69469
71268
  this.map.sources._syncSources(nextStyle.sources);
69470
71269
  // If there was a previous styledata change event attached, remove it.
@@ -69516,10 +71315,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69516
71315
  StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
69517
71316
  var _a;
69518
71317
  if (customQueryParams === void 0) { customQueryParams = {}; }
69519
- return __awaiter(this, void 0, void 0, function () {
71318
+ return __awaiter$3(this, void 0, void 0, function () {
69520
71319
  var requestParams, fetchOptions;
69521
71320
  var _b;
69522
- return __generator(this, function (_c) {
71321
+ return __generator$3(this, function (_c) {
69523
71322
  switch (_c.label) {
69524
71323
  case 0:
69525
71324
  requestParams = {
@@ -69527,7 +71326,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69527
71326
  protocol: "https",
69528
71327
  domain: domain,
69529
71328
  path: path,
69530
- queryParams: __assign((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
71329
+ queryParams: __assign$8((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
69531
71330
  }).toString()
69532
71331
  };
69533
71332
  if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
@@ -69564,11 +71363,105 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69564
71363
  */
69565
71364
  var isHMREnabled = function () { return 'ENVIRONMENT' in window && !!window['ENVIRONMENT']['hmr']; };
69566
71365
 
71366
+ var __extends$19 = (window && window.__extends) || (function () {
71367
+ var extendStatics = function (d, b) {
71368
+ extendStatics = Object.setPrototypeOf ||
71369
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
71370
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
71371
+ return extendStatics(d, b);
71372
+ };
71373
+ return function (d, b) {
71374
+ if (typeof b !== "function" && b !== null)
71375
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
71376
+ extendStatics(d, b);
71377
+ function __() { this.constructor = d; }
71378
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
71379
+ };
71380
+ })();
71381
+ var __assign$9 = (window && window.__assign) || function () {
71382
+ __assign$9 = Object.assign || function(t) {
71383
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
71384
+ s = arguments[i];
71385
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
71386
+ t[p] = s[p];
71387
+ }
71388
+ return t;
71389
+ };
71390
+ return __assign$9.apply(this, arguments);
71391
+ };
71392
+ var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
71393
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
71394
+ return new (P || (P = Promise))(function (resolve, reject) {
71395
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
71396
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
71397
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
71398
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
71399
+ });
71400
+ };
71401
+ var __generator$4 = (window && window.__generator) || function (thisArg, body) {
71402
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
71403
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
71404
+ function verb(n) { return function (v) { return step([n, v]); }; }
71405
+ function step(op) {
71406
+ if (f) throw new TypeError("Generator is already executing.");
71407
+ while (_) try {
71408
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
71409
+ if (y = 0, t) op = [op[0] & 2, t.value];
71410
+ switch (op[0]) {
71411
+ case 0: case 1: t = op; break;
71412
+ case 4: _.label++; return { value: op[1], done: false };
71413
+ case 5: _.label++; y = op[1]; op = [0]; continue;
71414
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
71415
+ default:
71416
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
71417
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
71418
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
71419
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
71420
+ if (t[2]) _.ops.pop();
71421
+ _.trys.pop(); continue;
71422
+ }
71423
+ op = body.call(thisArg, _);
71424
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
71425
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
71426
+ }
71427
+ };
71428
+ var __read$f = (window && window.__read) || function (o, n) {
71429
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
71430
+ if (!m) return o;
71431
+ var i = m.call(o), r, ar = [], e;
71432
+ try {
71433
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
71434
+ }
71435
+ catch (error) { e = { error: error }; }
71436
+ finally {
71437
+ try {
71438
+ if (r && !r.done && (m = i["return"])) m.call(i);
71439
+ }
71440
+ finally { if (e) throw e.error; }
71441
+ }
71442
+ return ar;
71443
+ };
71444
+ var __spreadArray$9 = (window && window.__spreadArray) || function (to, from) {
71445
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
71446
+ to[j] = from[i];
71447
+ return to;
71448
+ };
71449
+ var __values$j = (window && window.__values) || function(o) {
71450
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
71451
+ if (m) return m.call(o);
71452
+ if (o && typeof o.length === "number") return {
71453
+ next: function () {
71454
+ if (o && i >= o.length) o = void 0;
71455
+ return { value: o && o[i++], done: !o };
71456
+ }
71457
+ };
71458
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
71459
+ };
69567
71460
  /**
69568
71461
  * The control for a visual and interactive web map.
69569
71462
  */
69570
71463
  var Map$2 = /** @class */ (function (_super) {
69571
- __extends(Map, _super);
71464
+ __extends$19(Map, _super);
69572
71465
  /**
69573
71466
  * Displays a map in the specified container.
69574
71467
  * @param container The id of the element where the map should be displayed.
@@ -69705,7 +71598,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69705
71598
  _this.localizedStringsPromise = Localizer.getStrings(_this.styleOptions.language);
69706
71599
  var stylesInit = _this.styles.initStyleset();
69707
71600
  Promise.all([authManInit, stylesInit]).then(function (_a) {
69708
- var _b = __read(_a, 2), _ = _b[0], definitions = _b[1];
71601
+ var _b = __read$f(_a, 2), _ = _b[0], definitions = _b[1];
69709
71602
  // Check that the map hasn't been removed for any reason.
69710
71603
  // If so no need to finish styling the map.
69711
71604
  if (_this.removed) {
@@ -69735,7 +71628,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69735
71628
  _this.events.invoke("error", errorData);
69736
71629
  });
69737
71630
  // --> Set initial camera state of map
69738
- _this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
71631
+ _this.setCamera(__assign$9(__assign$9({}, options), { type: "jump", duration: 0 }));
69739
71632
  // Add delegates to map
69740
71633
  {
69741
71634
  _this.incidentDelegate = new IncidentServiceDelegate(_this);
@@ -69880,10 +71773,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69880
71773
  this.map.jumpTo(mapboxCameraOptions, eventData);
69881
71774
  }
69882
71775
  else if (animOptions.type === "ease") {
69883
- this.map.easeTo(__assign(__assign({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
71776
+ this.map.easeTo(__assign$9(__assign$9({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
69884
71777
  }
69885
71778
  else if (animOptions.type === "fly") {
69886
- this.map.flyTo(__assign(__assign({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
71779
+ this.map.flyTo(__assign$9(__assign$9({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
69887
71780
  }
69888
71781
  };
69889
71782
  /**
@@ -70346,7 +72239,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
70346
72239
  urls = layer.getOptions().subdomains || [];
70347
72240
  }
70348
72241
  // Add the tile urls to the layer, but don't update the map yet.
70349
- urls.push.apply(urls, __spread(tileSources));
72242
+ urls.push.apply(urls, __spreadArray$9([], __read$f(tileSources)));
70350
72243
  layer._setOptionsNoUpdate({
70351
72244
  subdomains: urls
70352
72245
  });
@@ -70368,7 +72261,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
70368
72261
  Map.prototype.removeLayers = function (layerNames) {
70369
72262
  var e_1, _a;
70370
72263
  try {
70371
- for (var layerNames_1 = __values(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
72264
+ for (var layerNames_1 = __values$j(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
70372
72265
  var layerName = layerNames_1_1.value;
70373
72266
  // Previously calling removeLayers for layers that didn't exist in the map just did nothing.
70374
72267
  // Now, LayerManager will throw an error, so we need to check if the layer exists before calling remove.
@@ -70558,7 +72451,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
70558
72451
  var e_2, _a;
70559
72452
  var positions = [];
70560
72453
  try {
70561
- for (var pixels_1 = __values(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
72454
+ for (var pixels_1 = __values$j(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
70562
72455
  var pixel = pixels_1_1.value;
70563
72456
  var lngLat = this.map.unproject(pixel);
70564
72457
  positions.push(new Position(lngLat.lng, lngLat.lat));
@@ -70581,7 +72474,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
70581
72474
  var e_3, _a;
70582
72475
  var pixels = [];
70583
72476
  try {
70584
- for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
72477
+ for (var positions_1 = __values$j(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
70585
72478
  var position = positions_1_1.value;
70586
72479
  var point = this.map.project(position);
70587
72480
  pixels.push(new Pixel(point.x, point.y));
@@ -70629,8 +72522,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
70629
72522
  */
70630
72523
  Map.prototype._rebuildStyle = function (diff) {
70631
72524
  if (diff === void 0) { diff = true; }
70632
- return __awaiter(this, void 0, void 0, function () {
70633
- return __generator(this, function (_a) {
72525
+ return __awaiter$4(this, void 0, void 0, function () {
72526
+ return __generator$4(this, function (_a) {
70634
72527
  this.styles.setStyle(this.styleOptions, diff);
70635
72528
  this.imageSprite._restoreImages();
70636
72529
  return [2 /*return*/];
@@ -70675,7 +72568,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
70675
72568
  // Send the fetch using the transformed parameters.
70676
72569
  return fetch(requestParams.url || url, {
70677
72570
  credentials: requestParams.credentials,
70678
- headers: __assign(__assign({}, headers), requestParams.headers),
72571
+ headers: __assign$9(__assign$9({}, headers), requestParams.headers),
70679
72572
  method: "GET",
70680
72573
  mode: "cors",
70681
72574
  });
@@ -70846,6 +72739,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
70846
72739
  return Map;
70847
72740
  }(EventEmitter));
70848
72741
 
72742
+ var __read$g = (window && window.__read) || function (o, n) {
72743
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
72744
+ if (!m) return o;
72745
+ var i = m.call(o), r, ar = [], e;
72746
+ try {
72747
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
72748
+ }
72749
+ catch (error) { e = { error: error }; }
72750
+ finally {
72751
+ try {
72752
+ if (r && !r.done && (m = i["return"])) m.call(i);
72753
+ }
72754
+ finally { if (e) throw e.error; }
72755
+ }
72756
+ return ar;
72757
+ };
72758
+ var __spreadArray$a = (window && window.__spreadArray) || function (to, from) {
72759
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
72760
+ to[j] = from[i];
72761
+ return to;
72762
+ };
70849
72763
  /** A layout template for a popup. */
70850
72764
  var PopupTemplate = /** @class */ (function () {
70851
72765
  function PopupTemplate() {
@@ -70987,7 +72901,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
70987
72901
  lineLength = 50;
70988
72902
  }
70989
72903
  var lines = c.split(/<(tr|div|br|li|h[0-9]|p>)/);
70990
- longestStringLength = Math.max.apply(Math, __spread((lines.map(function (el) { return el.replace(/<[a-zA-Z0-9\s=\/]+>/g, "").length; })))) - 1;
72904
+ longestStringLength = Math.max.apply(Math, __spreadArray$a([], __read$g((lines.map(function (el) { return el.replace(/<[a-zA-Z0-9\s=\/]+>/g, "").length; }))))) - 1;
70991
72905
  var w = Math.ceil(longestStringLength * 3.5);
70992
72906
  if (w < width) {
70993
72907
  width = w;