azure-maps-control 3.0.0-preview.1 → 3.0.0-preview.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.
@@ -91,119 +91,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
91
91
  sessionIdHeaderName: "Session-Id"
92
92
  };
93
93
 
94
- /*! *****************************************************************************
95
- Copyright (c) Microsoft Corporation.
96
-
97
- Permission to use, copy, modify, and/or distribute this software for any
98
- purpose with or without fee is hereby granted.
99
-
100
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
101
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
102
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
103
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
104
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
105
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
106
- PERFORMANCE OF THIS SOFTWARE.
107
- ***************************************************************************** */
108
- /* global Reflect, Promise */
109
-
110
- var extendStatics = function(d, b) {
111
- extendStatics = Object.setPrototypeOf ||
112
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
113
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
114
- return extendStatics(d, b);
115
- };
116
-
117
- function __extends(d, b) {
118
- extendStatics(d, b);
119
- function __() { this.constructor = d; }
120
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
121
- }
122
-
123
- var __assign = function() {
124
- __assign = Object.assign || function __assign(t) {
125
- for (var s, i = 1, n = arguments.length; i < n; i++) {
126
- s = arguments[i];
127
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
128
- }
129
- return t;
130
- };
131
- return __assign.apply(this, arguments);
132
- };
133
-
134
- function __awaiter(thisArg, _arguments, P, generator) {
135
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
136
- return new (P || (P = Promise))(function (resolve, reject) {
137
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
138
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
139
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
140
- step((generator = generator.apply(thisArg, _arguments || [])).next());
141
- });
142
- }
143
-
144
- function __generator(thisArg, body) {
145
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
146
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
147
- function verb(n) { return function (v) { return step([n, v]); }; }
148
- function step(op) {
149
- if (f) throw new TypeError("Generator is already executing.");
150
- while (_) try {
151
- 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;
152
- if (y = 0, t) op = [op[0] & 2, t.value];
153
- switch (op[0]) {
154
- case 0: case 1: t = op; break;
155
- case 4: _.label++; return { value: op[1], done: false };
156
- case 5: _.label++; y = op[1]; op = [0]; continue;
157
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
158
- default:
159
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
160
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
161
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
162
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
163
- if (t[2]) _.ops.pop();
164
- _.trys.pop(); continue;
165
- }
166
- op = body.call(thisArg, _);
167
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
168
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
169
- }
170
- }
171
-
172
- function __values(o) {
173
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
174
- if (m) return m.call(o);
175
- if (o && typeof o.length === "number") return {
176
- next: function () {
177
- if (o && i >= o.length) o = void 0;
178
- return { value: o && o[i++], done: !o };
179
- }
180
- };
181
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
182
- }
183
-
184
- function __read(o, n) {
185
- var m = typeof Symbol === "function" && o[Symbol.iterator];
186
- if (!m) return o;
187
- var i = m.call(o), r, ar = [], e;
188
- try {
189
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
190
- }
191
- catch (error) { e = { error: error }; }
192
- finally {
193
- try {
194
- if (r && !r.done && (m = i["return"])) m.call(i);
195
- }
196
- finally { if (e) throw e.error; }
197
- }
198
- return ar;
199
- }
200
-
201
- function __spread() {
202
- for (var ar = [], i = 0; i < arguments.length; i++)
203
- ar = ar.concat(__read(arguments[i]));
204
- return ar;
205
- }
206
-
94
+ var __values = (window && window.__values) || function(o) {
95
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
96
+ if (m) return m.call(o);
97
+ if (o && typeof o.length === "number") return {
98
+ next: function () {
99
+ if (o && i >= o.length) o = void 0;
100
+ return { value: o && o[i++], done: !o };
101
+ }
102
+ };
103
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
104
+ };
207
105
  /**
208
106
  * @private
209
107
  */
@@ -261,6 +159,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
261
159
  return Options;
262
160
  }());
263
161
 
162
+ var __extends = (window && window.__extends) || (function () {
163
+ var extendStatics = function (d, b) {
164
+ extendStatics = Object.setPrototypeOf ||
165
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
166
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
167
+ return extendStatics(d, b);
168
+ };
169
+ return function (d, b) {
170
+ if (typeof b !== "function" && b !== null)
171
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
172
+ extendStatics(d, b);
173
+ function __() { this.constructor = d; }
174
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
175
+ };
176
+ })();
177
+ var __read = (window && window.__read) || function (o, n) {
178
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
179
+ if (!m) return o;
180
+ var i = m.call(o), r, ar = [], e;
181
+ try {
182
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
183
+ }
184
+ catch (error) { e = { error: error }; }
185
+ finally {
186
+ try {
187
+ if (r && !r.done && (m = i["return"])) m.call(i);
188
+ }
189
+ finally { if (e) throw e.error; }
190
+ }
191
+ return ar;
192
+ };
264
193
  /**
265
194
  * @private
266
195
  */
@@ -336,7 +265,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
336
265
  return Url;
337
266
  }());
338
267
 
339
- var version = "3.0.0-preview.1";
268
+ var version = "3.0.0-preview.2";
340
269
 
341
270
  /**
342
271
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -458,6 +387,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
458
387
  eventTarget.addEventListener("focusin", positionTooltip);
459
388
  };
460
389
 
390
+ var __extends$1 = (window && window.__extends) || (function () {
391
+ var extendStatics = function (d, b) {
392
+ extendStatics = Object.setPrototypeOf ||
393
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
394
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
395
+ return extendStatics(d, b);
396
+ };
397
+ return function (d, b) {
398
+ if (typeof b !== "function" && b !== null)
399
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
400
+ extendStatics(d, b);
401
+ function __() { this.constructor = d; }
402
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
403
+ };
404
+ })();
461
405
  (function (ControlPosition) {
462
406
  /**
463
407
  * Places the control in the top left of the map.
@@ -489,7 +433,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
489
433
  * The options for adding a control to the map.
490
434
  */
491
435
  var ControlOptions = /** @class */ (function (_super) {
492
- __extends(ControlOptions, _super);
436
+ __extends$1(ControlOptions, _super);
493
437
  function ControlOptions() {
494
438
  var _this = _super !== null && _super.apply(this, arguments) || this;
495
439
  /**
@@ -634,12 +578,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
634
578
  EventEmitter: EventEmitter
635
579
  });
636
580
 
581
+ var __extends$2 = (window && window.__extends) || (function () {
582
+ var extendStatics = function (d, b) {
583
+ extendStatics = Object.setPrototypeOf ||
584
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
585
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
586
+ return extendStatics(d, b);
587
+ };
588
+ return function (d, b) {
589
+ if (typeof b !== "function" && b !== null)
590
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
591
+ extendStatics(d, b);
592
+ function __() { this.constructor = d; }
593
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
594
+ };
595
+ })();
637
596
  /**
638
597
  * For internal use only.
639
598
  * Implements control interface and provides support for automatic styling based on the map style.
640
599
  */
641
600
  var ControlBase = /** @class */ (function (_super) {
642
- __extends(ControlBase, _super);
601
+ __extends$2(ControlBase, _super);
643
602
  function ControlBase() {
644
603
  var _this = _super !== null && _super.apply(this, arguments) || this;
645
604
  /**
@@ -744,11 +703,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
744
703
  return ControlBase;
745
704
  }(EventEmitter));
746
705
 
706
+ var __extends$3 = (window && window.__extends) || (function () {
707
+ var extendStatics = function (d, b) {
708
+ extendStatics = Object.setPrototypeOf ||
709
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
710
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
711
+ return extendStatics(d, b);
712
+ };
713
+ return function (d, b) {
714
+ if (typeof b !== "function" && b !== null)
715
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
716
+ extendStatics(d, b);
717
+ function __() { this.constructor = d; }
718
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
719
+ };
720
+ })();
747
721
  /**
748
722
  * The options for a CompassControl object.
749
723
  */
750
724
  var CompassControlOptions = /** @class */ (function (_super) {
751
- __extends(CompassControlOptions, _super);
725
+ __extends$3(CompassControlOptions, _super);
752
726
  function CompassControlOptions() {
753
727
  var _this = _super !== null && _super.apply(this, arguments) || this;
754
728
  /**
@@ -773,11 +747,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
773
747
  return CompassControlOptions;
774
748
  }(Options));
775
749
 
750
+ var __extends$4 = (window && window.__extends) || (function () {
751
+ var extendStatics = function (d, b) {
752
+ extendStatics = Object.setPrototypeOf ||
753
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
754
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
755
+ return extendStatics(d, b);
756
+ };
757
+ return function (d, b) {
758
+ if (typeof b !== "function" && b !== null)
759
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
760
+ extendStatics(d, b);
761
+ function __() { this.constructor = d; }
762
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
763
+ };
764
+ })();
776
765
  /**
777
766
  * A control for changing the rotation of the map.
778
767
  */
779
768
  var CompassControl = /** @class */ (function (_super) {
780
- __extends(CompassControl, _super);
769
+ __extends$4(CompassControl, _super);
781
770
  /**
782
771
  * Constructs a CompassControl.
783
772
  * @param options The options for the control.
@@ -945,11 +934,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
945
934
  return CompassControl;
946
935
  }(ControlBase));
947
936
 
937
+ var __extends$5 = (window && window.__extends) || (function () {
938
+ var extendStatics = function (d, b) {
939
+ extendStatics = Object.setPrototypeOf ||
940
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
941
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
942
+ return extendStatics(d, b);
943
+ };
944
+ return function (d, b) {
945
+ if (typeof b !== "function" && b !== null)
946
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
947
+ extendStatics(d, b);
948
+ function __() { this.constructor = d; }
949
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
950
+ };
951
+ })();
948
952
  /**
949
953
  * The options for a PitchControl object.
950
954
  */
951
955
  var PitchControlOptions = /** @class */ (function (_super) {
952
- __extends(PitchControlOptions, _super);
956
+ __extends$5(PitchControlOptions, _super);
953
957
  function PitchControlOptions() {
954
958
  var _this = _super !== null && _super.apply(this, arguments) || this;
955
959
  /**
@@ -974,11 +978,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
974
978
  return PitchControlOptions;
975
979
  }(Options));
976
980
 
981
+ var __extends$6 = (window && window.__extends) || (function () {
982
+ var extendStatics = function (d, b) {
983
+ extendStatics = Object.setPrototypeOf ||
984
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
985
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
986
+ return extendStatics(d, b);
987
+ };
988
+ return function (d, b) {
989
+ if (typeof b !== "function" && b !== null)
990
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
991
+ extendStatics(d, b);
992
+ function __() { this.constructor = d; }
993
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
994
+ };
995
+ })();
977
996
  /**
978
997
  * A control for changing the pitch of the map.
979
998
  */
980
999
  var PitchControl = /** @class */ (function (_super) {
981
- __extends(PitchControl, _super);
1000
+ __extends$6(PitchControl, _super);
982
1001
  /**
983
1002
  * Constructs a PitchControl.
984
1003
  * @param options The options for the control.
@@ -2862,11 +2881,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
2862
2881
  * _.keysIn(new Foo);
2863
2882
  * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
2864
2883
  */
2865
- function keysIn$1(object) {
2884
+ function keysIn(object) {
2866
2885
  return isArrayLike_1(object) ? _arrayLikeKeys(object, true) : _baseKeysIn(object);
2867
2886
  }
2868
2887
 
2869
- var keysIn_1 = keysIn$1;
2888
+ var keysIn_1 = keysIn;
2870
2889
 
2871
2890
  /**
2872
2891
  * The base implementation of `_.assignIn` without support for multiple sources
@@ -3645,7 +3664,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
3645
3664
 
3646
3665
  var keysFunc = isFull
3647
3666
  ? (isFlat ? _getAllKeysIn : _getAllKeys)
3648
- : (isFlat ? keysIn : keys_1);
3667
+ : (isFlat ? keysIn_1 : keys_1);
3649
3668
 
3650
3669
  var props = isArr ? undefined : keysFunc(value);
3651
3670
  _arrayEach(props || value, function(subValue, key) {
@@ -4291,11 +4310,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4291
4310
 
4292
4311
  var merge_1 = merge;
4293
4312
 
4313
+ var __extends$7 = (window && window.__extends) || (function () {
4314
+ var extendStatics = function (d, b) {
4315
+ extendStatics = Object.setPrototypeOf ||
4316
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4317
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
4318
+ return extendStatics(d, b);
4319
+ };
4320
+ return function (d, b) {
4321
+ if (typeof b !== "function" && b !== null)
4322
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
4323
+ extendStatics(d, b);
4324
+ function __() { this.constructor = d; }
4325
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4326
+ };
4327
+ })();
4294
4328
  /**
4295
4329
  * The options for a StyleControl object.
4296
4330
  */
4297
4331
  var StyleControlOptions = /** @class */ (function (_super) {
4298
- __extends(StyleControlOptions, _super);
4332
+ __extends$7(StyleControlOptions, _super);
4299
4333
  function StyleControlOptions() {
4300
4334
  var _this = _super !== null && _super.apply(this, arguments) || this;
4301
4335
  /**
@@ -4340,11 +4374,78 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4340
4374
  return StyleControlOptions;
4341
4375
  }(Options));
4342
4376
 
4377
+ var __extends$8 = (window && window.__extends) || (function () {
4378
+ var extendStatics = function (d, b) {
4379
+ extendStatics = Object.setPrototypeOf ||
4380
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4381
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
4382
+ return extendStatics(d, b);
4383
+ };
4384
+ return function (d, b) {
4385
+ if (typeof b !== "function" && b !== null)
4386
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
4387
+ extendStatics(d, b);
4388
+ function __() { this.constructor = d; }
4389
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4390
+ };
4391
+ })();
4392
+ var __awaiter = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4393
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4394
+ return new (P || (P = Promise))(function (resolve, reject) {
4395
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
4396
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
4397
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
4398
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
4399
+ });
4400
+ };
4401
+ var __generator = (window && window.__generator) || function (thisArg, body) {
4402
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
4403
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
4404
+ function verb(n) { return function (v) { return step([n, v]); }; }
4405
+ function step(op) {
4406
+ if (f) throw new TypeError("Generator is already executing.");
4407
+ while (_) try {
4408
+ 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;
4409
+ if (y = 0, t) op = [op[0] & 2, t.value];
4410
+ switch (op[0]) {
4411
+ case 0: case 1: t = op; break;
4412
+ case 4: _.label++; return { value: op[1], done: false };
4413
+ case 5: _.label++; y = op[1]; op = [0]; continue;
4414
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
4415
+ default:
4416
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
4417
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
4418
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
4419
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
4420
+ if (t[2]) _.ops.pop();
4421
+ _.trys.pop(); continue;
4422
+ }
4423
+ op = body.call(thisArg, _);
4424
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
4425
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
4426
+ }
4427
+ };
4428
+ var __read$1 = (window && window.__read) || function (o, n) {
4429
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
4430
+ if (!m) return o;
4431
+ var i = m.call(o), r, ar = [], e;
4432
+ try {
4433
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
4434
+ }
4435
+ catch (error) { e = { error: error }; }
4436
+ finally {
4437
+ try {
4438
+ if (r && !r.done && (m = i["return"])) m.call(i);
4439
+ }
4440
+ finally { if (e) throw e.error; }
4441
+ }
4442
+ return ar;
4443
+ };
4343
4444
  /**
4344
4445
  * A control for changing the style of the map.
4345
4446
  */
4346
4447
  var StyleControl = /** @class */ (function (_super) {
4347
- __extends(StyleControl, _super);
4448
+ __extends$8(StyleControl, _super);
4348
4449
  /**
4349
4450
  * Constructs a StyleControl.
4350
4451
  * @param options The options for the control.
@@ -4486,7 +4587,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4486
4587
  image_1.src = newSrc;
4487
4588
  }
4488
4589
  Object.entries(this.styleButtons).forEach(function (_a) {
4489
- var _b = __read(_a, 2), buttonStyleName = _b[0], button = _b[1];
4590
+ var _b = __read$1(_a, 2), buttonStyleName = _b[0], button = _b[1];
4490
4591
  return button.setAttribute('aria-current', buttonStyleName === styleName ? 'true' : 'false');
4491
4592
  });
4492
4593
  this.map.styles.definitions().then(function (mapConfiguration) {
@@ -4564,7 +4665,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4564
4665
  _this.map.setStyle({ style: name });
4565
4666
  }
4566
4667
  Object.entries(_this.styleButtons).forEach(function (_a) {
4567
- var _b = __read(_a, 2), styleName = _b[0], button = _b[1];
4668
+ var _b = __read$1(_a, 2), styleName = _b[0], button = _b[1];
4568
4669
  return button.setAttribute('aria-current', styleName === name ? 'true' : 'false');
4569
4670
  });
4570
4671
  }
@@ -4649,7 +4750,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4649
4750
  });
4650
4751
  var targetStyleName = this.map.getStyle().style;
4651
4752
  Object.entries(this.styleButtons).forEach(function (_a) {
4652
- var _b = __read(_a, 2), styleName = _b[0], button = _b[1];
4753
+ var _b = __read$1(_a, 2), styleName = _b[0], button = _b[1];
4653
4754
  return button.setAttribute('aria-current', styleName === targetStyleName ? 'true' : 'false');
4654
4755
  });
4655
4756
  };
@@ -4666,11 +4767,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4666
4767
  return StyleControl;
4667
4768
  }(ControlBase));
4668
4769
 
4770
+ var __extends$9 = (window && window.__extends) || (function () {
4771
+ var extendStatics = function (d, b) {
4772
+ extendStatics = Object.setPrototypeOf ||
4773
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4774
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
4775
+ return extendStatics(d, b);
4776
+ };
4777
+ return function (d, b) {
4778
+ if (typeof b !== "function" && b !== null)
4779
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
4780
+ extendStatics(d, b);
4781
+ function __() { this.constructor = d; }
4782
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4783
+ };
4784
+ })();
4669
4785
  /**
4670
4786
  * The options for setting traffic on the map.
4671
4787
  */
4672
4788
  var TrafficOptions = /** @class */ (function (_super) {
4673
- __extends(TrafficOptions, _super);
4789
+ __extends$9(TrafficOptions, _super);
4674
4790
  function TrafficOptions() {
4675
4791
  var _this = _super !== null && _super.apply(this, arguments) || this;
4676
4792
  /**
@@ -4695,11 +4811,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4695
4811
  return TrafficOptions;
4696
4812
  }(Options));
4697
4813
 
4814
+ var __extends$a = (window && window.__extends) || (function () {
4815
+ var extendStatics = function (d, b) {
4816
+ extendStatics = Object.setPrototypeOf ||
4817
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4818
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
4819
+ return extendStatics(d, b);
4820
+ };
4821
+ return function (d, b) {
4822
+ if (typeof b !== "function" && b !== null)
4823
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
4824
+ extendStatics(d, b);
4825
+ function __() { this.constructor = d; }
4826
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4827
+ };
4828
+ })();
4698
4829
  /**
4699
4830
  * The options for a TrafficControl object.
4700
4831
  */
4701
4832
  var TrafficControlOptions = /** @class */ (function (_super) {
4702
- __extends(TrafficControlOptions, _super);
4833
+ __extends$a(TrafficControlOptions, _super);
4703
4834
  function TrafficControlOptions() {
4704
4835
  var _this = _super !== null && _super.apply(this, arguments) || this;
4705
4836
  /**
@@ -4719,16 +4850,32 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4719
4850
  return TrafficControlOptions;
4720
4851
  }(TrafficOptions));
4721
4852
 
4853
+ var __extends$b = (window && window.__extends) || (function () {
4854
+ var extendStatics = function (d, b) {
4855
+ extendStatics = Object.setPrototypeOf ||
4856
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4857
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
4858
+ return extendStatics(d, b);
4859
+ };
4860
+ return function (d, b) {
4861
+ if (typeof b !== "function" && b !== null)
4862
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
4863
+ extendStatics(d, b);
4864
+ function __() { this.constructor = d; }
4865
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4866
+ };
4867
+ })();
4722
4868
  /**
4723
4869
  * A control that toggles traffic data on the map.
4724
4870
  */
4725
4871
  var TrafficControl = /** @class */ (function (_super) {
4726
- __extends(TrafficControl, _super);
4872
+ __extends$b(TrafficControl, _super);
4727
4873
  /**
4728
4874
  * Constructs a TrafficControl
4729
4875
  * @param options The options for the control.
4730
4876
  */
4731
4877
  function TrafficControl(options) {
4878
+ var _a, _b;
4732
4879
  var _this = _super.call(this) || this;
4733
4880
  _this.hasMouse = false;
4734
4881
  _this.hasFocus = false;
@@ -4742,9 +4889,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4742
4889
  _this.trafficButton = null;
4743
4890
  _this.map = null;
4744
4891
  if (options) {
4745
- _this.initIsActive = options.isActive || false;
4892
+ _this.initIsActive = (_a = options.isActive) !== null && _a !== void 0 ? _a : false;
4746
4893
  _this.options.flow = options.flow || 'relative';
4747
- _this.options.incidents = options.incidents || true;
4894
+ _this.options.incidents = (_b = options.incidents) !== null && _b !== void 0 ? _b : true;
4748
4895
  _this.style = options.style || exports.ControlStyle.light;
4749
4896
  }
4750
4897
  return _this;
@@ -4846,11 +4993,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4846
4993
  return TrafficControl;
4847
4994
  }(ControlBase));
4848
4995
 
4996
+ var __extends$c = (window && window.__extends) || (function () {
4997
+ var extendStatics = function (d, b) {
4998
+ extendStatics = Object.setPrototypeOf ||
4999
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5000
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
5001
+ return extendStatics(d, b);
5002
+ };
5003
+ return function (d, b) {
5004
+ if (typeof b !== "function" && b !== null)
5005
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
5006
+ extendStatics(d, b);
5007
+ function __() { this.constructor = d; }
5008
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5009
+ };
5010
+ })();
5011
+ var __values$1 = (window && window.__values) || function(o) {
5012
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5013
+ if (m) return m.call(o);
5014
+ if (o && typeof o.length === "number") return {
5015
+ next: function () {
5016
+ if (o && i >= o.length) o = void 0;
5017
+ return { value: o && o[i++], done: !o };
5018
+ }
5019
+ };
5020
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
5021
+ };
4849
5022
  /**
4850
5023
  * A control that display traffic legend on the map.
4851
5024
  */
4852
5025
  var TrafficLegendControl = /** @class */ (function (_super) {
4853
- __extends(TrafficLegendControl, _super);
5026
+ __extends$c(TrafficLegendControl, _super);
4854
5027
  /**
4855
5028
  * Construct a traffic legend control
4856
5029
  */
@@ -4906,7 +5079,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4906
5079
  // legend table contents
4907
5080
  var tr2 = document.createElement("tr");
4908
5081
  try {
4909
- for (var _c = __values(this.table), _d = _c.next(); !_d.done; _d = _c.next()) {
5082
+ for (var _c = __values$1(this.table), _d = _c.next(); !_d.done; _d = _c.next()) {
4910
5083
  var col = _d.value;
4911
5084
  var data = document.createElement("td");
4912
5085
  if (col === "Fast" || col === "Slow") {
@@ -4919,7 +5092,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4919
5092
  data.setAttribute("aria-label", "Traffic Legend");
4920
5093
  data.setAttribute("role", "img");
4921
5094
  try {
4922
- 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()) {
5095
+ 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()) {
4923
5096
  var color = col_1_1.value;
4924
5097
  var div = document.createElement("div");
4925
5098
  div.classList.add(color);
@@ -5090,10 +5263,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5090
5263
  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
5091
5264
  return false;
5092
5265
  }
5093
- // Assume cyclic values are equal.
5094
- var stacked = stack.get(array);
5095
- if (stacked && stack.get(other)) {
5096
- return stacked == other;
5266
+ // Check that cyclic values are equal.
5267
+ var arrStacked = stack.get(array);
5268
+ var othStacked = stack.get(other);
5269
+ if (arrStacked && othStacked) {
5270
+ return arrStacked == other && othStacked == array;
5097
5271
  }
5098
5272
  var index = -1,
5099
5273
  result = true,
@@ -5328,10 +5502,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5328
5502
  return false;
5329
5503
  }
5330
5504
  }
5331
- // Assume cyclic values are equal.
5332
- var stacked = stack.get(object);
5333
- if (stacked && stack.get(other)) {
5334
- return stacked == other;
5505
+ // Check that cyclic values are equal.
5506
+ var objStacked = stack.get(object);
5507
+ var othStacked = stack.get(other);
5508
+ if (objStacked && othStacked) {
5509
+ return objStacked == other && othStacked == object;
5335
5510
  }
5336
5511
  var result = true;
5337
5512
  stack.set(object, other);
@@ -5670,11 +5845,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5670
5845
  return Feature;
5671
5846
  }());
5672
5847
 
5848
+ var __extends$d = (window && window.__extends) || (function () {
5849
+ var extendStatics = function (d, b) {
5850
+ extendStatics = Object.setPrototypeOf ||
5851
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5852
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
5853
+ return extendStatics(d, b);
5854
+ };
5855
+ return function (d, b) {
5856
+ if (typeof b !== "function" && b !== null)
5857
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
5858
+ extendStatics(d, b);
5859
+ function __() { this.constructor = d; }
5860
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5861
+ };
5862
+ })();
5673
5863
  /**
5674
5864
  * Represent a pixel coordinate or offset. Extends an array of [x, y].
5675
5865
  */
5676
5866
  var Pixel = /** @class */ (function (_super) {
5677
- __extends(Pixel, _super);
5867
+ __extends$d(Pixel, _super);
5678
5868
  /**
5679
5869
  * Constructs a Pixel object and initializes it with the specified x and y coordinates.
5680
5870
  * @param x The horizontal pixel offset.
@@ -5790,6 +5980,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5790
5980
  return Point;
5791
5981
  }());
5792
5982
 
5983
+ var __read$2 = (window && window.__read) || function (o, n) {
5984
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
5985
+ if (!m) return o;
5986
+ var i = m.call(o), r, ar = [], e;
5987
+ try {
5988
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
5989
+ }
5990
+ catch (error) { e = { error: error }; }
5991
+ finally {
5992
+ try {
5993
+ if (r && !r.done && (m = i["return"])) m.call(i);
5994
+ }
5995
+ finally { if (e) throw e.error; }
5996
+ }
5997
+ return ar;
5998
+ };
5999
+ var __values$2 = (window && window.__values) || function(o) {
6000
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
6001
+ if (m) return m.call(o);
6002
+ if (o && typeof o.length === "number") return {
6003
+ next: function () {
6004
+ if (o && i >= o.length) o = void 0;
6005
+ return { value: o && o[i++], done: !o };
6006
+ }
6007
+ };
6008
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
6009
+ };
5793
6010
  //////////////////////
5794
6011
  /// Constants
5795
6012
  //////////////////////
@@ -6754,8 +6971,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
6754
6971
  if (k + 1 >= coords.length) {
6755
6972
  continue;
6756
6973
  }
6757
- var _a = __read(coords[k], 2), lon1 = _a[0], lat1 = _a[1];
6758
- var _b = __read(coords[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
6974
+ var _a = __read$2(coords[k], 2), lon1 = _a[0], lat1 = _a[1];
6975
+ var _b = __read$2(coords[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
6759
6976
  // split the line by antimeridian
6760
6977
  // and break geodesic into two line segments
6761
6978
  if (Math.abs(lon2 - lon1) > 180.0) {
@@ -6826,8 +7043,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
6826
7043
  if (k + 1 >= geodesic.length) {
6827
7044
  continue;
6828
7045
  }
6829
- var _a = __read(geodesic[k], 2), lon1 = _a[0], lat1 = _a[1];
6830
- var _b = __read(geodesic[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
7046
+ var _a = __read$2(geodesic[k], 2), lon1 = _a[0], lat1 = _a[1];
7047
+ var _b = __read$2(geodesic[k + 1], 2), lon2 = _b[0], lat2 = _b[1];
6831
7048
  // split the line by antimeridian
6832
7049
  // and break geodesic into two line segments
6833
7050
  if (Math.abs(lon2 - lon1) > 180.0) {
@@ -7038,7 +7255,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
7038
7255
  function getPixelHeading(origin, destination) {
7039
7256
  origin = getPosition(origin);
7040
7257
  destination = getPosition(destination);
7041
- var _a = __read(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
7258
+ var _a = __read$2(mercatorPositionsToPixels([origin, destination], 21), 2), p1 = _a[0], p2 = _a[1];
7042
7259
  var dx = (p2[0] - p1[0]);
7043
7260
  var dy = (p1[1] - p2[1]);
7044
7261
  var alpha = ((5 / 2 * Math.PI) - Math.atan2(dy, dx)) * INV_PI_BY_180 % 360;
@@ -7585,7 +7802,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
7585
7802
  });
7586
7803
  var lower = [];
7587
7804
  try {
7588
- for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
7805
+ for (var positions_1 = __values$2(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
7589
7806
  var position = positions_1_1.value;
7590
7807
  while (lower.length >= 2 && _cross(lower[lower.length - 2], lower[lower.length - 1], position) <= 0) {
7591
7808
  lower.pop();
@@ -7867,12 +8084,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
7867
8084
  return result;
7868
8085
  }
7869
8086
 
8087
+ var __extends$e = (window && window.__extends) || (function () {
8088
+ var extendStatics = function (d, b) {
8089
+ extendStatics = Object.setPrototypeOf ||
8090
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
8091
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8092
+ return extendStatics(d, b);
8093
+ };
8094
+ return function (d, b) {
8095
+ if (typeof b !== "function" && b !== null)
8096
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
8097
+ extendStatics(d, b);
8098
+ function __() { this.constructor = d; }
8099
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8100
+ };
8101
+ })();
7870
8102
  /**
7871
8103
  * A GeoJSON Position object - an array that specifies the longitude and latitude of a location. The
7872
8104
  * full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
7873
8105
  */
7874
8106
  var Position = /** @class */ (function (_super) {
7875
- __extends(Position, _super);
8107
+ __extends$e(Position, _super);
7876
8108
  /**
7877
8109
  * Constructs a Position.
7878
8110
  * @param longitude The position's longitude.
@@ -8064,11 +8296,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8064
8296
  return Polygon;
8065
8297
  }());
8066
8298
 
8299
+ var __extends$f = (window && window.__extends) || (function () {
8300
+ var extendStatics = function (d, b) {
8301
+ extendStatics = Object.setPrototypeOf ||
8302
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
8303
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8304
+ return extendStatics(d, b);
8305
+ };
8306
+ return function (d, b) {
8307
+ if (typeof b !== "function" && b !== null)
8308
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
8309
+ extendStatics(d, b);
8310
+ function __() { this.constructor = d; }
8311
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8312
+ };
8313
+ })();
8314
+ var __values$3 = (window && window.__values) || function(o) {
8315
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
8316
+ if (m) return m.call(o);
8317
+ if (o && typeof o.length === "number") return {
8318
+ next: function () {
8319
+ if (o && i >= o.length) o = void 0;
8320
+ return { value: o && o[i++], done: !o };
8321
+ }
8322
+ };
8323
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
8324
+ };
8067
8325
  /**
8068
8326
  * A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
8069
8327
  */
8070
8328
  var Shape = /** @class */ (function (_super) {
8071
- __extends(Shape, _super);
8329
+ __extends$f(Shape, _super);
8072
8330
  function Shape(data, id, properties) {
8073
8331
  var _this = _super.call(this) || this;
8074
8332
  var geometry;
@@ -8140,7 +8398,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8140
8398
  else if (geoType === "MultiLineString") {
8141
8399
  var pos = positions;
8142
8400
  try {
8143
- for (var pos_1 = __values(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
8401
+ for (var pos_1 = __values$3(pos), pos_1_1 = pos_1.next(); !pos_1_1.done; pos_1_1 = pos_1.next()) {
8144
8402
  var p = pos_1_1.value;
8145
8403
  bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p));
8146
8404
  }
@@ -8156,7 +8414,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8156
8414
  else if (geoType === "MultiPolygon") {
8157
8415
  var pos = positions;
8158
8416
  try {
8159
- for (var pos_2 = __values(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
8417
+ for (var pos_2 = __values$3(pos), pos_2_1 = pos_2.next(); !pos_2_1.done; pos_2_1 = pos_2.next()) {
8160
8418
  var p1 = pos_2_1.value;
8161
8419
  // only need to check the exterior ring of Polygon
8162
8420
  bbox = BoundingBox.merge(bbox, BoundingBox.fromPositions(p1[0]));
@@ -8364,6 +8622,32 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8364
8622
  return Shape;
8365
8623
  }(EventEmitter));
8366
8624
 
8625
+ var __extends$g = (window && window.__extends) || (function () {
8626
+ var extendStatics = function (d, b) {
8627
+ extendStatics = Object.setPrototypeOf ||
8628
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
8629
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8630
+ return extendStatics(d, b);
8631
+ };
8632
+ return function (d, b) {
8633
+ if (typeof b !== "function" && b !== null)
8634
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
8635
+ extendStatics(d, b);
8636
+ function __() { this.constructor = d; }
8637
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8638
+ };
8639
+ })();
8640
+ var __values$4 = (window && window.__values) || function(o) {
8641
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
8642
+ if (m) return m.call(o);
8643
+ if (o && typeof o.length === "number") return {
8644
+ next: function () {
8645
+ if (o && i >= o.length) o = void 0;
8646
+ return { value: o && o[i++], done: !o };
8647
+ }
8648
+ };
8649
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
8650
+ };
8367
8651
  /**
8368
8652
  * A GeoJSON BoundingBox object - an array that defines a shape whose edges follow lines of constant longitude,
8369
8653
  * latitude, and elevation. All axes of the most southwesterly point are followed by all axes of the more northeasterly
@@ -8371,7 +8655,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8371
8655
  * [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
8372
8656
  */
8373
8657
  var BoundingBox = /** @class */ (function (_super) {
8374
- __extends(BoundingBox, _super);
8658
+ __extends$g(BoundingBox, _super);
8375
8659
  function BoundingBox(southwestPositionOrPositions, northeastPosition) {
8376
8660
  var _this = this;
8377
8661
  if (southwestPositionOrPositions && northeastPosition) {
@@ -8777,7 +9061,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8777
9061
  var bounds = null;
8778
9062
  if (Array.isArray(data) && data.length > 0) {
8779
9063
  try {
8780
- for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
9064
+ for (var data_1 = __values$4(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
8781
9065
  var datum = data_1_1.value;
8782
9066
  tempBounds = BoundingBox.fromData(datum);
8783
9067
  if (tempBounds != null) {
@@ -9088,6 +9372,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9088
9372
  return MultiPolygon;
9089
9373
  }());
9090
9374
 
9375
+ var __extends$h = (window && window.__extends) || (function () {
9376
+ var extendStatics = function (d, b) {
9377
+ extendStatics = Object.setPrototypeOf ||
9378
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9379
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
9380
+ return extendStatics(d, b);
9381
+ };
9382
+ return function (d, b) {
9383
+ if (typeof b !== "function" && b !== null)
9384
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9385
+ extendStatics(d, b);
9386
+ function __() { this.constructor = d; }
9387
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9388
+ };
9389
+ })();
9091
9390
  //Based on: https://github.com/mapbox/mapbox-gl-js/blob/main/src/geo/mercator_coordinate.js
9092
9391
  /**
9093
9392
  * A `MercatorPoint` object represents a projected three dimensional position.
@@ -9104,7 +9403,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9104
9403
  * The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
9105
9404
  */
9106
9405
  var MercatorPoint = /** @class */ (function (_super) {
9107
- __extends(MercatorPoint, _super);
9406
+ __extends$h(MercatorPoint, _super);
9108
9407
  /**
9109
9408
  * Constructs a MercatorPoint.
9110
9409
  * @param x A points x position in mercator units.
@@ -9343,6 +9642,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9343
9642
  return arrayPoints_1(points, tolerance, true);
9344
9643
  }
9345
9644
 
9645
+ var __values$5 = (window && window.__values) || function(o) {
9646
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
9647
+ if (m) return m.call(o);
9648
+ if (o && typeof o.length === "number") return {
9649
+ next: function () {
9650
+ if (o && i >= o.length) o = void 0;
9651
+ return { value: o && o[i++], done: !o };
9652
+ }
9653
+ };
9654
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
9655
+ };
9346
9656
  /**
9347
9657
  * An Affine Transform class generated from a set of reference points.
9348
9658
  */
@@ -9392,7 +9702,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9392
9702
  if (points && Array.isArray(points) && Array.isArray(points[0])) {
9393
9703
  var pos = [];
9394
9704
  try {
9395
- for (var points_1 = __values(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
9705
+ for (var points_1 = __values$5(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {
9396
9706
  var subPoints = points_1_1.value;
9397
9707
  pos.push(this.transform(subPoints, transformMatrix, decimals));
9398
9708
  }
@@ -9592,11 +9902,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9592
9902
  simplify: simplify
9593
9903
  });
9594
9904
 
9905
+ var __extends$i = (window && window.__extends) || (function () {
9906
+ var extendStatics = function (d, b) {
9907
+ extendStatics = Object.setPrototypeOf ||
9908
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9909
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
9910
+ return extendStatics(d, b);
9911
+ };
9912
+ return function (d, b) {
9913
+ if (typeof b !== "function" && b !== null)
9914
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9915
+ extendStatics(d, b);
9916
+ function __() { this.constructor = d; }
9917
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9918
+ };
9919
+ })();
9595
9920
  /**
9596
9921
  * The options for a ZoomControl object.
9597
9922
  */
9598
9923
  var ZoomControlOptions = /** @class */ (function (_super) {
9599
- __extends(ZoomControlOptions, _super);
9924
+ __extends$i(ZoomControlOptions, _super);
9600
9925
  function ZoomControlOptions() {
9601
9926
  var _this = _super !== null && _super.apply(this, arguments) || this;
9602
9927
  /**
@@ -9616,11 +9941,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9616
9941
  return ZoomControlOptions;
9617
9942
  }(Options));
9618
9943
 
9944
+ var __extends$j = (window && window.__extends) || (function () {
9945
+ var extendStatics = function (d, b) {
9946
+ extendStatics = Object.setPrototypeOf ||
9947
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9948
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
9949
+ return extendStatics(d, b);
9950
+ };
9951
+ return function (d, b) {
9952
+ if (typeof b !== "function" && b !== null)
9953
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9954
+ extendStatics(d, b);
9955
+ function __() { this.constructor = d; }
9956
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9957
+ };
9958
+ })();
9619
9959
  /**
9620
9960
  * A control for changing the zoom of the map.
9621
9961
  */
9622
9962
  var ZoomControl = /** @class */ (function (_super) {
9623
- __extends(ZoomControl, _super);
9963
+ __extends$j(ZoomControl, _super);
9624
9964
  /**
9625
9965
  * Constructs a ZoomControl.
9626
9966
  * @param options The options for the control.
@@ -9782,6 +10122,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9782
10122
 
9783
10123
  var cloneDeepWith_1 = cloneDeepWith;
9784
10124
 
10125
+ var __extends$k = (window && window.__extends) || (function () {
10126
+ var extendStatics = function (d, b) {
10127
+ extendStatics = Object.setPrototypeOf ||
10128
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10129
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10130
+ return extendStatics(d, b);
10131
+ };
10132
+ return function (d, b) {
10133
+ if (typeof b !== "function" && b !== null)
10134
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10135
+ extendStatics(d, b);
10136
+ function __() { this.constructor = d; }
10137
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10138
+ };
10139
+ })();
9785
10140
  /**
9786
10141
  * A data source for managing shape data that will be displayed on the map.
9787
10142
  * A data source must be added to a layer before it is visible on the map.
@@ -9789,7 +10144,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9789
10144
  * @module Object Definitions
9790
10145
  */
9791
10146
  var DataSourceOptions = /** @class */ (function (_super) {
9792
- __extends(DataSourceOptions, _super);
10147
+ __extends$k(DataSourceOptions, _super);
9793
10148
  function DataSourceOptions() {
9794
10149
  var _this = _super !== null && _super.apply(this, arguments) || this;
9795
10150
  /*
@@ -9844,12 +10199,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9844
10199
  return DataSourceOptions;
9845
10200
  }(Options));
9846
10201
 
10202
+ var __extends$l = (window && window.__extends) || (function () {
10203
+ var extendStatics = function (d, b) {
10204
+ extendStatics = Object.setPrototypeOf ||
10205
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10206
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10207
+ return extendStatics(d, b);
10208
+ };
10209
+ return function (d, b) {
10210
+ if (typeof b !== "function" && b !== null)
10211
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10212
+ extendStatics(d, b);
10213
+ function __() { this.constructor = d; }
10214
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10215
+ };
10216
+ })();
9847
10217
  /**
9848
10218
  * A base abstract class in which all other source objects extend.
9849
10219
  * A source must be added to a layer before it is visible on the map.
9850
10220
  */
9851
10221
  var Source = /** @class */ (function (_super) {
9852
- __extends(Source, _super);
10222
+ __extends$l(Source, _super);
9853
10223
  function Source(id) {
9854
10224
  var _this = _super.call(this) || this;
9855
10225
  _this.id = id || uuidRandom();
@@ -9883,13 +10253,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9883
10253
  return Source;
9884
10254
  }(EventEmitter));
9885
10255
 
10256
+ var __extends$m = (window && window.__extends) || (function () {
10257
+ var extendStatics = function (d, b) {
10258
+ extendStatics = Object.setPrototypeOf ||
10259
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10260
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10261
+ return extendStatics(d, b);
10262
+ };
10263
+ return function (d, b) {
10264
+ if (typeof b !== "function" && b !== null)
10265
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10266
+ extendStatics(d, b);
10267
+ function __() { this.constructor = d; }
10268
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10269
+ };
10270
+ })();
10271
+ var __values$6 = (window && window.__values) || function(o) {
10272
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
10273
+ if (m) return m.call(o);
10274
+ if (o && typeof o.length === "number") return {
10275
+ next: function () {
10276
+ if (o && i >= o.length) o = void 0;
10277
+ return { value: o && o[i++], done: !o };
10278
+ }
10279
+ };
10280
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
10281
+ };
9886
10282
  /**
9887
10283
  * A data source class that makes it easy to manage shapes data that will be displayed on the map.
9888
10284
  * A data source must be added to a layer before it is visible on the map.
9889
10285
  * The DataSource class may be used with the SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, and HeatMapLayer.
9890
10286
  */
9891
10287
  var DataSource = /** @class */ (function (_super) {
9892
- __extends(DataSource, _super);
10288
+ __extends$m(DataSource, _super);
9893
10289
  /**
9894
10290
  * A data source class that makes it easy to manage shapes data that will be displayed on the map.
9895
10291
  * A data source must be added to a layer before it is visible on the map.
@@ -10071,7 +10467,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10071
10467
  var e_1, _a;
10072
10468
  var shapes = Array.isArray(shape) ? shape : [shape];
10073
10469
  try {
10074
- for (var shapes_1 = __values(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
10470
+ for (var shapes_1 = __values$6(shapes), shapes_1_1 = shapes_1.next(); !shapes_1_1.done; shapes_1_1 = shapes_1.next()) {
10075
10471
  var s = shapes_1_1.value;
10076
10472
  if (typeof s === "number") {
10077
10473
  this._removeByIndex(s);
@@ -10098,7 +10494,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10098
10494
  var e_2, _a;
10099
10495
  var ids = Array.isArray(id) ? id : [id];
10100
10496
  try {
10101
- for (var ids_1 = __values(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
10497
+ for (var ids_1 = __values$6(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
10102
10498
  var i = ids_1_1.value;
10103
10499
  this._removeById(i);
10104
10500
  }
@@ -10237,7 +10633,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10237
10633
  data = Array.isArray(data) ? data : [data];
10238
10634
  if (typeof index !== "number") {
10239
10635
  try {
10240
- for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
10636
+ for (var data_1 = __values$6(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
10241
10637
  var d = data_1_1.value;
10242
10638
  this.shapes.push(d);
10243
10639
  this.shapesMap.set(d.getId(), this.shapes.length - 1);
@@ -10258,7 +10654,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10258
10654
  }
10259
10655
  }
10260
10656
  try {
10261
- for (var data_2 = __values(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
10657
+ for (var data_2 = __values$6(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) {
10262
10658
  var d = data_2_1.value;
10263
10659
  d._setDataSource(this);
10264
10660
  }
@@ -10315,6 +10711,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10315
10711
  return DataSource;
10316
10712
  }(Source));
10317
10713
 
10714
+ var __extends$n = (window && window.__extends) || (function () {
10715
+ var extendStatics = function (d, b) {
10716
+ extendStatics = Object.setPrototypeOf ||
10717
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10718
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10719
+ return extendStatics(d, b);
10720
+ };
10721
+ return function (d, b) {
10722
+ if (typeof b !== "function" && b !== null)
10723
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10724
+ extendStatics(d, b);
10725
+ function __() { this.constructor = d; }
10726
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10727
+ };
10728
+ })();
10318
10729
  /**
10319
10730
  * A data source for managing shape data that will be displayed on the map.
10320
10731
  * A data source must be added to a layer before it is visible on the map.
@@ -10322,7 +10733,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10322
10733
  * @module Object Definitions
10323
10734
  */
10324
10735
  var VectorTileSourceOptions = /** @class */ (function (_super) {
10325
- __extends(VectorTileSourceOptions, _super);
10736
+ __extends$n(VectorTileSourceOptions, _super);
10326
10737
  function VectorTileSourceOptions() {
10327
10738
  /*
10328
10739
  * TODO:
@@ -10375,12 +10786,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10375
10786
  return VectorTileSourceOptions;
10376
10787
  }(Options));
10377
10788
 
10789
+ var __extends$o = (window && window.__extends) || (function () {
10790
+ var extendStatics = function (d, b) {
10791
+ extendStatics = Object.setPrototypeOf ||
10792
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10793
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10794
+ return extendStatics(d, b);
10795
+ };
10796
+ return function (d, b) {
10797
+ if (typeof b !== "function" && b !== null)
10798
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10799
+ extendStatics(d, b);
10800
+ function __() { this.constructor = d; }
10801
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10802
+ };
10803
+ })();
10378
10804
  /**
10379
10805
  * A vector tile source describes how to access a vector tile layer.
10380
10806
  * Vector tile sources can be used with; SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer and VectorTileLayer.
10381
10807
  */
10382
10808
  var VectorTileSource = /** @class */ (function (_super) {
10383
- __extends(VectorTileSource, _super);
10809
+ __extends$o(VectorTileSource, _super);
10384
10810
  function VectorTileSource(id, options) {
10385
10811
  var _this = _super.call(this, id) || this;
10386
10812
  _this.options = new VectorTileSourceOptions().merge(cloneDeep_1(options));
@@ -10435,11 +10861,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10435
10861
  VectorTileSource: VectorTileSource
10436
10862
  });
10437
10863
 
10864
+ var __extends$p = (window && window.__extends) || (function () {
10865
+ var extendStatics = function (d, b) {
10866
+ extendStatics = Object.setPrototypeOf ||
10867
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10868
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10869
+ return extendStatics(d, b);
10870
+ };
10871
+ return function (d, b) {
10872
+ if (typeof b !== "function" && b !== null)
10873
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10874
+ extendStatics(d, b);
10875
+ function __() { this.constructor = d; }
10876
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10877
+ };
10878
+ })();
10438
10879
  /**
10439
10880
  * Abstract class for other layer classes to extend.
10440
10881
  */
10441
10882
  var Layer = /** @class */ (function (_super) {
10442
- __extends(Layer, _super);
10883
+ __extends$p(Layer, _super);
10443
10884
  function Layer(id) {
10444
10885
  var _this =
10445
10886
  // Assign an random id using a UUID if none was specified.
@@ -10544,11 +10985,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10544
10985
  return Layer;
10545
10986
  }(EventEmitter));
10546
10987
 
10988
+ var __extends$q = (window && window.__extends) || (function () {
10989
+ var extendStatics = function (d, b) {
10990
+ extendStatics = Object.setPrototypeOf ||
10991
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10992
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10993
+ return extendStatics(d, b);
10994
+ };
10995
+ return function (d, b) {
10996
+ if (typeof b !== "function" && b !== null)
10997
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10998
+ extendStatics(d, b);
10999
+ function __() { this.constructor = d; }
11000
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11001
+ };
11002
+ })();
10547
11003
  /**
10548
11004
  * A base class which all other layer options inherit from.
10549
11005
  */
10550
11006
  var LayerOptions = /** @class */ (function (_super) {
10551
- __extends(LayerOptions, _super);
11007
+ __extends$q(LayerOptions, _super);
10552
11008
  function LayerOptions() {
10553
11009
  var _this = _super !== null && _super.apply(this, arguments) || this;
10554
11010
  /**
@@ -10595,11 +11051,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10595
11051
  return LayerOptions;
10596
11052
  }(Options));
10597
11053
 
11054
+ var __extends$r = (window && window.__extends) || (function () {
11055
+ var extendStatics = function (d, b) {
11056
+ extendStatics = Object.setPrototypeOf ||
11057
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11058
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11059
+ return extendStatics(d, b);
11060
+ };
11061
+ return function (d, b) {
11062
+ if (typeof b !== "function" && b !== null)
11063
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11064
+ extendStatics(d, b);
11065
+ function __() { this.constructor = d; }
11066
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11067
+ };
11068
+ })();
10598
11069
  /**
10599
11070
  * Options used when rendering Point objects in a BubbleLayer.
10600
11071
  */
10601
11072
  var BubbleLayerOptions = /** @class */ (function (_super) {
10602
- __extends(BubbleLayerOptions, _super);
11073
+ __extends$r(BubbleLayerOptions, _super);
10603
11074
  function BubbleLayerOptions() {
10604
11075
  var _this = _super !== null && _super.apply(this, arguments) || this;
10605
11076
  /**
@@ -10669,11 +11140,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10669
11140
  return BubbleLayerOptions;
10670
11141
  }(LayerOptions));
10671
11142
 
11143
+ var __extends$s = (window && window.__extends) || (function () {
11144
+ var extendStatics = function (d, b) {
11145
+ extendStatics = Object.setPrototypeOf ||
11146
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11147
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11148
+ return extendStatics(d, b);
11149
+ };
11150
+ return function (d, b) {
11151
+ if (typeof b !== "function" && b !== null)
11152
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11153
+ extendStatics(d, b);
11154
+ function __() { this.constructor = d; }
11155
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11156
+ };
11157
+ })();
10672
11158
  /**
10673
11159
  * Renders Point objects as scalable circles (bubbles).
10674
11160
  */
10675
11161
  var BubbleLayer = /** @class */ (function (_super) {
10676
- __extends(BubbleLayer, _super);
11162
+ __extends$s(BubbleLayer, _super);
10677
11163
  /**
10678
11164
  * Constructs a new BubbleLayer.
10679
11165
  * @param source The id or instance of a data source which the layer will render.
@@ -10783,11 +11269,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10783
11269
  return BubbleLayer;
10784
11270
  }(Layer));
10785
11271
 
11272
+ var __extends$t = (window && window.__extends) || (function () {
11273
+ var extendStatics = function (d, b) {
11274
+ extendStatics = Object.setPrototypeOf ||
11275
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11276
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11277
+ return extendStatics(d, b);
11278
+ };
11279
+ return function (d, b) {
11280
+ if (typeof b !== "function" && b !== null)
11281
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11282
+ extendStatics(d, b);
11283
+ function __() { this.constructor = d; }
11284
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11285
+ };
11286
+ })();
10786
11287
  /**
10787
11288
  * Options used when rendering Point objects in a HeatMapLayer.
10788
11289
  */
10789
11290
  var HeatMapLayerOptions = /** @class */ (function (_super) {
10790
- __extends(HeatMapLayerOptions, _super);
11291
+ __extends$t(HeatMapLayerOptions, _super);
10791
11292
  function HeatMapLayerOptions() {
10792
11293
  var _this = _super !== null && _super.apply(this, arguments) || this;
10793
11294
  /**
@@ -10854,11 +11355,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10854
11355
  return HeatMapLayerOptions;
10855
11356
  }(LayerOptions));
10856
11357
 
11358
+ var __extends$u = (window && window.__extends) || (function () {
11359
+ var extendStatics = function (d, b) {
11360
+ extendStatics = Object.setPrototypeOf ||
11361
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11362
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11363
+ return extendStatics(d, b);
11364
+ };
11365
+ return function (d, b) {
11366
+ if (typeof b !== "function" && b !== null)
11367
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11368
+ extendStatics(d, b);
11369
+ function __() { this.constructor = d; }
11370
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11371
+ };
11372
+ })();
10857
11373
  /**
10858
11374
  * Represent the density of data using different colors (HeatMap).
10859
11375
  */
10860
11376
  var HeatMapLayer = /** @class */ (function (_super) {
10861
- __extends(HeatMapLayer, _super);
11377
+ __extends$u(HeatMapLayer, _super);
10862
11378
  /**
10863
11379
  * Constructs a new HeatMapLayer.
10864
11380
  * @param source The id or instance of a data source which the layer will render.
@@ -10962,11 +11478,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10962
11478
  return HeatMapLayer;
10963
11479
  }(Layer));
10964
11480
 
11481
+ var __extends$v = (window && window.__extends) || (function () {
11482
+ var extendStatics = function (d, b) {
11483
+ extendStatics = Object.setPrototypeOf ||
11484
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11485
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11486
+ return extendStatics(d, b);
11487
+ };
11488
+ return function (d, b) {
11489
+ if (typeof b !== "function" && b !== null)
11490
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11491
+ extendStatics(d, b);
11492
+ function __() { this.constructor = d; }
11493
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11494
+ };
11495
+ })();
10965
11496
  /**
10966
11497
  * Options used when rendering canvas, image, raster tile, and video layers
10967
11498
  */
10968
11499
  var MediaLayerOptions = /** @class */ (function (_super) {
10969
- __extends(MediaLayerOptions, _super);
11500
+ __extends$v(MediaLayerOptions, _super);
10970
11501
  function MediaLayerOptions() {
10971
11502
  var _this = _super !== null && _super.apply(this, arguments) || this;
10972
11503
  /**
@@ -11018,11 +11549,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11018
11549
  return MediaLayerOptions;
11019
11550
  }(LayerOptions));
11020
11551
 
11552
+ var __extends$w = (window && window.__extends) || (function () {
11553
+ var extendStatics = function (d, b) {
11554
+ extendStatics = Object.setPrototypeOf ||
11555
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11556
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11557
+ return extendStatics(d, b);
11558
+ };
11559
+ return function (d, b) {
11560
+ if (typeof b !== "function" && b !== null)
11561
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11562
+ extendStatics(d, b);
11563
+ function __() { this.constructor = d; }
11564
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11565
+ };
11566
+ })();
11021
11567
  /**
11022
11568
  * Options used when rendering Point objects in a ImageLayer.
11023
11569
  */
11024
11570
  var ImageLayerOptions = /** @class */ (function (_super) {
11025
- __extends(ImageLayerOptions, _super);
11571
+ __extends$w(ImageLayerOptions, _super);
11026
11572
  function ImageLayerOptions() {
11027
11573
  var _this = _super !== null && _super.apply(this, arguments) || this;
11028
11574
  /**
@@ -11052,12 +11598,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11052
11598
  return ImageLayerOptions;
11053
11599
  }(MediaLayerOptions));
11054
11600
 
11601
+ var __extends$x = (window && window.__extends) || (function () {
11602
+ var extendStatics = function (d, b) {
11603
+ extendStatics = Object.setPrototypeOf ||
11604
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11605
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11606
+ return extendStatics(d, b);
11607
+ };
11608
+ return function (d, b) {
11609
+ if (typeof b !== "function" && b !== null)
11610
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11611
+ extendStatics(d, b);
11612
+ function __() { this.constructor = d; }
11613
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11614
+ };
11615
+ })();
11055
11616
  /**
11056
11617
  * Abstract class for other layer classes which have to build sources.
11057
11618
  * @internal
11058
11619
  */
11059
11620
  var SourceBuildingLayer = /** @class */ (function (_super) {
11060
- __extends(SourceBuildingLayer, _super);
11621
+ __extends$x(SourceBuildingLayer, _super);
11061
11622
  function SourceBuildingLayer() {
11062
11623
  return _super !== null && _super.apply(this, arguments) || this;
11063
11624
  }
@@ -11072,11 +11633,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11072
11633
  return SourceBuildingLayer;
11073
11634
  }(Layer));
11074
11635
 
11636
+ var __extends$y = (window && window.__extends) || (function () {
11637
+ var extendStatics = function (d, b) {
11638
+ extendStatics = Object.setPrototypeOf ||
11639
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11640
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11641
+ return extendStatics(d, b);
11642
+ };
11643
+ return function (d, b) {
11644
+ if (typeof b !== "function" && b !== null)
11645
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11646
+ extendStatics(d, b);
11647
+ function __() { this.constructor = d; }
11648
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11649
+ };
11650
+ })();
11075
11651
  /**
11076
11652
  * Overlays an image on the map with each corner anchored to a coordinate on the map. Also known as a ground or image overlay.
11077
11653
  */
11078
11654
  var ImageLayer = /** @class */ (function (_super) {
11079
- __extends(ImageLayer, _super);
11655
+ __extends$y(ImageLayer, _super);
11080
11656
  /**
11081
11657
  * Constructs a new ImageLayer.
11082
11658
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -11279,12 +11855,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11279
11855
  return ImageLayer;
11280
11856
  }(SourceBuildingLayer));
11281
11857
 
11858
+ var __extends$z = (window && window.__extends) || (function () {
11859
+ var extendStatics = function (d, b) {
11860
+ extendStatics = Object.setPrototypeOf ||
11861
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11862
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11863
+ return extendStatics(d, b);
11864
+ };
11865
+ return function (d, b) {
11866
+ if (typeof b !== "function" && b !== null)
11867
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11868
+ extendStatics(d, b);
11869
+ function __() { this.constructor = d; }
11870
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11871
+ };
11872
+ })();
11282
11873
  /**
11283
11874
  * Options used when rendering SimpleLine, SimplePolygon, CirclePolygon,
11284
11875
  * LineString, MultiLineString, Polygon, and MultiPolygon objects in a line layer.
11285
11876
  */
11286
11877
  var LineLayerOptions = /** @class */ (function (_super) {
11287
- __extends(LineLayerOptions, _super);
11878
+ __extends$z(LineLayerOptions, _super);
11288
11879
  function LineLayerOptions() {
11289
11880
  var _this = _super !== null && _super.apply(this, arguments) || this;
11290
11881
  /**
@@ -11384,12 +11975,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11384
11975
  return LineLayerOptions;
11385
11976
  }(LayerOptions));
11386
11977
 
11978
+ var __extends$A = (window && window.__extends) || (function () {
11979
+ var extendStatics = function (d, b) {
11980
+ extendStatics = Object.setPrototypeOf ||
11981
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11982
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11983
+ return extendStatics(d, b);
11984
+ };
11985
+ return function (d, b) {
11986
+ if (typeof b !== "function" && b !== null)
11987
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11988
+ extendStatics(d, b);
11989
+ function __() { this.constructor = d; }
11990
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11991
+ };
11992
+ })();
11993
+ var __assign = (window && window.__assign) || function () {
11994
+ __assign = Object.assign || function(t) {
11995
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
11996
+ s = arguments[i];
11997
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11998
+ t[p] = s[p];
11999
+ }
12000
+ return t;
12001
+ };
12002
+ return __assign.apply(this, arguments);
12003
+ };
11387
12004
  /**
11388
12005
  * Renders line data on the map. Can be used with SimpleLine, SimplePolygon,
11389
12006
  * CirclePolygon, LineString, MultiLineString, Polygon, and MultiPolygon objects.
11390
12007
  */
11391
12008
  var LineLayer = /** @class */ (function (_super) {
11392
- __extends(LineLayer, _super);
12009
+ __extends$A(LineLayer, _super);
11393
12010
  /**
11394
12011
  * Constructs a new LineLayer.
11395
12012
  * @param source The id or instance of a data source which the layer will render.
@@ -11480,11 +12097,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11480
12097
  return LineLayer;
11481
12098
  }(Layer));
11482
12099
 
12100
+ var __extends$B = (window && window.__extends) || (function () {
12101
+ var extendStatics = function (d, b) {
12102
+ extendStatics = Object.setPrototypeOf ||
12103
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12104
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
12105
+ return extendStatics(d, b);
12106
+ };
12107
+ return function (d, b) {
12108
+ if (typeof b !== "function" && b !== null)
12109
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12110
+ extendStatics(d, b);
12111
+ function __() { this.constructor = d; }
12112
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12113
+ };
12114
+ })();
11483
12115
  /**
11484
12116
  * Options used when rendering `Polygon` and `MultiPolygon` objects in a `PolygonExtrusionLayer`.
11485
12117
  */
11486
12118
  var PolygonExtrusionLayerOptions = /** @class */ (function (_super) {
11487
- __extends(PolygonExtrusionLayerOptions, _super);
12119
+ __extends$B(PolygonExtrusionLayerOptions, _super);
11488
12120
  function PolygonExtrusionLayerOptions() {
11489
12121
  var _this = _super !== null && _super.apply(this, arguments) || this;
11490
12122
  /**
@@ -11557,11 +12189,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11557
12189
  return PolygonExtrusionLayerOptions;
11558
12190
  }(LayerOptions));
11559
12191
 
12192
+ var __extends$C = (window && window.__extends) || (function () {
12193
+ var extendStatics = function (d, b) {
12194
+ extendStatics = Object.setPrototypeOf ||
12195
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12196
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
12197
+ return extendStatics(d, b);
12198
+ };
12199
+ return function (d, b) {
12200
+ if (typeof b !== "function" && b !== null)
12201
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12202
+ extendStatics(d, b);
12203
+ function __() { this.constructor = d; }
12204
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12205
+ };
12206
+ })();
12207
+ var __assign$1 = (window && window.__assign) || function () {
12208
+ __assign$1 = Object.assign || function(t) {
12209
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
12210
+ s = arguments[i];
12211
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
12212
+ t[p] = s[p];
12213
+ }
12214
+ return t;
12215
+ };
12216
+ return __assign$1.apply(this, arguments);
12217
+ };
11560
12218
  /**
11561
12219
  * Renders extruded filled `Polygon` and `MultiPolygon` objects on the map.
11562
12220
  */
11563
12221
  var PolygonExtrusionLayer = /** @class */ (function (_super) {
11564
- __extends(PolygonExtrusionLayer, _super);
12222
+ __extends$C(PolygonExtrusionLayer, _super);
11565
12223
  /**
11566
12224
  * Constructs a new PolygonExtrusionLayer.
11567
12225
  * @param source The id or instance of a data source which the layer will render.
@@ -11621,11 +12279,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11621
12279
  * @internal
11622
12280
  */
11623
12281
  PolygonExtrusionLayer.prototype._buildLayers = function () {
11624
- 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 ?
12282
+ 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 ?
11625
12283
  this.options.source.getId() :
11626
12284
  this.options.source, layout: {
11627
12285
  visibility: this.options.visible ? "visible" : "none",
11628
- }, paint: __assign(__assign({ "fill-extrusion-base": this.options.base, "fill-extrusion-height": this.options.height, "fill-extrusion-opacity": this.options.fillOpacity }, (this.options.fillPattern ?
12286
+ }, 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 ?
11629
12287
  { "fill-extrusion-pattern": this.options.fillPattern } :
11630
12288
  { "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 });
11631
12289
  return [layer];
@@ -11649,11 +12307,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11649
12307
  return PolygonExtrusionLayer;
11650
12308
  }(Layer));
11651
12309
 
12310
+ var __extends$D = (window && window.__extends) || (function () {
12311
+ var extendStatics = function (d, b) {
12312
+ extendStatics = Object.setPrototypeOf ||
12313
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12314
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
12315
+ return extendStatics(d, b);
12316
+ };
12317
+ return function (d, b) {
12318
+ if (typeof b !== "function" && b !== null)
12319
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12320
+ extendStatics(d, b);
12321
+ function __() { this.constructor = d; }
12322
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12323
+ };
12324
+ })();
12325
+ var __values$7 = (window && window.__values) || function(o) {
12326
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
12327
+ if (m) return m.call(o);
12328
+ if (o && typeof o.length === "number") return {
12329
+ next: function () {
12330
+ if (o && i >= o.length) o = void 0;
12331
+ return { value: o && o[i++], done: !o };
12332
+ }
12333
+ };
12334
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12335
+ };
12336
+ var __read$3 = (window && window.__read) || function (o, n) {
12337
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
12338
+ if (!m) return o;
12339
+ var i = m.call(o), r, ar = [], e;
12340
+ try {
12341
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12342
+ }
12343
+ catch (error) { e = { error: error }; }
12344
+ finally {
12345
+ try {
12346
+ if (r && !r.done && (m = i["return"])) m.call(i);
12347
+ }
12348
+ finally { if (e) throw e.error; }
12349
+ }
12350
+ return ar;
12351
+ };
12352
+ var __spreadArray = (window && window.__spreadArray) || function (to, from) {
12353
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
12354
+ to[j] = from[i];
12355
+ return to;
12356
+ };
11652
12357
  /**
11653
12358
  * Options used when rendering Polygon and MultiPolygon objects in a PolygonLayer.
11654
12359
  */
11655
12360
  var PolygonLayerOptions = /** @class */ (function (_super) {
11656
- __extends(PolygonLayerOptions, _super);
12361
+ __extends$D(PolygonLayerOptions, _super);
11657
12362
  function PolygonLayerOptions() {
11658
12363
  var _this = _super !== null && _super.apply(this, arguments) || this;
11659
12364
  /**
@@ -11697,7 +12402,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11697
12402
  var isNewColorSet = false;
11698
12403
  var isNewPatternSet = false;
11699
12404
  try {
11700
- for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
12405
+ for (var valueList_1 = __values$7(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
11701
12406
  var value = valueList_1_1.value;
11702
12407
  if (value) {
11703
12408
  if (value.hasOwnProperty("fillColor")) {
@@ -11719,7 +12424,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11719
12424
  finally { if (e_1) throw e_1.error; }
11720
12425
  }
11721
12426
  // Then execute the standard merge behavior.
11722
- var merged = _super.prototype.merge.apply(this, __spread(valueList));
12427
+ var merged = _super.prototype.merge.apply(this, __spreadArray([], __read$3(valueList)));
11723
12428
  if (isNewColorSet) {
11724
12429
  merged.fillPattern = undefined;
11725
12430
  }
@@ -11731,11 +12436,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11731
12436
  return PolygonLayerOptions;
11732
12437
  }(LayerOptions));
11733
12438
 
12439
+ var __extends$E = (window && window.__extends) || (function () {
12440
+ var extendStatics = function (d, b) {
12441
+ extendStatics = Object.setPrototypeOf ||
12442
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12443
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
12444
+ return extendStatics(d, b);
12445
+ };
12446
+ return function (d, b) {
12447
+ if (typeof b !== "function" && b !== null)
12448
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12449
+ extendStatics(d, b);
12450
+ function __() { this.constructor = d; }
12451
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12452
+ };
12453
+ })();
11734
12454
  /**
11735
12455
  * Renders filled Polygon and MultiPolygon objects on the map.
11736
12456
  */
11737
12457
  var PolygonLayer = /** @class */ (function (_super) {
11738
- __extends(PolygonLayer, _super);
12458
+ __extends$E(PolygonLayer, _super);
11739
12459
  /**
11740
12460
  * Constructs a new PolygonLayer.
11741
12461
  * @param source The id or instance of a data source which the layer will render.
@@ -11841,11 +12561,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11841
12561
  return PolygonLayer;
11842
12562
  }(Layer));
11843
12563
 
12564
+ var __extends$F = (window && window.__extends) || (function () {
12565
+ var extendStatics = function (d, b) {
12566
+ extendStatics = Object.setPrototypeOf ||
12567
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12568
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
12569
+ return extendStatics(d, b);
12570
+ };
12571
+ return function (d, b) {
12572
+ if (typeof b !== "function" && b !== null)
12573
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12574
+ extendStatics(d, b);
12575
+ function __() { this.constructor = d; }
12576
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12577
+ };
12578
+ })();
11844
12579
  /**
11845
12580
  * Options used to customize the icons in a SymbolLayer
11846
12581
  */
11847
12582
  var IconOptions = /** @class */ (function (_super) {
11848
- __extends(IconOptions, _super);
12583
+ __extends$F(IconOptions, _super);
11849
12584
  function IconOptions() {
11850
12585
  var _this = _super !== null && _super.apply(this, arguments) || this;
11851
12586
  /**
@@ -11955,11 +12690,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11955
12690
  return IconOptions;
11956
12691
  }(Options));
11957
12692
 
12693
+ var __extends$G = (window && window.__extends) || (function () {
12694
+ var extendStatics = function (d, b) {
12695
+ extendStatics = Object.setPrototypeOf ||
12696
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12697
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
12698
+ return extendStatics(d, b);
12699
+ };
12700
+ return function (d, b) {
12701
+ if (typeof b !== "function" && b !== null)
12702
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12703
+ extendStatics(d, b);
12704
+ function __() { this.constructor = d; }
12705
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12706
+ };
12707
+ })();
11958
12708
  /**
11959
12709
  * Options used to customize the text in a SymbolLayer
11960
12710
  */
11961
12711
  var TextOptions = /** @class */ (function (_super) {
11962
- __extends(TextOptions, _super);
12712
+ __extends$G(TextOptions, _super);
11963
12713
  function TextOptions() {
11964
12714
  var _this = _super !== null && _super.apply(this, arguments) || this;
11965
12715
  /**
@@ -12113,11 +12863,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12113
12863
  return TextOptions;
12114
12864
  }(Options));
12115
12865
 
12866
+ var __extends$H = (window && window.__extends) || (function () {
12867
+ var extendStatics = function (d, b) {
12868
+ extendStatics = Object.setPrototypeOf ||
12869
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12870
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
12871
+ return extendStatics(d, b);
12872
+ };
12873
+ return function (d, b) {
12874
+ if (typeof b !== "function" && b !== null)
12875
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12876
+ extendStatics(d, b);
12877
+ function __() { this.constructor = d; }
12878
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12879
+ };
12880
+ })();
12116
12881
  /**
12117
12882
  * Options used when rendering geometries in a SymbolLayer.
12118
12883
  */
12119
12884
  var SymbolLayerOptions = /** @class */ (function (_super) {
12120
- __extends(SymbolLayerOptions, _super);
12885
+ __extends$H(SymbolLayerOptions, _super);
12121
12886
  function SymbolLayerOptions() {
12122
12887
  var _this = _super !== null && _super.apply(this, arguments) || this;
12123
12888
  /**
@@ -12175,12 +12940,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12175
12940
  return SymbolLayerOptions;
12176
12941
  }(LayerOptions));
12177
12942
 
12943
+ var __extends$I = (window && window.__extends) || (function () {
12944
+ var extendStatics = function (d, b) {
12945
+ extendStatics = Object.setPrototypeOf ||
12946
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12947
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
12948
+ return extendStatics(d, b);
12949
+ };
12950
+ return function (d, b) {
12951
+ if (typeof b !== "function" && b !== null)
12952
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12953
+ extendStatics(d, b);
12954
+ function __() { this.constructor = d; }
12955
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12956
+ };
12957
+ })();
12958
+ var __assign$2 = (window && window.__assign) || function () {
12959
+ __assign$2 = Object.assign || function(t) {
12960
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
12961
+ s = arguments[i];
12962
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
12963
+ t[p] = s[p];
12964
+ }
12965
+ return t;
12966
+ };
12967
+ return __assign$2.apply(this, arguments);
12968
+ };
12178
12969
  /**
12179
12970
  * Renders point based data as symbols on the map using text and/or icons.
12180
12971
  * Symbols can also be created for line and polygon data as well.
12181
12972
  */
12182
12973
  var SymbolLayer = /** @class */ (function (_super) {
12183
- __extends(SymbolLayer, _super);
12974
+ __extends$I(SymbolLayer, _super);
12184
12975
  /**
12185
12976
  * Constructs a new SymbolLayer.
12186
12977
  * @param source The id or instance of a data source which the layer will render.
@@ -12274,9 +13065,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12274
13065
  * @internal
12275
13066
  */
12276
13067
  SymbolLayer.prototype._buildLayers = function () {
12277
- 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 ?
13068
+ 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 ?
12278
13069
  this.options.source.getId() :
12279
- 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,
13070
+ 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,
12280
13071
  // Text options.
12281
13072
  "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,
12282
13073
  // Icon options.
@@ -12322,11 +13113,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12322
13113
  return SymbolLayer;
12323
13114
  }(Layer));
12324
13115
 
13116
+ var __extends$J = (window && window.__extends) || (function () {
13117
+ var extendStatics = function (d, b) {
13118
+ extendStatics = Object.setPrototypeOf ||
13119
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
13120
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
13121
+ return extendStatics(d, b);
13122
+ };
13123
+ return function (d, b) {
13124
+ if (typeof b !== "function" && b !== null)
13125
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13126
+ extendStatics(d, b);
13127
+ function __() { this.constructor = d; }
13128
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13129
+ };
13130
+ })();
12325
13131
  /**
12326
13132
  * Options used when rendering raster tiled images in a TileLayer.
12327
13133
  */
12328
13134
  var TileLayerOptions = /** @class */ (function (_super) {
12329
- __extends(TileLayerOptions, _super);
13135
+ __extends$J(TileLayerOptions, _super);
12330
13136
  function TileLayerOptions() {
12331
13137
  var _this = _super !== null && _super.apply(this, arguments) || this;
12332
13138
  /**
@@ -12382,11 +13188,48 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12382
13188
  return TileLayerOptions;
12383
13189
  }(MediaLayerOptions));
12384
13190
 
13191
+ var __extends$K = (window && window.__extends) || (function () {
13192
+ var extendStatics = function (d, b) {
13193
+ extendStatics = Object.setPrototypeOf ||
13194
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
13195
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
13196
+ return extendStatics(d, b);
13197
+ };
13198
+ return function (d, b) {
13199
+ if (typeof b !== "function" && b !== null)
13200
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13201
+ extendStatics(d, b);
13202
+ function __() { this.constructor = d; }
13203
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13204
+ };
13205
+ })();
13206
+ var __assign$3 = (window && window.__assign) || function () {
13207
+ __assign$3 = Object.assign || function(t) {
13208
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
13209
+ s = arguments[i];
13210
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
13211
+ t[p] = s[p];
13212
+ }
13213
+ return t;
13214
+ };
13215
+ return __assign$3.apply(this, arguments);
13216
+ };
13217
+ var __values$8 = (window && window.__values) || function(o) {
13218
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
13219
+ if (m) return m.call(o);
13220
+ if (o && typeof o.length === "number") return {
13221
+ next: function () {
13222
+ if (o && i >= o.length) o = void 0;
13223
+ return { value: o && o[i++], done: !o };
13224
+ }
13225
+ };
13226
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
13227
+ };
12385
13228
  /**
12386
13229
  * Renders raster tiled images on top of the map tiles.
12387
13230
  */
12388
13231
  var TileLayer = /** @class */ (function (_super) {
12389
- __extends(TileLayer, _super);
13232
+ __extends$K(TileLayer, _super);
12390
13233
  /**
12391
13234
  * Constructs a new TileLayer.
12392
13235
  * @param options The options for the tile layer.
@@ -12448,7 +13291,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12448
13291
  * @internal
12449
13292
  */
12450
13293
  TileLayer.prototype._buildLayers = function () {
12451
- var layer = __assign(__assign({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
13294
+ var layer = __assign$3(__assign$3({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
12452
13295
  visibility: this.options.visible ? "visible" : "none"
12453
13296
  }, paint: {
12454
13297
  "raster-contrast": this.options.contrast,
@@ -12485,7 +13328,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12485
13328
  if (this.options.subdomains && this.options.subdomains.length > 0) {
12486
13329
  var urls = [];
12487
13330
  try {
12488
- for (var _b = __values(this.options.subdomains), _c = _b.next(); !_c.done; _c = _b.next()) {
13331
+ for (var _b = __values$8(this.options.subdomains), _c = _b.next(); !_c.done; _c = _b.next()) {
12489
13332
  var subdomain = _c.value;
12490
13333
  urls.push(this.options.tileUrl.replace(/{subdomain}/g, subdomain));
12491
13334
  }
@@ -12517,7 +13360,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12517
13360
  };
12518
13361
  }
12519
13362
  }
12520
- 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 }));
13363
+ 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 }));
12521
13364
  };
12522
13365
  /**
12523
13366
  * Gets the id of the source to be paired with this layer.
@@ -12529,11 +13372,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12529
13372
  return TileLayer;
12530
13373
  }(SourceBuildingLayer));
12531
13374
 
13375
+ var __extends$L = (window && window.__extends) || (function () {
13376
+ var extendStatics = function (d, b) {
13377
+ extendStatics = Object.setPrototypeOf ||
13378
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
13379
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
13380
+ return extendStatics(d, b);
13381
+ };
13382
+ return function (d, b) {
13383
+ if (typeof b !== "function" && b !== null)
13384
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13385
+ extendStatics(d, b);
13386
+ function __() { this.constructor = d; }
13387
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13388
+ };
13389
+ })();
12532
13390
  /**
12533
13391
  * Options used to render graphics in a WebGLLayer.
12534
13392
  */
12535
13393
  var WebGLLayerOptions = /** @class */ (function (_super) {
12536
- __extends(WebGLLayerOptions, _super);
13394
+ __extends$L(WebGLLayerOptions, _super);
12537
13395
  function WebGLLayerOptions() {
12538
13396
  var _this = _super !== null && _super.apply(this, arguments) || this;
12539
13397
  /**
@@ -12545,11 +13403,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12545
13403
  return WebGLLayerOptions;
12546
13404
  }(LayerOptions));
12547
13405
 
13406
+ var __extends$M = (window && window.__extends) || (function () {
13407
+ var extendStatics = function (d, b) {
13408
+ extendStatics = Object.setPrototypeOf ||
13409
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
13410
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
13411
+ return extendStatics(d, b);
13412
+ };
13413
+ return function (d, b) {
13414
+ if (typeof b !== "function" && b !== null)
13415
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13416
+ extendStatics(d, b);
13417
+ function __() { this.constructor = d; }
13418
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13419
+ };
13420
+ })();
12548
13421
  /**
12549
13422
  * Enables custom rendering logic with access to the WebGL context of the map.
12550
13423
  */
12551
13424
  var WebGLLayer = /** @class */ (function (_super) {
12552
- __extends(WebGLLayer, _super);
13425
+ __extends$M(WebGLLayer, _super);
12553
13426
  /**
12554
13427
  * Constructs a new WebGLLayer.
12555
13428
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -12779,11 +13652,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12779
13652
 
12780
13653
  var isElement_1 = isElement;
12781
13654
 
13655
+ var __extends$N = (window && window.__extends) || (function () {
13656
+ var extendStatics = function (d, b) {
13657
+ extendStatics = Object.setPrototypeOf ||
13658
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
13659
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
13660
+ return extendStatics(d, b);
13661
+ };
13662
+ return function (d, b) {
13663
+ if (typeof b !== "function" && b !== null)
13664
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13665
+ extendStatics(d, b);
13666
+ function __() { this.constructor = d; }
13667
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13668
+ };
13669
+ })();
12782
13670
  /**
12783
13671
  * The options for a popup.
12784
13672
  */
12785
13673
  var PopupOptions = /** @class */ (function (_super) {
12786
- __extends(PopupOptions, _super);
13674
+ __extends$N(PopupOptions, _super);
12787
13675
  function PopupOptions() {
12788
13676
  var _this = _super !== null && _super.apply(this, arguments) || this;
12789
13677
  /**
@@ -12852,11 +13740,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12852
13740
  return PopupOptions;
12853
13741
  }(Options));
12854
13742
 
13743
+ var __extends$O = (window && window.__extends) || (function () {
13744
+ var extendStatics = function (d, b) {
13745
+ extendStatics = Object.setPrototypeOf ||
13746
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
13747
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
13748
+ return extendStatics(d, b);
13749
+ };
13750
+ return function (d, b) {
13751
+ if (typeof b !== "function" && b !== null)
13752
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13753
+ extendStatics(d, b);
13754
+ function __() { this.constructor = d; }
13755
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13756
+ };
13757
+ })();
13758
+ var __read$4 = (window && window.__read) || function (o, n) {
13759
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
13760
+ if (!m) return o;
13761
+ var i = m.call(o), r, ar = [], e;
13762
+ try {
13763
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
13764
+ }
13765
+ catch (error) { e = { error: error }; }
13766
+ finally {
13767
+ try {
13768
+ if (r && !r.done && (m = i["return"])) m.call(i);
13769
+ }
13770
+ finally { if (e) throw e.error; }
13771
+ }
13772
+ return ar;
13773
+ };
12855
13774
  /**
12856
13775
  * An information window anchored at a specified position on a map.
12857
13776
  */
12858
13777
  var Popup = /** @class */ (function (_super) {
12859
- __extends(Popup, _super);
13778
+ __extends$O(Popup, _super);
12860
13779
  /**
12861
13780
  * Constructs a Popup object and initializes it with the specified options.
12862
13781
  * @param options The options for the popup.
@@ -12948,7 +13867,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12948
13867
  */
12949
13868
  _this._onDown = function (event) {
12950
13869
  _this.map.popups._addDraggedPopup(_this);
12951
- var _a = __read(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
13870
+ var _a = __read$4(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
12952
13871
  if (event.type === "mousedown") {
12953
13872
  event = event;
12954
13873
  _this.dragOffset = [
@@ -13112,7 +14031,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13112
14031
  pixel[0] + this.dragOffset[0],
13113
14032
  pixel[1] + this.dragOffset[1]
13114
14033
  ];
13115
- var _a = __read(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
14034
+ var _a = __read$4(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
13116
14035
  this.options.position = anchorPos;
13117
14036
  this.marker.setLngLat(this.options.position);
13118
14037
  this._invokeEvent("drag", { type: "drag", target: this });
@@ -13266,7 +14185,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13266
14185
  posY = pt.y;
13267
14186
  }
13268
14187
  else {
13269
- var _a = __read(map.positionsToPixels([options.position]), 1), _b = __read(_a[0], 2), x = _b[0], y = _b[1];
14188
+ var _a = __read$4(map.positionsToPixels([options.position]), 1), _b = __read$4(_a[0], 2), x = _b[0], y = _b[1];
13270
14189
  posX = x;
13271
14190
  posY = y;
13272
14191
  }
@@ -13327,11 +14246,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13327
14246
  return Popup;
13328
14247
  }(EventEmitter));
13329
14248
 
14249
+ var __extends$P = (window && window.__extends) || (function () {
14250
+ var extendStatics = function (d, b) {
14251
+ extendStatics = Object.setPrototypeOf ||
14252
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14253
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
14254
+ return extendStatics(d, b);
14255
+ };
14256
+ return function (d, b) {
14257
+ if (typeof b !== "function" && b !== null)
14258
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
14259
+ extendStatics(d, b);
14260
+ function __() { this.constructor = d; }
14261
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14262
+ };
14263
+ })();
13330
14264
  /**
13331
14265
  * Options for rendering an HtmlMarker object
13332
14266
  */
13333
14267
  var HtmlMarkerOptions = /** @class */ (function (_super) {
13334
- __extends(HtmlMarkerOptions, _super);
14268
+ __extends$P(HtmlMarkerOptions, _super);
13335
14269
  function HtmlMarkerOptions() {
13336
14270
  var _this = _super !== null && _super.apply(this, arguments) || this;
13337
14271
  /**
@@ -13409,11 +14343,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13409
14343
  return HtmlMarkerOptions;
13410
14344
  }(Options));
13411
14345
 
14346
+ var __extends$Q = (window && window.__extends) || (function () {
14347
+ var extendStatics = function (d, b) {
14348
+ extendStatics = Object.setPrototypeOf ||
14349
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14350
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
14351
+ return extendStatics(d, b);
14352
+ };
14353
+ return function (d, b) {
14354
+ if (typeof b !== "function" && b !== null)
14355
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
14356
+ extendStatics(d, b);
14357
+ function __() { this.constructor = d; }
14358
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14359
+ };
14360
+ })();
13412
14361
  /**
13413
14362
  * This class wraps an HTML element that can be displayed on the map.
13414
14363
  */
13415
14364
  var HtmlMarker = /** @class */ (function (_super) {
13416
- __extends(HtmlMarker, _super);
14365
+ __extends$Q(HtmlMarker, _super);
13417
14366
  /**
13418
14367
  * Constructs a new HtmlMarker.
13419
14368
  * @param options The options for the HtmlMarker.
@@ -14105,6 +15054,42 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14105
15054
  return UserAgent;
14106
15055
  }());
14107
15056
 
15057
+ var __extends$R = (window && window.__extends) || (function () {
15058
+ var extendStatics = function (d, b) {
15059
+ extendStatics = Object.setPrototypeOf ||
15060
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15061
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
15062
+ return extendStatics(d, b);
15063
+ };
15064
+ return function (d, b) {
15065
+ if (typeof b !== "function" && b !== null)
15066
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15067
+ extendStatics(d, b);
15068
+ function __() { this.constructor = d; }
15069
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15070
+ };
15071
+ })();
15072
+ var __read$5 = (window && window.__read) || function (o, n) {
15073
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
15074
+ if (!m) return o;
15075
+ var i = m.call(o), r, ar = [], e;
15076
+ try {
15077
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
15078
+ }
15079
+ catch (error) { e = { error: error }; }
15080
+ finally {
15081
+ try {
15082
+ if (r && !r.done && (m = i["return"])) m.call(i);
15083
+ }
15084
+ finally { if (e) throw e.error; }
15085
+ }
15086
+ return ar;
15087
+ };
15088
+ var __spreadArray$1 = (window && window.__spreadArray) || function (to, from) {
15089
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
15090
+ to[j] = from[i];
15091
+ return to;
15092
+ };
14108
15093
  (function (AuthenticationType) {
14109
15094
  /**
14110
15095
  * The subscription key authentication mechanism.
@@ -14135,7 +15120,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14135
15120
  * Options for specifying how the map control should authenticate with the Azure Maps services.
14136
15121
  */
14137
15122
  var AuthenticationOptions = /** @class */ (function (_super) {
14138
- __extends(AuthenticationOptions, _super);
15123
+ __extends$R(AuthenticationOptions, _super);
14139
15124
  function AuthenticationOptions() {
14140
15125
  var _this = _super !== null && _super.apply(this, arguments) || this;
14141
15126
  /**
@@ -14237,7 +15222,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14237
15222
  for (var _i = 0; _i < arguments.length; _i++) {
14238
15223
  valueList[_i] = arguments[_i];
14239
15224
  }
14240
- var merged = _super.prototype.merge.apply(this, __spread(valueList));
15225
+ var merged = _super.prototype.merge.apply(this, __spreadArray$1([], __read$5(valueList)));
14241
15226
  if (merged.authType === exports.AuthenticationType.subscriptionKey) {
14242
15227
  merged.authContext = merged.aadAppId = merged.getToken = undefined;
14243
15228
  }
@@ -14736,11 +15721,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14736
15721
  return Media;
14737
15722
  }());
14738
15723
 
15724
+ var __extends$S = (window && window.__extends) || (function () {
15725
+ var extendStatics = function (d, b) {
15726
+ extendStatics = Object.setPrototypeOf ||
15727
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15728
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
15729
+ return extendStatics(d, b);
15730
+ };
15731
+ return function (d, b) {
15732
+ if (typeof b !== "function" && b !== null)
15733
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15734
+ extendStatics(d, b);
15735
+ function __() { this.constructor = d; }
15736
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15737
+ };
15738
+ })();
14739
15739
  /**
14740
15740
  * The options for a CopyrightControl object.
14741
15741
  */
14742
15742
  var CopyrightControlOptions = /** @class */ (function (_super) {
14743
- __extends(CopyrightControlOptions, _super);
15743
+ __extends$S(CopyrightControlOptions, _super);
14744
15744
  function CopyrightControlOptions() {
14745
15745
  var _this = _super !== null && _super.apply(this, arguments) || this;
14746
15746
  /**
@@ -14769,11 +15769,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14769
15769
  return CopyrightControlOptions;
14770
15770
  }(Options));
14771
15771
 
15772
+ var __extends$T = (window && window.__extends) || (function () {
15773
+ var extendStatics = function (d, b) {
15774
+ extendStatics = Object.setPrototypeOf ||
15775
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15776
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
15777
+ return extendStatics(d, b);
15778
+ };
15779
+ return function (d, b) {
15780
+ if (typeof b !== "function" && b !== null)
15781
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15782
+ extendStatics(d, b);
15783
+ function __() { this.constructor = d; }
15784
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15785
+ };
15786
+ })();
14772
15787
  /**
14773
15788
  * @private
14774
15789
  */
14775
15790
  var CopyrightControl = /** @class */ (function (_super) {
14776
- __extends(CopyrightControl, _super);
15791
+ __extends$T(CopyrightControl, _super);
14777
15792
  function CopyrightControl(options) {
14778
15793
  var _this = _super.call(this) || this;
14779
15794
  _this.textAttribution = function (options) {
@@ -14894,6 +15909,71 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14894
15909
  return CopyrightControl;
14895
15910
  }(ControlBase));
14896
15911
 
15912
+ var __assign$4 = (window && window.__assign) || function () {
15913
+ __assign$4 = Object.assign || function(t) {
15914
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
15915
+ s = arguments[i];
15916
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
15917
+ t[p] = s[p];
15918
+ }
15919
+ return t;
15920
+ };
15921
+ return __assign$4.apply(this, arguments);
15922
+ };
15923
+
15924
+ var __awaiter$1 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
15925
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15926
+ return new (P || (P = Promise))(function (resolve, reject) {
15927
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15928
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
15929
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
15930
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
15931
+ });
15932
+ };
15933
+ var __generator$1 = (window && window.__generator) || function (thisArg, body) {
15934
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
15935
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
15936
+ function verb(n) { return function (v) { return step([n, v]); }; }
15937
+ function step(op) {
15938
+ if (f) throw new TypeError("Generator is already executing.");
15939
+ while (_) try {
15940
+ 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;
15941
+ if (y = 0, t) op = [op[0] & 2, t.value];
15942
+ switch (op[0]) {
15943
+ case 0: case 1: t = op; break;
15944
+ case 4: _.label++; return { value: op[1], done: false };
15945
+ case 5: _.label++; y = op[1]; op = [0]; continue;
15946
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
15947
+ default:
15948
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
15949
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
15950
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
15951
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
15952
+ if (t[2]) _.ops.pop();
15953
+ _.trys.pop(); continue;
15954
+ }
15955
+ op = body.call(thisArg, _);
15956
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
15957
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
15958
+ }
15959
+ };
15960
+ var __read$6 = (window && window.__read) || function (o, n) {
15961
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
15962
+ if (!m) return o;
15963
+ var i = m.call(o), r, ar = [], e;
15964
+ try {
15965
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
15966
+ }
15967
+ catch (error) { e = { error: error }; }
15968
+ finally {
15969
+ try {
15970
+ if (r && !r.done && (m = i["return"])) m.call(i);
15971
+ }
15972
+ finally { if (e) throw e.error; }
15973
+ }
15974
+ return ar;
15975
+ };
15976
+
14897
15977
  /**
14898
15978
  * @private
14899
15979
  */
@@ -15056,11 +16136,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15056
16136
  return FlowServiceDelegate;
15057
16137
  }());
15058
16138
 
16139
+ var __extends$U = (window && window.__extends) || (function () {
16140
+ var extendStatics = function (d, b) {
16141
+ extendStatics = Object.setPrototypeOf ||
16142
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16143
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
16144
+ return extendStatics(d, b);
16145
+ };
16146
+ return function (d, b) {
16147
+ if (typeof b !== "function" && b !== null)
16148
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16149
+ extendStatics(d, b);
16150
+ function __() { this.constructor = d; }
16151
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16152
+ };
16153
+ })();
15059
16154
  /**
15060
16155
  * The options for enabling/disabling user interaction with the map.
15061
16156
  */
15062
16157
  var UserInteractionOptions = /** @class */ (function (_super) {
15063
- __extends(UserInteractionOptions, _super);
16158
+ __extends$U(UserInteractionOptions, _super);
15064
16159
  function UserInteractionOptions() {
15065
16160
  var _this = _super !== null && _super.apply(this, arguments) || this;
15066
16161
  /**
@@ -15331,6 +16426,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15331
16426
  return UserInteractionDelegate;
15332
16427
  }());
15333
16428
 
16429
+ var __values$9 = (window && window.__values) || function(o) {
16430
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
16431
+ if (m) return m.call(o);
16432
+ if (o && typeof o.length === "number") return {
16433
+ next: function () {
16434
+ if (o && i >= o.length) o = void 0;
16435
+ return { value: o && o[i++], done: !o };
16436
+ }
16437
+ };
16438
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
16439
+ };
15334
16440
  /**
15335
16441
  * A manager for the map control's controls.
15336
16442
  * Exposed through the controls property of the atlas.Map class.
@@ -15365,7 +16471,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15365
16471
  var e_1, _a;
15366
16472
  if (Array.isArray(control)) {
15367
16473
  try {
15368
- for (var control_1 = __values(control), control_1_1 = control_1.next(); !control_1_1.done; control_1_1 = control_1.next()) {
16474
+ for (var control_1 = __values$9(control), control_1_1 = control_1.next(); !control_1_1.done; control_1_1 = control_1.next()) {
15369
16475
  var c = control_1_1.value;
15370
16476
  this._add(c, options);
15371
16477
  }
@@ -15396,7 +16502,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15396
16502
  var e_2, _a;
15397
16503
  if (Array.isArray(control)) {
15398
16504
  try {
15399
- for (var control_2 = __values(control), control_2_1 = control_2.next(); !control_2_1.done; control_2_1 = control_2.next()) {
16505
+ for (var control_2 = __values$9(control), control_2_1 = control_2.next(); !control_2_1.done; control_2_1 = control_2.next()) {
15400
16506
  var c = control_2_1.value;
15401
16507
  this._remove(c);
15402
16508
  }
@@ -15440,6 +16546,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15440
16546
  return ControlManager;
15441
16547
  }());
15442
16548
 
16549
+ var __assign$5 = (window && window.__assign) || function () {
16550
+ __assign$5 = Object.assign || function(t) {
16551
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
16552
+ s = arguments[i];
16553
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
16554
+ t[p] = s[p];
16555
+ }
16556
+ return t;
16557
+ };
16558
+ return __assign$5.apply(this, arguments);
16559
+ };
15443
16560
  /**
15444
16561
  * @private
15445
16562
  */
@@ -15482,7 +16599,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15482
16599
  case "sourcedata":
15483
16600
  case "styledata":
15484
16601
  modifiedCallback = function (data) {
15485
- 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 && {
16602
+ 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 && {
15486
16603
  tile: {
15487
16604
  id: {
15488
16605
  x: data.tile.tileID.canonical.x,
@@ -15723,6 +16840,33 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15723
16840
  return MapCallbackHandler;
15724
16841
  }());
15725
16842
 
16843
+ var __values$a = (window && window.__values) || function(o) {
16844
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
16845
+ if (m) return m.call(o);
16846
+ if (o && typeof o.length === "number") return {
16847
+ next: function () {
16848
+ if (o && i >= o.length) o = void 0;
16849
+ return { value: o && o[i++], done: !o };
16850
+ }
16851
+ };
16852
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
16853
+ };
16854
+ var __read$7 = (window && window.__read) || function (o, n) {
16855
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
16856
+ if (!m) return o;
16857
+ var i = m.call(o), r, ar = [], e;
16858
+ try {
16859
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
16860
+ }
16861
+ catch (error) { e = { error: error }; }
16862
+ finally {
16863
+ try {
16864
+ if (r && !r.done && (m = i["return"])) m.call(i);
16865
+ }
16866
+ finally { if (e) throw e.error; }
16867
+ }
16868
+ return ar;
16869
+ };
15726
16870
  // Disable unified signatures linter rule so we can generate separate docs for function overloads.
15727
16871
  // tslint:disable:unified-signatures
15728
16872
  var MAP_CLIENT_EVENTS = ['maxzoomchanged', 'minzoomchanged', 'mapconfigurationchanged'];
@@ -15747,7 +16891,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15747
16891
  else {
15748
16892
  targetOrCallback = Array.isArray(targetOrCallback) ? targetOrCallback : [targetOrCallback];
15749
16893
  try {
15750
- for (var targetOrCallback_1 = __values(targetOrCallback), targetOrCallback_1_1 = targetOrCallback_1.next(); !targetOrCallback_1_1.done; targetOrCallback_1_1 = targetOrCallback_1.next()) {
16894
+ for (var targetOrCallback_1 = __values$a(targetOrCallback), targetOrCallback_1_1 = targetOrCallback_1.next(); !targetOrCallback_1_1.done; targetOrCallback_1_1 = targetOrCallback_1.next()) {
15751
16895
  var target = targetOrCallback_1_1.value;
15752
16896
  if (target instanceof Layer && Layer._isMBoxEvent(eventType)) {
15753
16897
  this._addLayerListener(eventType, target, callback, false, false);
@@ -15798,7 +16942,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15798
16942
  // Must disable it on every Mapbox layer our layer builds.
15799
16943
  if (modifiedCallback && layer) {
15800
16944
  try {
15801
- for (var _c = __values(layer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
16945
+ for (var _c = __values$a(layer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
15802
16946
  var id = _d.value;
15803
16947
  this.map._getMap().off(eventType, id, modifiedCallback);
15804
16948
  }
@@ -15818,7 +16962,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15818
16962
  if (layer) {
15819
16963
  modifiedCallback = this.mapCallbackHandler.getModifiedCallback(eventType, layerId, callback);
15820
16964
  try {
15821
- for (var _e = __values(layer._getLayerIds()), _f = _e.next(); !_f.done; _f = _e.next()) {
16965
+ for (var _e = __values$a(layer._getLayerIds()), _f = _e.next(); !_f.done; _f = _e.next()) {
15822
16966
  var id = _f.value;
15823
16967
  this.map._getMap().on(eventType, id, modifiedCallback);
15824
16968
  }
@@ -15905,7 +17049,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15905
17049
  var callbacks = new Dictionary(this.mapCallbackHandler.getEventCallbacks(eventType, layer));
15906
17050
  if (callbacks) {
15907
17051
  callbacks.forEach(function (_a, callback) {
15908
- var _b = __read(_a, 2), _ = _b[0], once = _b[1];
17052
+ var _b = __read$7(_a, 2), _ = _b[0], once = _b[1];
15909
17053
  // Invoking a listener this way circumvents the fire once logic in the modified callback.
15910
17054
  // So we check if the callback was added as a fire once and if so remove it here.
15911
17055
  if (once) {
@@ -15928,7 +17072,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15928
17072
  else {
15929
17073
  targetOrCallback = Array.isArray(targetOrCallback) ? targetOrCallback : [targetOrCallback];
15930
17074
  try {
15931
- for (var targetOrCallback_2 = __values(targetOrCallback), targetOrCallback_2_1 = targetOrCallback_2.next(); !targetOrCallback_2_1.done; targetOrCallback_2_1 = targetOrCallback_2.next()) {
17075
+ for (var targetOrCallback_2 = __values$a(targetOrCallback), targetOrCallback_2_1 = targetOrCallback_2.next(); !targetOrCallback_2_1.done; targetOrCallback_2_1 = targetOrCallback_2.next()) {
15932
17076
  var target = targetOrCallback_2_1.value;
15933
17077
  if (target instanceof Layer && Layer._isMBoxEvent(eventType)) {
15934
17078
  this._removeListener(eventType, target, callback);
@@ -15978,7 +17122,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15978
17122
  var layer = this.map.layers.getLayerById(layerId);
15979
17123
  if (layer) {
15980
17124
  try {
15981
- for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
17125
+ for (var _b = __values$a(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
15982
17126
  var id = _c.value;
15983
17127
  this.map._getMap().off(eventType, id, modifiedCallback);
15984
17128
  }
@@ -16013,9 +17157,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16013
17157
  eventDict.forEach(function (callbackDict, eventType) {
16014
17158
  callbackDict.forEach(function (_a) {
16015
17159
  var e_6, _b;
16016
- var _c = __read(_a, 1), modifiedCallback = _c[0];
17160
+ var _c = __read$7(_a, 1), modifiedCallback = _c[0];
16017
17161
  try {
16018
- for (var _d = __values(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
17162
+ for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
16019
17163
  var mbLayerId = _e.value;
16020
17164
  _this.map._getMap().on(eventType, mbLayerId, modifiedCallback);
16021
17165
  }
@@ -16046,9 +17190,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16046
17190
  eventDict.forEach(function (callbackDict, eventType) {
16047
17191
  callbackDict.forEach(function (_a) {
16048
17192
  var e_7, _b;
16049
- var _c = __read(_a, 1), modifiedCallback = _c[0];
17193
+ var _c = __read$7(_a, 1), modifiedCallback = _c[0];
16050
17194
  try {
16051
- for (var _d = __values(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
17195
+ for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
16052
17196
  var mbLayerId = _e.value;
16053
17197
  _this.map._getMap().off(eventType, mbLayerId, modifiedCallback);
16054
17198
  }
@@ -16067,6 +17211,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16067
17211
  return EventManager;
16068
17212
  }());
16069
17213
 
17214
+ var __values$b = (window && window.__values) || function(o) {
17215
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
17216
+ if (m) return m.call(o);
17217
+ if (o && typeof o.length === "number") return {
17218
+ next: function () {
17219
+ if (o && i >= o.length) o = void 0;
17220
+ return { value: o && o[i++], done: !o };
17221
+ }
17222
+ };
17223
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
17224
+ };
16070
17225
  /**
16071
17226
  * A manager for the map control's HTML markers.
16072
17227
  * Exposed through the markers property of the atlas.Map class.
@@ -16086,7 +17241,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16086
17241
  var e_1, _a;
16087
17242
  if (Array.isArray(element)) {
16088
17243
  try {
16089
- for (var element_1 = __values(element), element_1_1 = element_1.next(); !element_1_1.done; element_1_1 = element_1.next()) {
17244
+ for (var element_1 = __values$b(element), element_1_1 = element_1.next(); !element_1_1.done; element_1_1 = element_1.next()) {
16090
17245
  var marker = element_1_1.value;
16091
17246
  this._addMarker(marker, position);
16092
17247
  }
@@ -16124,7 +17279,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16124
17279
  var e_2, _a;
16125
17280
  if (Array.isArray(marker)) {
16126
17281
  try {
16127
- for (var marker_1 = __values(marker), marker_1_1 = marker_1.next(); !marker_1_1.done; marker_1_1 = marker_1.next()) {
17282
+ for (var marker_1 = __values$b(marker), marker_1_1 = marker_1.next(); !marker_1_1.done; marker_1_1 = marker_1.next()) {
16128
17283
  var singleMarker = marker_1_1.value;
16129
17284
  this._removeMarker(singleMarker);
16130
17285
  }
@@ -16329,13 +17484,39 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16329
17484
  return ImageSpriteManager;
16330
17485
  }());
16331
17486
 
17487
+ var __extends$V = (window && window.__extends) || (function () {
17488
+ var extendStatics = function (d, b) {
17489
+ extendStatics = Object.setPrototypeOf ||
17490
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
17491
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
17492
+ return extendStatics(d, b);
17493
+ };
17494
+ return function (d, b) {
17495
+ if (typeof b !== "function" && b !== null)
17496
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
17497
+ extendStatics(d, b);
17498
+ function __() { this.constructor = d; }
17499
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17500
+ };
17501
+ })();
17502
+ var __values$c = (window && window.__values) || function(o) {
17503
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
17504
+ if (m) return m.call(o);
17505
+ if (o && typeof o.length === "number") return {
17506
+ next: function () {
17507
+ if (o && i >= o.length) o = void 0;
17508
+ return { value: o && o[i++], done: !o };
17509
+ }
17510
+ };
17511
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
17512
+ };
16332
17513
  /**
16333
17514
  * Used to represent the layer described by a resource files.
16334
17515
  * Serves primarily as a wrapper for multiple Mapbox layers in LayerManger.
16335
17516
  * @private
16336
17517
  */
16337
17518
  var FundamentalMapLayer = /** @class */ (function (_super) {
16338
- __extends(FundamentalMapLayer, _super);
17519
+ __extends$V(FundamentalMapLayer, _super);
16339
17520
  /**
16340
17521
  * Constructs a base layer used to represent the base, transit, and labels layers.
16341
17522
  * @param mbLayers The stylesheet used to define the style sources and style layers.
@@ -16365,7 +17546,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16365
17546
  var e_1, _a;
16366
17547
  var ids = new Set();
16367
17548
  try {
16368
- for (var _b = __values(this.layers), _c = _b.next(); !_c.done; _c = _b.next()) {
17549
+ for (var _b = __values$c(this.layers), _c = _b.next(); !_c.done; _c = _b.next()) {
16369
17550
  var layer = _c.value;
16370
17551
  if (typeof layer.source === "string") {
16371
17552
  // If the layer's source is just a string id use that.
@@ -16397,6 +17578,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16397
17578
  return FundamentalMapLayer;
16398
17579
  }(Layer));
16399
17580
 
17581
+ var __values$d = (window && window.__values) || function(o) {
17582
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
17583
+ if (m) return m.call(o);
17584
+ if (o && typeof o.length === "number") return {
17585
+ next: function () {
17586
+ if (o && i >= o.length) o = void 0;
17587
+ return { value: o && o[i++], done: !o };
17588
+ }
17589
+ };
17590
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
17591
+ };
17592
+ var __read$8 = (window && window.__read) || function (o, n) {
17593
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
17594
+ if (!m) return o;
17595
+ var i = m.call(o), r, ar = [], e;
17596
+ try {
17597
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
17598
+ }
17599
+ catch (error) { e = { error: error }; }
17600
+ finally {
17601
+ try {
17602
+ if (r && !r.done && (m = i["return"])) m.call(i);
17603
+ }
17604
+ finally { if (e) throw e.error; }
17605
+ }
17606
+ return ar;
17607
+ };
17608
+ var __spreadArray$2 = (window && window.__spreadArray) || function (to, from) {
17609
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
17610
+ to[j] = from[i];
17611
+ return to;
17612
+ };
16400
17613
  /**
16401
17614
  * A manager for the map control's layers.
16402
17615
  * Exposed through the layers property of the atlas.Map class.
@@ -16420,7 +17633,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16420
17633
  before;
16421
17634
  if (Array.isArray(layer)) {
16422
17635
  try {
16423
- for (var layer_1 = __values(layer), layer_1_1 = layer_1.next(); !layer_1_1.done; layer_1_1 = layer_1.next()) {
17636
+ for (var layer_1 = __values$d(layer), layer_1_1 = layer_1.next(); !layer_1_1.done; layer_1_1 = layer_1.next()) {
16424
17637
  var singleLayer = layer_1_1.value;
16425
17638
  this._addLayer(singleLayer, beforeId);
16426
17639
  }
@@ -16533,7 +17746,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16533
17746
  }
16534
17747
  var mbBefore = this._getMapboxBefore(before);
16535
17748
  try {
16536
- for (var _b = __values(layer._buildLayers()), _c = _b.next(); !_c.done; _c = _b.next()) {
17749
+ for (var _b = __values$d(layer._buildLayers()), _c = _b.next(); !_c.done; _c = _b.next()) {
16537
17750
  var mbLayer = _c.value;
16538
17751
  this.map._getMap().addLayer(mbLayer, mbBefore);
16539
17752
  }
@@ -16562,7 +17775,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16562
17775
  return;
16563
17776
  }
16564
17777
  try {
16565
- for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
17778
+ for (var _b = __values$d(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
16566
17779
  var mbLayerId = _c.value;
16567
17780
  // Check if the layer does exist.
16568
17781
  if (this.map._getMap().getLayer(mbLayerId)) {
@@ -16621,7 +17834,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16621
17834
  // it would build until a layer exists on the mapbox map.
16622
17835
  if (beforeLayer) {
16623
17836
  try {
16624
- for (var _c = __values(beforeLayer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
17837
+ for (var _c = __values$d(beforeLayer._getLayerIds()), _d = _c.next(); !_d.done; _d = _c.next()) {
16625
17838
  var layerId = _d.value;
16626
17839
  if (this.map._getMap().getLayer(layerId)) {
16627
17840
  return layerId;
@@ -16651,7 +17864,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16651
17864
  // the mapbox layers built by an atlas layer exists in the mapbox map.
16652
17865
  for (var i = before; i < this.layerIndex.length; i++) {
16653
17866
  try {
16654
- for (var _e = (e_5 = void 0, __values(this.layerIndex[i]._getLayerIds())), _f = _e.next(); !_f.done; _f = _e.next()) {
17867
+ for (var _e = (e_5 = void 0, __values$d(this.layerIndex[i]._getLayerIds())), _f = _e.next(); !_f.done; _f = _e.next()) {
16655
17868
  var layerId = _f.value;
16656
17869
  if (this.map._getMap().getLayer(layerId)) {
16657
17870
  return layerId;
@@ -16705,7 +17918,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16705
17918
  var e_6, _a;
16706
17919
  var ids = new Set();
16707
17920
  try {
16708
- for (var _b = __values(this.layerIndex), _c = _b.next(); !_c.done; _c = _b.next()) {
17921
+ for (var _b = __values$d(this.layerIndex), _c = _b.next(); !_c.done; _c = _b.next()) {
16709
17922
  var layer = _c.value;
16710
17923
  layer._getSourceIds().forEach(function (id) { return ids.add(id); });
16711
17924
  }
@@ -16759,7 +17972,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16759
17972
  var e_7, _a;
16760
17973
  var mbBefore = this._getMapboxBefore(before);
16761
17974
  try {
16762
- for (var _b = __values(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
17975
+ for (var _b = __values$d(layer._getLayerIds()), _c = _b.next(); !_c.done; _c = _b.next()) {
16763
17976
  var mbLayerId = _c.value;
16764
17977
  this.map._getMap().moveLayer(mbLayerId, mbBefore);
16765
17978
  }
@@ -16828,8 +18041,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16828
18041
  // If a specified layer hasn't been added to the map throw an error.
16829
18042
  var index = this_1.layerIndex.findIndex(function (l) { return l.getId() === layerId; });
16830
18043
  if (index > -1) {
16831
- layerIds.push.apply(layerIds, __spread(this_1.layerIndex[index]._getLayerIds()
16832
- .filter(function (id) { return !!_this.map._getMap().getLayer(id); })));
18044
+ layerIds.push.apply(layerIds, __spreadArray$2([], __read$8(this_1.layerIndex[index]._getLayerIds()
18045
+ .filter(function (id) { return !!_this.map._getMap().getLayer(id); }))));
16833
18046
  }
16834
18047
  else {
16835
18048
  throw new Error("The layer '" + layerId + "' has not been added to the map " +
@@ -16838,7 +18051,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16838
18051
  };
16839
18052
  var this_1 = this;
16840
18053
  try {
16841
- for (var layers_1 = __values(layers), layers_1_1 = layers_1.next(); !layers_1_1.done; layers_1_1 = layers_1.next()) {
18054
+ for (var layers_1 = __values$d(layers), layers_1_1 = layers_1.next(); !layers_1_1.done; layers_1_1 = layers_1.next()) {
16842
18055
  var layer = layers_1_1.value;
16843
18056
  _loop_1(layer);
16844
18057
  }
@@ -16864,7 +18077,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16864
18077
  var e_9, _a;
16865
18078
  if (Array.isArray(layer)) {
16866
18079
  try {
16867
- for (var layer_2 = __values(layer), layer_2_1 = layer_2.next(); !layer_2_1.done; layer_2_1 = layer_2.next()) {
18080
+ for (var layer_2 = __values$d(layer), layer_2_1 = layer_2.next(); !layer_2_1.done; layer_2_1 = layer_2.next()) {
16868
18081
  var singleLayer = layer_2_1.value;
16869
18082
  this._removeLayer(singleLayer);
16870
18083
  }
@@ -16903,6 +18116,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16903
18116
  return LayerManager;
16904
18117
  }());
16905
18118
 
18119
+ var __values$e = (window && window.__values) || function(o) {
18120
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
18121
+ if (m) return m.call(o);
18122
+ if (o && typeof o.length === "number") return {
18123
+ next: function () {
18124
+ if (o && i >= o.length) o = void 0;
18125
+ return { value: o && o[i++], done: !o };
18126
+ }
18127
+ };
18128
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
18129
+ };
16906
18130
  /**
16907
18131
  * A manager for the map control's popups.
16908
18132
  * Exposed through the `popups` property of the `atlas.Map` class.
@@ -16963,7 +18187,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16963
18187
  var e_1, _a;
16964
18188
  popup = Array.isArray(popup) ? popup : [popup];
16965
18189
  try {
16966
- for (var popup_1 = __values(popup), popup_1_1 = popup_1.next(); !popup_1_1.done; popup_1_1 = popup_1.next()) {
18190
+ for (var popup_1 = __values$e(popup), popup_1_1 = popup_1.next(); !popup_1_1.done; popup_1_1 = popup_1.next()) {
16967
18191
  var p = popup_1_1.value;
16968
18192
  if (!this.popups.has(p)) {
16969
18193
  this.popups.add(p);
@@ -16997,7 +18221,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16997
18221
  var e_2, _a;
16998
18222
  popup = Array.isArray(popup) ? popup : [popup];
16999
18223
  try {
17000
- for (var popup_2 = __values(popup), popup_2_1 = popup_2.next(); !popup_2_1.done; popup_2_1 = popup_2.next()) {
18224
+ for (var popup_2 = __values$e(popup), popup_2_1 = popup_2.next(); !popup_2_1.done; popup_2_1 = popup_2.next()) {
17001
18225
  var p = popup_2_1.value;
17002
18226
  if (this.popups.has(p)) {
17003
18227
  this.popups.delete(p);
@@ -17057,12 +18281,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17057
18281
  return PopupManager;
17058
18282
  }());
17059
18283
 
18284
+ var __extends$W = (window && window.__extends) || (function () {
18285
+ var extendStatics = function (d, b) {
18286
+ extendStatics = Object.setPrototypeOf ||
18287
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18288
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
18289
+ return extendStatics(d, b);
18290
+ };
18291
+ return function (d, b) {
18292
+ if (typeof b !== "function" && b !== null)
18293
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18294
+ extendStatics(d, b);
18295
+ function __() { this.constructor = d; }
18296
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18297
+ };
18298
+ })();
18299
+ var __assign$6 = (window && window.__assign) || function () {
18300
+ __assign$6 = Object.assign || function(t) {
18301
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18302
+ s = arguments[i];
18303
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
18304
+ t[p] = s[p];
18305
+ }
18306
+ return t;
18307
+ };
18308
+ return __assign$6.apply(this, arguments);
18309
+ };
17060
18310
  /**
17061
18311
  * Used to represent the fundamental map source.
17062
18312
  * @private
17063
18313
  */
17064
18314
  var FundamentalMapSource = /** @class */ (function (_super) {
17065
- __extends(FundamentalMapSource, _super);
18315
+ __extends$W(FundamentalMapSource, _super);
17066
18316
  /**
17067
18317
  * Constructs a source from the contents of a layer resource file.
17068
18318
  * @param id The source's id.
@@ -17094,7 +18344,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17094
18344
  var tileUrl = new Url({
17095
18345
  domain: constants.domainPlaceHolder,
17096
18346
  path: tile.path,
17097
- queryParams: __assign(__assign({}, options), tile.queryParams)
18347
+ queryParams: __assign$6(__assign$6({}, options), tile.queryParams)
17098
18348
  });
17099
18349
  return tileUrl.toString();
17100
18350
  });
@@ -17106,7 +18356,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17106
18356
  new Url({
17107
18357
  domain: constants.domainPlaceHolder,
17108
18358
  path: sourceDef.url.path,
17109
- queryParams: __assign(__assign({}, options), sourceDef.url.queryParams)
18359
+ queryParams: __assign$6(__assign$6({}, options), sourceDef.url.queryParams)
17110
18360
  }).toString();
17111
18361
  }
17112
18362
  else {
@@ -17117,6 +18367,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17117
18367
  return FundamentalMapSource;
17118
18368
  }(Source));
17119
18369
 
18370
+ var __values$f = (window && window.__values) || function(o) {
18371
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
18372
+ if (m) return m.call(o);
18373
+ if (o && typeof o.length === "number") return {
18374
+ next: function () {
18375
+ if (o && i >= o.length) o = void 0;
18376
+ return { value: o && o[i++], done: !o };
18377
+ }
18378
+ };
18379
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
18380
+ };
17120
18381
  /**
17121
18382
  * A manager for the map control's sources.
17122
18383
  * Exposed through the sources property of the atlas.Map class.
@@ -17135,7 +18396,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17135
18396
  if (update === void 0) { update = true; }
17136
18397
  if (Array.isArray(source)) {
17137
18398
  try {
17138
- for (var source_1 = __values(source), source_1_1 = source_1.next(); !source_1_1.done; source_1_1 = source_1.next()) {
18399
+ for (var source_1 = __values$f(source), source_1_1 = source_1.next(); !source_1_1.done; source_1_1 = source_1.next()) {
17139
18400
  var singleSource = source_1_1.value;
17140
18401
  this._addSource(singleSource, update);
17141
18402
  }
@@ -17261,7 +18522,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17261
18522
  if (update === void 0) { update = true; }
17262
18523
  if (Array.isArray(source)) {
17263
18524
  try {
17264
- for (var source_2 = __values(source), source_2_1 = source_2.next(); !source_2_1.done; source_2_1 = source_2.next()) {
18525
+ for (var source_2 = __values$f(source), source_2_1 = source_2.next(); !source_2_1.done; source_2_1 = source_2.next()) {
17265
18526
  var singleSource = source_2_1.value;
17266
18527
  this._removeSource(singleSource, update);
17267
18528
  }
@@ -17328,7 +18589,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17328
18589
  var e_3, _a;
17329
18590
  var shapesOrFeatures = [];
17330
18591
  try {
17331
- for (var features_1 = __values(features), features_1_1 = features_1.next(); !features_1_1.done; features_1_1 = features_1.next()) {
18592
+ for (var features_1 = __values$f(features), features_1_1 = features_1.next(); !features_1_1.done; features_1_1 = features_1.next()) {
17332
18593
  var feature = features_1_1.value;
17333
18594
  if ((dataSource || typeof feature["source"] === "string") &&
17334
18595
  typeof feature.properties[Shape._shapeIdPropName] === "string") {
@@ -17403,11 +18664,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17403
18664
  return SourceManager;
17404
18665
  }());
17405
18666
 
18667
+ var __extends$X = (window && window.__extends) || (function () {
18668
+ var extendStatics = function (d, b) {
18669
+ extendStatics = Object.setPrototypeOf ||
18670
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18671
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
18672
+ return extendStatics(d, b);
18673
+ };
18674
+ return function (d, b) {
18675
+ if (typeof b !== "function" && b !== null)
18676
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18677
+ extendStatics(d, b);
18678
+ function __() { this.constructor = d; }
18679
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18680
+ };
18681
+ })();
17406
18682
  /**
17407
18683
  * The options for animating changes to the map control's camera.
17408
18684
  */
17409
18685
  var AnimationOptions = /** @class */ (function (_super) {
17410
- __extends(AnimationOptions, _super);
18686
+ __extends$X(AnimationOptions, _super);
17411
18687
  function AnimationOptions() {
17412
18688
  var _this = _super !== null && _super.apply(this, arguments) || this;
17413
18689
  /**
@@ -17431,11 +18707,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17431
18707
  return AnimationOptions;
17432
18708
  }(Options));
17433
18709
 
18710
+ var __extends$Y = (window && window.__extends) || (function () {
18711
+ var extendStatics = function (d, b) {
18712
+ extendStatics = Object.setPrototypeOf ||
18713
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18714
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
18715
+ return extendStatics(d, b);
18716
+ };
18717
+ return function (d, b) {
18718
+ if (typeof b !== "function" && b !== null)
18719
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18720
+ extendStatics(d, b);
18721
+ function __() { this.constructor = d; }
18722
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18723
+ };
18724
+ })();
17434
18725
  /**
17435
18726
  * Represent the amount of padding in pixels to add to the side of a BoundingBox when setting the camera of a map.
17436
18727
  */
17437
18728
  var Padding = /** @class */ (function (_super) {
17438
- __extends(Padding, _super);
18729
+ __extends$Y(Padding, _super);
17439
18730
  function Padding() {
17440
18731
  var _this = _super !== null && _super.apply(this, arguments) || this;
17441
18732
  /**
@@ -17467,11 +18758,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17467
18758
  return Padding;
17468
18759
  }(Options));
17469
18760
 
18761
+ var __extends$Z = (window && window.__extends) || (function () {
18762
+ var extendStatics = function (d, b) {
18763
+ extendStatics = Object.setPrototypeOf ||
18764
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18765
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
18766
+ return extendStatics(d, b);
18767
+ };
18768
+ return function (d, b) {
18769
+ if (typeof b !== "function" && b !== null)
18770
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18771
+ extendStatics(d, b);
18772
+ function __() { this.constructor = d; }
18773
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18774
+ };
18775
+ })();
18776
+ var __values$g = (window && window.__values) || function(o) {
18777
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
18778
+ if (m) return m.call(o);
18779
+ if (o && typeof o.length === "number") return {
18780
+ next: function () {
18781
+ if (o && i >= o.length) o = void 0;
18782
+ return { value: o && o[i++], done: !o };
18783
+ }
18784
+ };
18785
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
18786
+ };
18787
+ var __read$9 = (window && window.__read) || function (o, n) {
18788
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
18789
+ if (!m) return o;
18790
+ var i = m.call(o), r, ar = [], e;
18791
+ try {
18792
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18793
+ }
18794
+ catch (error) { e = { error: error }; }
18795
+ finally {
18796
+ try {
18797
+ if (r && !r.done && (m = i["return"])) m.call(i);
18798
+ }
18799
+ finally { if (e) throw e.error; }
18800
+ }
18801
+ return ar;
18802
+ };
18803
+ var __spreadArray$3 = (window && window.__spreadArray) || function (to, from) {
18804
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
18805
+ to[j] = from[i];
18806
+ return to;
18807
+ };
17470
18808
  /**
17471
18809
  * The options for setting the bounds of the map control's camera.
17472
18810
  */
17473
18811
  var CameraBoundsOptions = /** @class */ (function (_super) {
17474
- __extends(CameraBoundsOptions, _super);
18812
+ __extends$Z(CameraBoundsOptions, _super);
17475
18813
  function CameraBoundsOptions() {
17476
18814
  var _this = _super !== null && _super.apply(this, arguments) || this;
17477
18815
  /**
@@ -17518,7 +18856,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17518
18856
  valuesList[_i] = arguments[_i];
17519
18857
  }
17520
18858
  try {
17521
- for (var valuesList_1 = __values(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
18859
+ for (var valuesList_1 = __values$g(valuesList), valuesList_1_1 = valuesList_1.next(); !valuesList_1_1.done; valuesList_1_1 = valuesList_1.next()) {
17522
18860
  var value = valuesList_1_1.value;
17523
18861
  if (value && typeof value.padding === "number") {
17524
18862
  value.padding = {
@@ -17537,16 +18875,31 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17537
18875
  }
17538
18876
  finally { if (e_1) throw e_1.error; }
17539
18877
  }
17540
- return _super.prototype.merge.apply(this, __spread(valuesList));
18878
+ return _super.prototype.merge.apply(this, __spreadArray$3([], __read$9(valuesList)));
17541
18879
  };
17542
18880
  return CameraBoundsOptions;
17543
18881
  }(Options));
17544
18882
 
18883
+ var __extends$_ = (window && window.__extends) || (function () {
18884
+ var extendStatics = function (d, b) {
18885
+ extendStatics = Object.setPrototypeOf ||
18886
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18887
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
18888
+ return extendStatics(d, b);
18889
+ };
18890
+ return function (d, b) {
18891
+ if (typeof b !== "function" && b !== null)
18892
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18893
+ extendStatics(d, b);
18894
+ function __() { this.constructor = d; }
18895
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18896
+ };
18897
+ })();
17545
18898
  /**
17546
18899
  * The options for setting the map control's camera.
17547
18900
  */
17548
18901
  var CameraOptions = /** @class */ (function (_super) {
17549
- __extends(CameraOptions, _super);
18902
+ __extends$_(CameraOptions, _super);
17550
18903
  function CameraOptions() {
17551
18904
  var _this = _super !== null && _super.apply(this, arguments) || this;
17552
18905
  /**
@@ -17605,11 +18958,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17605
18958
  return CameraOptions;
17606
18959
  }(Options));
17607
18960
 
18961
+ var __extends$$ = (window && window.__extends) || (function () {
18962
+ var extendStatics = function (d, b) {
18963
+ extendStatics = Object.setPrototypeOf ||
18964
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18965
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
18966
+ return extendStatics(d, b);
18967
+ };
18968
+ return function (d, b) {
18969
+ if (typeof b !== "function" && b !== null)
18970
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18971
+ extendStatics(d, b);
18972
+ function __() { this.constructor = d; }
18973
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18974
+ };
18975
+ })();
17608
18976
  /**
17609
18977
  * The options for a layer of the map.
17610
18978
  */
17611
18979
  var LayerOptions$1 = /** @class */ (function (_super) {
17612
- __extends(LayerOptions, _super);
18980
+ __extends$$(LayerOptions, _super);
17613
18981
  function LayerOptions() {
17614
18982
  var _this = _super !== null && _super.apply(this, arguments) || this;
17615
18983
  /**
@@ -17642,12 +19010,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17642
19010
  return LayerOptions;
17643
19011
  }(Options));
17644
19012
 
19013
+ var __extends$10 = (window && window.__extends) || (function () {
19014
+ var extendStatics = function (d, b) {
19015
+ extendStatics = Object.setPrototypeOf ||
19016
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19017
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19018
+ return extendStatics(d, b);
19019
+ };
19020
+ return function (d, b) {
19021
+ if (typeof b !== "function" && b !== null)
19022
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
19023
+ extendStatics(d, b);
19024
+ function __() { this.constructor = d; }
19025
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19026
+ };
19027
+ })();
17645
19028
  /**
17646
19029
  * The options for a circle layer.
17647
19030
  * @deprecated Use BubbleLayerOptions with atlas.layer.BubbleLayer instead.
17648
19031
  */
17649
19032
  var CircleLayerOptions = /** @class */ (function (_super) {
17650
- __extends(CircleLayerOptions, _super);
19033
+ __extends$10(CircleLayerOptions, _super);
17651
19034
  function CircleLayerOptions() {
17652
19035
  var _this = _super !== null && _super.apply(this, arguments) || this;
17653
19036
  /**
@@ -17679,12 +19062,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17679
19062
  return CircleLayerOptions;
17680
19063
  }(LayerOptions$1));
17681
19064
 
19065
+ var __extends$11 = (window && window.__extends) || (function () {
19066
+ var extendStatics = function (d, b) {
19067
+ extendStatics = Object.setPrototypeOf ||
19068
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19069
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19070
+ return extendStatics(d, b);
19071
+ };
19072
+ return function (d, b) {
19073
+ if (typeof b !== "function" && b !== null)
19074
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
19075
+ extendStatics(d, b);
19076
+ function __() { this.constructor = d; }
19077
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19078
+ };
19079
+ })();
17682
19080
  /**
17683
19081
  * The options for a linestring layer.
17684
19082
  * @deprecated Use LineLayerOptions with atlas.layer.LineLayer instead.
17685
19083
  */
17686
19084
  var LinestringLayerOptions = /** @class */ (function (_super) {
17687
- __extends(LinestringLayerOptions, _super);
19085
+ __extends$11(LinestringLayerOptions, _super);
17688
19086
  function LinestringLayerOptions() {
17689
19087
  var _this = _super !== null && _super.apply(this, arguments) || this;
17690
19088
  /**
@@ -17720,12 +19118,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17720
19118
  return LinestringLayerOptions;
17721
19119
  }(LayerOptions$1));
17722
19120
 
19121
+ var __extends$12 = (window && window.__extends) || (function () {
19122
+ var extendStatics = function (d, b) {
19123
+ extendStatics = Object.setPrototypeOf ||
19124
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19125
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19126
+ return extendStatics(d, b);
19127
+ };
19128
+ return function (d, b) {
19129
+ if (typeof b !== "function" && b !== null)
19130
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
19131
+ extendStatics(d, b);
19132
+ function __() { this.constructor = d; }
19133
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19134
+ };
19135
+ })();
17723
19136
  /**
17724
19137
  * The options for a pin layer.
17725
19138
  * @deprecated Use SymbolLayerOptions with atlas.layer.SymbolLayer instead.
17726
19139
  */
17727
19140
  var PinLayerOptions = /** @class */ (function (_super) {
17728
- __extends(PinLayerOptions, _super);
19141
+ __extends$12(PinLayerOptions, _super);
17729
19142
  function PinLayerOptions() {
17730
19143
  var _this = _super !== null && _super.apply(this, arguments) || this;
17731
19144
  /**
@@ -17775,12 +19188,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17775
19188
  return PinLayerOptions;
17776
19189
  }(LayerOptions$1));
17777
19190
 
19191
+ var __extends$13 = (window && window.__extends) || (function () {
19192
+ var extendStatics = function (d, b) {
19193
+ extendStatics = Object.setPrototypeOf ||
19194
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19195
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19196
+ return extendStatics(d, b);
19197
+ };
19198
+ return function (d, b) {
19199
+ if (typeof b !== "function" && b !== null)
19200
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
19201
+ extendStatics(d, b);
19202
+ function __() { this.constructor = d; }
19203
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19204
+ };
19205
+ })();
17778
19206
  /**
17779
19207
  * The options for a polygon layer.
17780
19208
  * @deprecated Use new PolygonLayerOptions with atlas.layer.PolygonLayer instead.
17781
19209
  */
17782
19210
  var PolygonLayerOptions$1 = /** @class */ (function (_super) {
17783
- __extends(PolygonLayerOptions, _super);
19211
+ __extends$13(PolygonLayerOptions, _super);
17784
19212
  function PolygonLayerOptions() {
17785
19213
  var _this = _super !== null && _super.apply(this, arguments) || this;
17786
19214
  /**
@@ -17803,12 +19231,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17803
19231
  return PolygonLayerOptions;
17804
19232
  }(LayerOptions$1));
17805
19233
 
19234
+ var __extends$14 = (window && window.__extends) || (function () {
19235
+ var extendStatics = function (d, b) {
19236
+ extendStatics = Object.setPrototypeOf ||
19237
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19238
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19239
+ return extendStatics(d, b);
19240
+ };
19241
+ return function (d, b) {
19242
+ if (typeof b !== "function" && b !== null)
19243
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
19244
+ extendStatics(d, b);
19245
+ function __() { this.constructor = d; }
19246
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19247
+ };
19248
+ })();
17806
19249
  /**
17807
19250
  * The options for a raster layer.
17808
19251
  * @deprecated Use TileLayerOptions with atlas.layer.TileLayer instead.
17809
19252
  */
17810
19253
  var RasterLayerOptions = /** @class */ (function (_super) {
17811
- __extends(RasterLayerOptions, _super);
19254
+ __extends$14(RasterLayerOptions, _super);
17812
19255
  function RasterLayerOptions() {
17813
19256
  var _this = _super !== null && _super.apply(this, arguments) || this;
17814
19257
  /**
@@ -17820,11 +19263,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17820
19263
  return RasterLayerOptions;
17821
19264
  }(LayerOptions$1));
17822
19265
 
19266
+ var __extends$15 = (window && window.__extends) || (function () {
19267
+ var extendStatics = function (d, b) {
19268
+ extendStatics = Object.setPrototypeOf ||
19269
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19270
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19271
+ return extendStatics(d, b);
19272
+ };
19273
+ return function (d, b) {
19274
+ if (typeof b !== "function" && b !== null)
19275
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
19276
+ extendStatics(d, b);
19277
+ function __() { this.constructor = d; }
19278
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19279
+ };
19280
+ })();
17823
19281
  /**
17824
19282
  * The options for the map's lighting.
17825
19283
  */
17826
19284
  var LightOptions = /** @class */ (function (_super) {
17827
- __extends(LightOptions, _super);
19285
+ __extends$15(LightOptions, _super);
17828
19286
  function LightOptions() {
17829
19287
  var _this = _super !== null && _super.apply(this, arguments) || this;
17830
19288
  /**
@@ -17864,11 +19322,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17864
19322
  return LightOptions;
17865
19323
  }(Options));
17866
19324
 
19325
+ var __extends$16 = (window && window.__extends) || (function () {
19326
+ var extendStatics = function (d, b) {
19327
+ extendStatics = Object.setPrototypeOf ||
19328
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19329
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19330
+ return extendStatics(d, b);
19331
+ };
19332
+ return function (d, b) {
19333
+ if (typeof b !== "function" && b !== null)
19334
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
19335
+ extendStatics(d, b);
19336
+ function __() { this.constructor = d; }
19337
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19338
+ };
19339
+ })();
19340
+ var __values$h = (window && window.__values) || function(o) {
19341
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
19342
+ if (m) return m.call(o);
19343
+ if (o && typeof o.length === "number") return {
19344
+ next: function () {
19345
+ if (o && i >= o.length) o = void 0;
19346
+ return { value: o && o[i++], done: !o };
19347
+ }
19348
+ };
19349
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
19350
+ };
19351
+ var __read$a = (window && window.__read) || function (o, n) {
19352
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
19353
+ if (!m) return o;
19354
+ var i = m.call(o), r, ar = [], e;
19355
+ try {
19356
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
19357
+ }
19358
+ catch (error) { e = { error: error }; }
19359
+ finally {
19360
+ try {
19361
+ if (r && !r.done && (m = i["return"])) m.call(i);
19362
+ }
19363
+ finally { if (e) throw e.error; }
19364
+ }
19365
+ return ar;
19366
+ };
19367
+ var __spreadArray$4 = (window && window.__spreadArray) || function (to, from) {
19368
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
19369
+ to[j] = from[i];
19370
+ return to;
19371
+ };
17867
19372
  /**
17868
19373
  * The options for the map's style.
17869
19374
  */
17870
19375
  var StyleOptions = /** @class */ (function (_super) {
17871
- __extends(StyleOptions, _super);
19376
+ __extends$16(StyleOptions, _super);
17872
19377
  function StyleOptions() {
17873
19378
  var _this = _super !== null && _super.apply(this, arguments) || this;
17874
19379
  /**
@@ -17900,6 +19405,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17900
19405
  * @default false
17901
19406
  */
17902
19407
  _this.preserveDrawingBuffer = false;
19408
+ /**
19409
+ * If true, the map will try to defer non-essential map layers and show essential layers as early as possible.
19410
+ * This option may only be set when initializing the map.
19411
+ * Default `false`
19412
+ * @default false
19413
+ */
19414
+ _this.progressiveLoading = false;
19415
+ /**
19416
+ * The list of layer groups to be loaded at the initial stage. Passing an empty array will disable the progressive loading.
19417
+ * This option may only be set when initializing the map.
19418
+ * Default `['base']`
19419
+ * @default ['base']
19420
+ */
19421
+ _this.progressiveLoadingInitialLayerGroups = ['base'];
17903
19422
  /**
17904
19423
  * Specifies if multiple copies of the world should be rendered when zoomed out.
17905
19424
  * Default `true`
@@ -17979,7 +19498,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17979
19498
  valueList[_i] = arguments[_i];
17980
19499
  }
17981
19500
  try {
17982
- for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
19501
+ for (var valueList_1 = __values$h(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
17983
19502
  var value = valueList_1_1.value;
17984
19503
  if (value) {
17985
19504
  // Make sure both view and userRegion properties exist. Prefer view's value.
@@ -18004,24 +19523,82 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18004
19523
  finally { if (e_1) throw e_1.error; }
18005
19524
  }
18006
19525
  // Then execute the standard merge behavior.
18007
- return _super.prototype.merge.apply(this, __spread(valueList));
19526
+ return _super.prototype.merge.apply(this, __spreadArray$4([], __read$a(valueList)));
18008
19527
  };
18009
19528
  return StyleOptions;
18010
19529
  }(Options));
18011
19530
 
19531
+ var __extends$17 = (window && window.__extends) || (function () {
19532
+ var extendStatics = function (d, b) {
19533
+ extendStatics = Object.setPrototypeOf ||
19534
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19535
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19536
+ return extendStatics(d, b);
19537
+ };
19538
+ return function (d, b) {
19539
+ if (typeof b !== "function" && b !== null)
19540
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
19541
+ extendStatics(d, b);
19542
+ function __() { this.constructor = d; }
19543
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19544
+ };
19545
+ })();
19546
+ var __assign$7 = (window && window.__assign) || function () {
19547
+ __assign$7 = Object.assign || function(t) {
19548
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
19549
+ s = arguments[i];
19550
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
19551
+ t[p] = s[p];
19552
+ }
19553
+ return t;
19554
+ };
19555
+ return __assign$7.apply(this, arguments);
19556
+ };
19557
+ var __values$i = (window && window.__values) || function(o) {
19558
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
19559
+ if (m) return m.call(o);
19560
+ if (o && typeof o.length === "number") return {
19561
+ next: function () {
19562
+ if (o && i >= o.length) o = void 0;
19563
+ return { value: o && o[i++], done: !o };
19564
+ }
19565
+ };
19566
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
19567
+ };
19568
+ var __read$b = (window && window.__read) || function (o, n) {
19569
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
19570
+ if (!m) return o;
19571
+ var i = m.call(o), r, ar = [], e;
19572
+ try {
19573
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
19574
+ }
19575
+ catch (error) { e = { error: error }; }
19576
+ finally {
19577
+ try {
19578
+ if (r && !r.done && (m = i["return"])) m.call(i);
19579
+ }
19580
+ finally { if (e) throw e.error; }
19581
+ }
19582
+ return ar;
19583
+ };
19584
+ var __spreadArray$5 = (window && window.__spreadArray) || function (to, from) {
19585
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
19586
+ to[j] = from[i];
19587
+ return to;
19588
+ };
18012
19589
  var composeTransformers = function (transformers) { return transformers.length == 0
18013
19590
  ? undefined
18014
19591
  : transformers.slice(1).reduce(function (chained, transform) {
18015
19592
  return function (url, resourceType) {
18016
19593
  var resourceParams = chained(url, resourceType);
18017
- return __assign(__assign({}, resourceParams), transform(resourceParams.url, resourceType));
19594
+ return __assign$7(__assign$7({}, resourceParams), transform(resourceParams.url, resourceType));
18018
19595
  };
18019
19596
  }, transformers[0]); };
18020
19597
  /**
18021
19598
  * Global properties used in all atlas service requests.
18022
19599
  */
18023
19600
  var ServiceOptions = /** @class */ (function (_super) {
18024
- __extends(ServiceOptions, _super);
19601
+ __extends$17(ServiceOptions, _super);
18025
19602
  function ServiceOptions() {
18026
19603
  var _this = _super !== null && _super.apply(this, arguments) || this;
18027
19604
  /**
@@ -18180,7 +19757,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18180
19757
  }
18181
19758
  try {
18182
19759
  // Make sure both camel and dash case properties exist. Prefer the camel case ones.
18183
- for (var valueList_1 = __values(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
19760
+ for (var valueList_1 = __values$i(valueList), valueList_1_1 = valueList_1.next(); !valueList_1_1.done; valueList_1_1 = valueList_1.next()) {
18184
19761
  var value = valueList_1_1.value;
18185
19762
  if (value) {
18186
19763
  // authOptions can also have a subscription key so check for that first.
@@ -18239,10 +19816,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18239
19816
  // won't change default behavior in Options as usually that's what desired
18240
19817
  // instead capture it here and reassign.
18241
19818
  var currentTransforms = this._transformers;
18242
- var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return __spread(flattened, value._transformers || []); }, []) : [];
19819
+ var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return __spreadArray$5(__spreadArray$5([], __read$b(flattened)), __read$b(value._transformers || [])); }, []) : [];
18243
19820
  // Then execute the standard merge behavior.
18244
19821
  // If subscription key auth method isn't being used then the subscription key property should be undefined.
18245
- var merged = _super.prototype.merge.apply(this, __spread(valueList));
19822
+ var merged = _super.prototype.merge.apply(this, __spreadArray$5([], __read$b(valueList)));
18246
19823
  if (merged.authOptions.authType !== exports.AuthenticationType.subscriptionKey) {
18247
19824
  merged["subscription-key"] = merged.subscriptionKey = undefined;
18248
19825
  }
@@ -18252,9 +19829,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18252
19829
  }
18253
19830
  // reassign properties from legacy mapConfiguration to new structure if needed
18254
19831
  if (merged.mapConfiguration && typeof merged.mapConfiguration !== 'string') {
18255
- merged.mapConfiguration = __assign(__assign({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
19832
+ merged.mapConfiguration = __assign$7(__assign$7({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
18256
19833
  }
18257
- this._transformers = __spread(currentTransforms || [], transformersToMerge.filter(function (toMerge) { return !currentTransforms.includes(toMerge); }));
19834
+ this._transformers = __spreadArray$5(__spreadArray$5([], __read$b(currentTransforms || [])), __read$b(transformersToMerge.filter(function (toMerge) { return !currentTransforms.includes(toMerge); })));
18258
19835
  if (this.transformRequest && !this._transformers.includes(this.transformRequest)) {
18259
19836
  this._transformers.push(this.transformRequest);
18260
19837
  }
@@ -18440,6 +20017,74 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18440
20017
  high_contrast_light: "High contrast (Light)"
18441
20018
  };
18442
20019
 
20020
+ var __assign$8 = (window && window.__assign) || function () {
20021
+ __assign$8 = Object.assign || function(t) {
20022
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
20023
+ s = arguments[i];
20024
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20025
+ t[p] = s[p];
20026
+ }
20027
+ return t;
20028
+ };
20029
+ return __assign$8.apply(this, arguments);
20030
+ };
20031
+ var __awaiter$2 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20032
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20033
+ return new (P || (P = Promise))(function (resolve, reject) {
20034
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20035
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20036
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20037
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20038
+ });
20039
+ };
20040
+ var __generator$2 = (window && window.__generator) || function (thisArg, body) {
20041
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
20042
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
20043
+ function verb(n) { return function (v) { return step([n, v]); }; }
20044
+ function step(op) {
20045
+ if (f) throw new TypeError("Generator is already executing.");
20046
+ while (_) try {
20047
+ 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;
20048
+ if (y = 0, t) op = [op[0] & 2, t.value];
20049
+ switch (op[0]) {
20050
+ case 0: case 1: t = op; break;
20051
+ case 4: _.label++; return { value: op[1], done: false };
20052
+ case 5: _.label++; y = op[1]; op = [0]; continue;
20053
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
20054
+ default:
20055
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
20056
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
20057
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
20058
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
20059
+ if (t[2]) _.ops.pop();
20060
+ _.trys.pop(); continue;
20061
+ }
20062
+ op = body.call(thisArg, _);
20063
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
20064
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
20065
+ }
20066
+ };
20067
+ var __read$c = (window && window.__read) || function (o, n) {
20068
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
20069
+ if (!m) return o;
20070
+ var i = m.call(o), r, ar = [], e;
20071
+ try {
20072
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
20073
+ }
20074
+ catch (error) { e = { error: error }; }
20075
+ finally {
20076
+ try {
20077
+ if (r && !r.done && (m = i["return"])) m.call(i);
20078
+ }
20079
+ finally { if (e) throw e.error; }
20080
+ }
20081
+ return ar;
20082
+ };
20083
+ var __spreadArray$6 = (window && window.__spreadArray) || function (to, from) {
20084
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
20085
+ to[j] = from[i];
20086
+ return to;
20087
+ };
18443
20088
  /**
18444
20089
  * @private
18445
20090
  */
@@ -18462,6 +20107,57 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18462
20107
  * Preserve the map configuration that was used before the indoor map configuration was set
18463
20108
  */
18464
20109
  this.preservedPreindoorMapConfiguration = undefined;
20110
+ this._deferLayerGroupVisibilities = function (layerGroupLayers, initLayerGroups) {
20111
+ var validInitLayerGroups = initLayerGroups.filter(function (groupName) { return groupName in layerGroupLayers; });
20112
+ // If the initial layer groups are invalid, skip the progressive loading.
20113
+ if (validInitLayerGroups.length === 0)
20114
+ return;
20115
+ var map = _this.map._getMap();
20116
+ var currentZoomLevel = map.getZoom();
20117
+ // Select the layers to be deferred
20118
+ var deferredLayers = Object.entries(layerGroupLayers).reduce(function (deferred, _a) {
20119
+ var _b = __read$c(_a, 2), groupName = _b[0], layers = _b[1];
20120
+ var isInInitialLayerGroup = validInitLayerGroups.includes(groupName);
20121
+ return __spreadArray$6(__spreadArray$6([], __read$c(deferred)), __read$c(layers.filter(function (layer) {
20122
+ var _a;
20123
+ // Exclude custom layers
20124
+ if (layer.type === 'custom')
20125
+ return false;
20126
+ // Exclude visible layers from initial layer groups
20127
+ if (isInInitialLayerGroup) {
20128
+ if (typeof layer.maxzoom === 'number' && typeof layer.minzoom === 'number') {
20129
+ if (currentZoomLevel <= layer.maxzoom && currentZoomLevel >= layer.minzoom)
20130
+ return false;
20131
+ }
20132
+ else if (typeof layer.minzoom === 'number') {
20133
+ if (currentZoomLevel >= layer.minzoom)
20134
+ return false;
20135
+ }
20136
+ else if (typeof layer.maxzoom === 'number') {
20137
+ if (currentZoomLevel <= layer.maxzoom)
20138
+ return false;
20139
+ }
20140
+ else {
20141
+ return false;
20142
+ }
20143
+ }
20144
+ // Defer visible layers only.
20145
+ return ((_a = layer.layout) === null || _a === void 0 ? void 0 : _a.visibility) !== 'none';
20146
+ })));
20147
+ }, []);
20148
+ // Hide the deferred layers at initial load, therefore we can save the render time.
20149
+ deferredLayers.forEach(function (layer) {
20150
+ layer.layout = layer.layout || {};
20151
+ layer.layout.visibility = 'none';
20152
+ });
20153
+ // Make the deferred layers visible once the map instance is fully loaded
20154
+ _this.map.events.addOnce('load', function () {
20155
+ deferredLayers.forEach(function (layer) {
20156
+ layer.layout.visibility = 'visible';
20157
+ map.setLayoutProperty(layer.id, 'visibility', 'visible');
20158
+ });
20159
+ });
20160
+ };
18465
20161
  this._onStyleData = function () {
18466
20162
  _this._lookUpAsync(_this.map.getStyle()).then(function (style) {
18467
20163
  _this.map.events.invoke("stylechanged", {
@@ -18491,9 +20187,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18491
20187
  || definitions.configurations[0];
18492
20188
  }
18493
20189
  };
18494
- this._lookUpAsync = function (options) { return __awaiter(_this, void 0, void 0, function () {
20190
+ this._lookUpAsync = function (options) { return __awaiter$2(_this, void 0, void 0, function () {
18495
20191
  var definitions, result;
18496
- return __generator(this, function (_a) {
20192
+ return __generator$2(this, function (_a) {
18497
20193
  switch (_a.label) {
18498
20194
  case 0: return [4 /*yield*/, this.definitions()];
18499
20195
  case 1:
@@ -18603,6 +20299,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18603
20299
  path: constants.stylePath + "/" + constants.styleResourcePath + "/" + style.name,
18604
20300
  queryParams: {
18605
20301
  styleVersion: _this.serviceOptions.styleDefinitionsVersion,
20302
+ // thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
20303
+ //language: styleOptions.language
18606
20304
  },
18607
20305
  protocol: "https"
18608
20306
  }).toString(),
@@ -18612,7 +20310,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18612
20310
  else if (typeof this.serviceOptions.mapConfiguration === 'string') {
18613
20311
  newPromise = new HijackablePromise(this._request(this.serviceOptions.domain, constants.styleResourcePath + "/mapconfigurations/metadata/" + this.serviceOptions.mapConfiguration, "StyleDefinitions"
18614
20312
  // reassign properties from legacy mapConfiguration to new structure if needed
18615
- ).then(function (definitions) { return (__assign(__assign({}, definitions), { defaultConfiguration: definitions.defaultConfiguration || definitions['defaultStyle'], configurations: definitions.configurations || definitions['styles'] })); }));
20313
+ ).then(function (definitions) { return (__assign$8(__assign$8({}, definitions), { defaultConfiguration: definitions.defaultConfiguration || definitions['defaultStyle'], configurations: definitions.configurations || definitions['styles'] })); }));
18616
20314
  }
18617
20315
  else {
18618
20316
  newPromise = HijackablePromise.resolve(this.serviceOptions.mapConfiguration);
@@ -18650,11 +20348,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18650
20348
  // should be modified before they are applied to the map.
18651
20349
  var styleOptions = this.map.getStyle();
18652
20350
  var trafficOptions = this.map.getTraffic();
18653
- return __assign(__assign({}, nextStyle), {
20351
+ return __assign$8(__assign$8({}, nextStyle), {
18654
20352
  // force a replacement of language placeholder in the tileset url to avoid resolution to a same cache with placeholders on language change
18655
20353
  sources: Object.entries(nextStyle.sources).reduce(function (newSources, _a) {
18656
- var _b = __read(_a, 2), sourceKey = _b[0], source = _b[1];
18657
- var newSource = __assign({}, source);
20354
+ var _b = __read$c(_a, 2), sourceKey = _b[0], source = _b[1];
20355
+ var newSource = __assign$8({}, source);
18658
20356
  if ('url' in newSource && typeof newSource.url === 'string') {
18659
20357
  if (newSource.url.includes(constants.languagePlaceHolder)) {
18660
20358
  newSource.url = newSource.url.replace(constants.languagePlaceHolder, styleOptions.language);
@@ -18663,8 +20361,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18663
20361
  newSources[sourceKey] = newSource;
18664
20362
  return newSources;
18665
20363
  }, {}), layers: nextStyle.layers.map(function (layer) {
18666
- var _a, _b, _c, _d, _e;
18667
- var nextLayer = __assign({}, layer);
20364
+ var _a, _b, _c, _d, _e, _f;
20365
+ var nextLayer = __assign$8({}, layer);
18668
20366
  var layerGroup = LayerGroupComparator.getLayerGroup(nextLayer);
18669
20367
  if (!layerGroup) {
18670
20368
  return nextLayer;
@@ -18688,12 +20386,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18688
20386
  // 3. Set visibility of labels
18689
20387
  var isLabelLayerGroup = layerGroup === 'labels' || layerGroup === 'labels_places' || layerGroup === 'labels_indoor';
18690
20388
  if (isLabelLayerGroup && nextLayer.type === 'symbol') {
18691
- if (styleOptions.showLabels) {
18692
- nextLayer.layout = (_d = nextLayer.layout) !== null && _d !== void 0 ? _d : {};
20389
+ if (styleOptions.showLabels && ((_d = nextLayer.layout) === null || _d === void 0 ? void 0 : _d.visibility) !== "none") {
20390
+ nextLayer.layout = (_e = nextLayer.layout) !== null && _e !== void 0 ? _e : {};
18693
20391
  nextLayer.layout.visibility = "visible";
18694
20392
  }
18695
20393
  else {
18696
- nextLayer.layout = (_e = nextLayer.layout) !== null && _e !== void 0 ? _e : {};
20394
+ nextLayer.layout = (_f = nextLayer.layout) !== null && _f !== void 0 ? _f : {};
18697
20395
  nextLayer.layout.visibility = "none";
18698
20396
  }
18699
20397
  }
@@ -18736,7 +20434,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18736
20434
  });
18737
20435
  }
18738
20436
  return style;
18739
- }, __assign({}, nextStyle));
20437
+ }, __assign$8({}, nextStyle));
18740
20438
  };
18741
20439
  /**
18742
20440
  * @internal
@@ -18761,13 +20459,23 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18761
20459
  .reduce(function (layerGroupLayers, _a) {
18762
20460
  var _b;
18763
20461
  var nextLayer = _a.nextLayer, layerGroup = _a.layerGroup;
18764
- return (__assign(__assign({}, layerGroupLayers), (_b = {}, _b[layerGroup] = layerGroup in layerGroupLayers ? __spread(layerGroupLayers[layerGroup], [nextLayer]) : [nextLayer], _b)));
20462
+ return (__assign$8(__assign$8({}, layerGroupLayers), (_b = {}, _b[layerGroup] = layerGroup in layerGroupLayers ? __spreadArray$6(__spreadArray$6([], __read$c(layerGroupLayers[layerGroup])), [nextLayer]) : [nextLayer], _b)));
18765
20463
  }, {});
18766
- // 3. copy user layers and sources from previous style into new one
20464
+ // 3. side effect: progressively render map layers to the canvas to shorten the time to the first meaningful render.
20465
+ var shouldProgressiveLoading = (styleOptions.progressiveLoading &&
20466
+ // The feature only effective at the initial load.
20467
+ !_this.map._isLoaded());
20468
+ if (shouldProgressiveLoading) {
20469
+ var initLayerGroups = styleOptions.progressiveLoadingInitialLayerGroups;
20470
+ if (Array.isArray(initLayerGroups) && initLayerGroups.length > 0) {
20471
+ _this._deferLayerGroupVisibilities(layerGroupLayers, initLayerGroups);
20472
+ }
20473
+ }
20474
+ // 4. copy user layers and sources from previous style into new one
18767
20475
  var targetStyleWithUserLayers = _this.injectUserLayersIntoStyle(previousStyle, nextStyle, layerGroupLayers);
18768
- // 4. side effects: sync our control's LayerManager and SourceManager
20476
+ // 5. side effects: sync our control's LayerManager and SourceManager
18769
20477
  var nextFundamentalLayers = Object.entries(layerGroupLayers).map(function (_a) {
18770
- var _b = __read(_a, 2), layerGroupId = _b[0], layers = _b[1];
20478
+ var _b = __read$c(_a, 2), layerGroupId = _b[0], layers = _b[1];
18771
20479
  return _this._buildFundamentalLayerFrom(layers, layerGroupId);
18772
20480
  });
18773
20481
  var layerIndex = _this.map.layers._getUserLayers().reduce(function (layerIndex, userLayer) {
@@ -18809,8 +20517,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18809
20517
  return style.theme.toLowerCase();
18810
20518
  };
18811
20519
  StyleManager.prototype.getThemeAsync = function (styleOptions) {
18812
- return __awaiter(this, void 0, void 0, function () {
18813
- return __generator(this, function (_a) {
20520
+ return __awaiter$2(this, void 0, void 0, function () {
20521
+ return __generator$2(this, function (_a) {
18814
20522
  switch (_a.label) {
18815
20523
  case 0: return [4 /*yield*/, this._lookUpAsync(styleOptions)];
18816
20524
  case 1: return [2 /*return*/, (_a.sent()).theme];
@@ -18903,10 +20611,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18903
20611
  StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
18904
20612
  var _a;
18905
20613
  if (customQueryParams === void 0) { customQueryParams = {}; }
18906
- return __awaiter(this, void 0, void 0, function () {
20614
+ return __awaiter$2(this, void 0, void 0, function () {
18907
20615
  var requestParams, fetchOptions;
18908
20616
  var _b;
18909
- return __generator(this, function (_c) {
20617
+ return __generator$2(this, function (_c) {
18910
20618
  switch (_c.label) {
18911
20619
  case 0:
18912
20620
  requestParams = {
@@ -18914,7 +20622,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18914
20622
  protocol: "https",
18915
20623
  domain: domain,
18916
20624
  path: path,
18917
- queryParams: __assign((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
20625
+ queryParams: __assign$8((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
18918
20626
  }).toString()
18919
20627
  };
18920
20628
  if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
@@ -18951,11 +20659,105 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18951
20659
  */
18952
20660
  var isHMREnabled = function () { return 'ENVIRONMENT' in window && !!window['ENVIRONMENT']['hmr']; };
18953
20661
 
20662
+ var __extends$18 = (window && window.__extends) || (function () {
20663
+ var extendStatics = function (d, b) {
20664
+ extendStatics = Object.setPrototypeOf ||
20665
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20666
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20667
+ return extendStatics(d, b);
20668
+ };
20669
+ return function (d, b) {
20670
+ if (typeof b !== "function" && b !== null)
20671
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
20672
+ extendStatics(d, b);
20673
+ function __() { this.constructor = d; }
20674
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20675
+ };
20676
+ })();
20677
+ var __assign$9 = (window && window.__assign) || function () {
20678
+ __assign$9 = Object.assign || function(t) {
20679
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
20680
+ s = arguments[i];
20681
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20682
+ t[p] = s[p];
20683
+ }
20684
+ return t;
20685
+ };
20686
+ return __assign$9.apply(this, arguments);
20687
+ };
20688
+ var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20689
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20690
+ return new (P || (P = Promise))(function (resolve, reject) {
20691
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20692
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20693
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20694
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20695
+ });
20696
+ };
20697
+ var __generator$3 = (window && window.__generator) || function (thisArg, body) {
20698
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
20699
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
20700
+ function verb(n) { return function (v) { return step([n, v]); }; }
20701
+ function step(op) {
20702
+ if (f) throw new TypeError("Generator is already executing.");
20703
+ while (_) try {
20704
+ 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;
20705
+ if (y = 0, t) op = [op[0] & 2, t.value];
20706
+ switch (op[0]) {
20707
+ case 0: case 1: t = op; break;
20708
+ case 4: _.label++; return { value: op[1], done: false };
20709
+ case 5: _.label++; y = op[1]; op = [0]; continue;
20710
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
20711
+ default:
20712
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
20713
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
20714
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
20715
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
20716
+ if (t[2]) _.ops.pop();
20717
+ _.trys.pop(); continue;
20718
+ }
20719
+ op = body.call(thisArg, _);
20720
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
20721
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
20722
+ }
20723
+ };
20724
+ var __read$d = (window && window.__read) || function (o, n) {
20725
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
20726
+ if (!m) return o;
20727
+ var i = m.call(o), r, ar = [], e;
20728
+ try {
20729
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
20730
+ }
20731
+ catch (error) { e = { error: error }; }
20732
+ finally {
20733
+ try {
20734
+ if (r && !r.done && (m = i["return"])) m.call(i);
20735
+ }
20736
+ finally { if (e) throw e.error; }
20737
+ }
20738
+ return ar;
20739
+ };
20740
+ var __spreadArray$7 = (window && window.__spreadArray) || function (to, from) {
20741
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
20742
+ to[j] = from[i];
20743
+ return to;
20744
+ };
20745
+ var __values$j = (window && window.__values) || function(o) {
20746
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
20747
+ if (m) return m.call(o);
20748
+ if (o && typeof o.length === "number") return {
20749
+ next: function () {
20750
+ if (o && i >= o.length) o = void 0;
20751
+ return { value: o && o[i++], done: !o };
20752
+ }
20753
+ };
20754
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
20755
+ };
18954
20756
  /**
18955
20757
  * The control for a visual and interactive web map.
18956
20758
  */
18957
20759
  var Map$2 = /** @class */ (function (_super) {
18958
- __extends(Map, _super);
20760
+ __extends$18(Map, _super);
18959
20761
  /**
18960
20762
  * Displays a map in the specified container.
18961
20763
  * @param container The id of the element where the map should be displayed.
@@ -19089,7 +20891,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19089
20891
  _this.localizedStringsPromise = Localizer.getStrings(_this.styleOptions.language);
19090
20892
  var stylesInit = _this.styles.initStyleset();
19091
20893
  Promise.all([authManInit, stylesInit]).then(function (_a) {
19092
- var _b = __read(_a, 2), _ = _b[0], definitions = _b[1];
20894
+ var _b = __read$d(_a, 2), _ = _b[0], definitions = _b[1];
19093
20895
  // Check that the map hasn't been removed for any reason.
19094
20896
  // If so no need to finish styling the map.
19095
20897
  if (_this.removed) {
@@ -19119,7 +20921,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19119
20921
  _this.events.invoke("error", errorData);
19120
20922
  });
19121
20923
  // --> Set initial camera state of map
19122
- _this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
20924
+ _this.setCamera(__assign$9(__assign$9({}, options), { type: "jump", duration: 0 }));
19123
20925
  _this.flowDelegate = new FlowServiceDelegate(_this);
19124
20926
  _this.accessibleMapDelegate = new AccessibleMapDelegate(_this);
19125
20927
  _this.userInteractionDelegate = new UserInteractionDelegate(_this, options);
@@ -19272,10 +21074,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19272
21074
  this.map.jumpTo(mapboxCameraOptions, eventData);
19273
21075
  }
19274
21076
  else if (animOptions.type === "ease") {
19275
- this.map.easeTo(__assign(__assign({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
21077
+ this.map.easeTo(__assign$9(__assign$9({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
19276
21078
  }
19277
21079
  else if (animOptions.type === "fly") {
19278
- this.map.flyTo(__assign(__assign({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
21080
+ this.map.flyTo(__assign$9(__assign$9({}, mapboxCameraOptions), mapboxAnimationOptions), eventData);
19279
21081
  }
19280
21082
  };
19281
21083
  /**
@@ -19738,7 +21540,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19738
21540
  urls = layer.getOptions().subdomains || [];
19739
21541
  }
19740
21542
  // Add the tile urls to the layer, but don't update the map yet.
19741
- urls.push.apply(urls, __spread(tileSources));
21543
+ urls.push.apply(urls, __spreadArray$7([], __read$d(tileSources)));
19742
21544
  layer._setOptionsNoUpdate({
19743
21545
  subdomains: urls
19744
21546
  });
@@ -19760,7 +21562,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19760
21562
  Map.prototype.removeLayers = function (layerNames) {
19761
21563
  var e_1, _a;
19762
21564
  try {
19763
- for (var layerNames_1 = __values(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
21565
+ for (var layerNames_1 = __values$j(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
19764
21566
  var layerName = layerNames_1_1.value;
19765
21567
  // Previously calling removeLayers for layers that didn't exist in the map just did nothing.
19766
21568
  // Now, LayerManager will throw an error, so we need to check if the layer exists before calling remove.
@@ -19950,7 +21752,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19950
21752
  var e_2, _a;
19951
21753
  var positions = [];
19952
21754
  try {
19953
- for (var pixels_1 = __values(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
21755
+ for (var pixels_1 = __values$j(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
19954
21756
  var pixel = pixels_1_1.value;
19955
21757
  var lngLat = this.map.unproject(pixel);
19956
21758
  positions.push(new Position(lngLat.lng, lngLat.lat));
@@ -19973,7 +21775,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19973
21775
  var e_3, _a;
19974
21776
  var pixels = [];
19975
21777
  try {
19976
- for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
21778
+ for (var positions_1 = __values$j(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
19977
21779
  var position = positions_1_1.value;
19978
21780
  var point = this.map.project(position);
19979
21781
  pixels.push(new Pixel(point.x, point.y));
@@ -20021,8 +21823,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20021
21823
  */
20022
21824
  Map.prototype._rebuildStyle = function (diff) {
20023
21825
  if (diff === void 0) { diff = true; }
20024
- return __awaiter(this, void 0, void 0, function () {
20025
- return __generator(this, function (_a) {
21826
+ return __awaiter$3(this, void 0, void 0, function () {
21827
+ return __generator$3(this, function (_a) {
20026
21828
  this.styles.setStyle(this.styleOptions, diff);
20027
21829
  this.imageSprite._restoreImages();
20028
21830
  return [2 /*return*/];
@@ -20067,7 +21869,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20067
21869
  // Send the fetch using the transformed parameters.
20068
21870
  return fetch(requestParams.url || url, {
20069
21871
  credentials: requestParams.credentials,
20070
- headers: __assign(__assign({}, headers), requestParams.headers),
21872
+ headers: __assign$9(__assign$9({}, headers), requestParams.headers),
20071
21873
  method: "GET",
20072
21874
  mode: "cors",
20073
21875
  });
@@ -20238,6 +22040,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20238
22040
  return Map;
20239
22041
  }(EventEmitter));
20240
22042
 
22043
+ var __read$e = (window && window.__read) || function (o, n) {
22044
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
22045
+ if (!m) return o;
22046
+ var i = m.call(o), r, ar = [], e;
22047
+ try {
22048
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
22049
+ }
22050
+ catch (error) { e = { error: error }; }
22051
+ finally {
22052
+ try {
22053
+ if (r && !r.done && (m = i["return"])) m.call(i);
22054
+ }
22055
+ finally { if (e) throw e.error; }
22056
+ }
22057
+ return ar;
22058
+ };
22059
+ var __spreadArray$8 = (window && window.__spreadArray) || function (to, from) {
22060
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
22061
+ to[j] = from[i];
22062
+ return to;
22063
+ };
20241
22064
  /** A layout template for a popup. */
20242
22065
  var PopupTemplate = /** @class */ (function () {
20243
22066
  function PopupTemplate() {
@@ -20379,7 +22202,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20379
22202
  lineLength = 50;
20380
22203
  }
20381
22204
  var lines = c.split(/<(tr|div|br|li|h[0-9]|p>)/);
20382
- longestStringLength = Math.max.apply(Math, __spread((lines.map(function (el) { return el.replace(/<[a-zA-Z0-9\s=\/]+>/g, "").length; })))) - 1;
22205
+ longestStringLength = Math.max.apply(Math, __spreadArray$8([], __read$e((lines.map(function (el) { return el.replace(/<[a-zA-Z0-9\s=\/]+>/g, "").length; }))))) - 1;
20383
22206
  var w = Math.ceil(longestStringLength * 3.5);
20384
22207
  if (w < width) {
20385
22208
  width = w;