azure-maps-control 2.3.4 → 2.3.6

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.
@@ -265,7 +265,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
265
265
  return Url;
266
266
  }());
267
267
 
268
- var version = "2.3.4";
268
+ var version = "2.3.6";
269
269
 
270
270
  /**
271
271
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -1184,6 +1184,74 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
1184
1184
  return PitchControl;
1185
1185
  }(ControlBase));
1186
1186
 
1187
+ var __extends$7 = (window && window.__extends) || (function () {
1188
+ var extendStatics = function (d, b) {
1189
+ extendStatics = Object.setPrototypeOf ||
1190
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1191
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
1192
+ return extendStatics(d, b);
1193
+ };
1194
+ return function (d, b) {
1195
+ if (typeof b !== "function" && b !== null)
1196
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1197
+ extendStatics(d, b);
1198
+ function __() { this.constructor = d; }
1199
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1200
+ };
1201
+ })();
1202
+ /**
1203
+ * A control to display a scale bar on the map.
1204
+ */
1205
+ var ScaleControl = /** @class */ (function (_super) {
1206
+ __extends$7(ScaleControl, _super);
1207
+ /**
1208
+ * A control to displays a scale bar relative to the pixel resolution at the center of the map.
1209
+ * @param options Options for defining how the control is rendered and functions.
1210
+ */
1211
+ function ScaleControl(options) {
1212
+ var _this = _super.call(this) || this;
1213
+ _this.map = null;
1214
+ _this.control = new mapboxgl__default.ScaleControl({
1215
+ maxWidth: options === null || options === void 0 ? void 0 : options.maxWidth,
1216
+ unit: options === null || options === void 0 ? void 0 : options.unit
1217
+ });
1218
+ return _this;
1219
+ }
1220
+ /**
1221
+ * Initialization method for the control which is called when added to the map.
1222
+ * @param map The map that the control will be added to.
1223
+ * @param options The ControlOptions for this control.
1224
+ * @return An HTMLElement to be placed on the map for the control.
1225
+ */
1226
+ ScaleControl.prototype.onAdd = function (map, options) {
1227
+ var _a, _b, _c;
1228
+ this.map = map;
1229
+ (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a._getMap()) === null || _b === void 0 ? void 0 : _b.addControl(this.control);
1230
+ var container = this.buildContainer(map, exports.ControlStyle.auto, "Scale Bar");
1231
+ container.appendChild((_c = this.control) === null || _c === void 0 ? void 0 : _c._container);
1232
+ return container;
1233
+ };
1234
+ /**
1235
+ * Method that is called when the control is removed from the map. Should perform any necessary cleanup for the
1236
+ * control.
1237
+ */
1238
+ ScaleControl.prototype.onRemove = function () {
1239
+ var _a, _b;
1240
+ _super.prototype.onRemove.call(this);
1241
+ (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a._getMap()) === null || _b === void 0 ? void 0 : _b.removeControl(this.control);
1242
+ this.map = null;
1243
+ };
1244
+ /**
1245
+ * Set the scale's unit of the distance
1246
+ * @param unit - Unit of the distance (`"imperial"`, `"metric"` or `"nautical"`).
1247
+ */
1248
+ ScaleControl.prototype.setUnit = function (unit) {
1249
+ var _a;
1250
+ (_a = this.control) === null || _a === void 0 ? void 0 : _a.setUnit(unit);
1251
+ };
1252
+ return ScaleControl;
1253
+ }(ControlBase));
1254
+
1187
1255
  /**
1188
1256
  * Removes all key-value entries from the list cache.
1189
1257
  *
@@ -4286,7 +4354,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4286
4354
 
4287
4355
  var merge_1 = merge;
4288
4356
 
4289
- var __extends$7 = (window && window.__extends) || (function () {
4357
+ var __extends$8 = (window && window.__extends) || (function () {
4290
4358
  var extendStatics = function (d, b) {
4291
4359
  extendStatics = Object.setPrototypeOf ||
4292
4360
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -4305,7 +4373,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4305
4373
  * The options for a StyleControl object.
4306
4374
  */
4307
4375
  var StyleControlOptions = /** @class */ (function (_super) {
4308
- __extends$7(StyleControlOptions, _super);
4376
+ __extends$8(StyleControlOptions, _super);
4309
4377
  function StyleControlOptions() {
4310
4378
  var _this = _super !== null && _super.apply(this, arguments) || this;
4311
4379
  /**
@@ -4350,7 +4418,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4350
4418
  return StyleControlOptions;
4351
4419
  }(Options));
4352
4420
 
4353
- var __extends$8 = (window && window.__extends) || (function () {
4421
+ var __extends$9 = (window && window.__extends) || (function () {
4354
4422
  var extendStatics = function (d, b) {
4355
4423
  extendStatics = Object.setPrototypeOf ||
4356
4424
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -4421,7 +4489,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4421
4489
  * A control for changing the style of the map.
4422
4490
  */
4423
4491
  var StyleControl = /** @class */ (function (_super) {
4424
- __extends$8(StyleControl, _super);
4492
+ __extends$9(StyleControl, _super);
4425
4493
  /**
4426
4494
  * Constructs a StyleControl.
4427
4495
  * @param options The options for the control.
@@ -4780,7 +4848,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4780
4848
  return StyleControl;
4781
4849
  }(ControlBase));
4782
4850
 
4783
- var __extends$9 = (window && window.__extends) || (function () {
4851
+ var __extends$a = (window && window.__extends) || (function () {
4784
4852
  var extendStatics = function (d, b) {
4785
4853
  extendStatics = Object.setPrototypeOf ||
4786
4854
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -4799,7 +4867,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4799
4867
  * The options for setting traffic on the map.
4800
4868
  */
4801
4869
  var TrafficOptions = /** @class */ (function (_super) {
4802
- __extends$9(TrafficOptions, _super);
4870
+ __extends$a(TrafficOptions, _super);
4803
4871
  function TrafficOptions() {
4804
4872
  var _this = _super !== null && _super.apply(this, arguments) || this;
4805
4873
  /**
@@ -4824,7 +4892,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4824
4892
  return TrafficOptions;
4825
4893
  }(Options));
4826
4894
 
4827
- var __extends$a = (window && window.__extends) || (function () {
4895
+ var __extends$b = (window && window.__extends) || (function () {
4828
4896
  var extendStatics = function (d, b) {
4829
4897
  extendStatics = Object.setPrototypeOf ||
4830
4898
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -4843,7 +4911,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4843
4911
  * The options for a TrafficControl object.
4844
4912
  */
4845
4913
  var TrafficControlOptions = /** @class */ (function (_super) {
4846
- __extends$a(TrafficControlOptions, _super);
4914
+ __extends$b(TrafficControlOptions, _super);
4847
4915
  function TrafficControlOptions() {
4848
4916
  var _this = _super !== null && _super.apply(this, arguments) || this;
4849
4917
  /**
@@ -4863,7 +4931,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4863
4931
  return TrafficControlOptions;
4864
4932
  }(TrafficOptions));
4865
4933
 
4866
- var __extends$b = (window && window.__extends) || (function () {
4934
+ var __extends$c = (window && window.__extends) || (function () {
4867
4935
  var extendStatics = function (d, b) {
4868
4936
  extendStatics = Object.setPrototypeOf ||
4869
4937
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -4882,7 +4950,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4882
4950
  * A control that toggles traffic data on the map.
4883
4951
  */
4884
4952
  var TrafficControl = /** @class */ (function (_super) {
4885
- __extends$b(TrafficControl, _super);
4953
+ __extends$c(TrafficControl, _super);
4886
4954
  /**
4887
4955
  * Constructs a TrafficControl
4888
4956
  * @param options The options for the control.
@@ -5006,7 +5074,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5006
5074
  return TrafficControl;
5007
5075
  }(ControlBase));
5008
5076
 
5009
- var __extends$c = (window && window.__extends) || (function () {
5077
+ var __extends$d = (window && window.__extends) || (function () {
5010
5078
  var extendStatics = function (d, b) {
5011
5079
  extendStatics = Object.setPrototypeOf ||
5012
5080
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -5036,7 +5104,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5036
5104
  * A control that display traffic legend on the map.
5037
5105
  */
5038
5106
  var TrafficLegendControl = /** @class */ (function (_super) {
5039
- __extends$c(TrafficLegendControl, _super);
5107
+ __extends$d(TrafficLegendControl, _super);
5040
5108
  /**
5041
5109
  * Construct a traffic legend control
5042
5110
  */
@@ -5856,7 +5924,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5856
5924
  return Feature;
5857
5925
  }());
5858
5926
 
5859
- var __extends$d = (window && window.__extends) || (function () {
5927
+ var __extends$e = (window && window.__extends) || (function () {
5860
5928
  var extendStatics = function (d, b) {
5861
5929
  extendStatics = Object.setPrototypeOf ||
5862
5930
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -5875,7 +5943,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
5875
5943
  * Represent a pixel coordinate or offset. Extends an array of [x, y].
5876
5944
  */
5877
5945
  var Pixel = /** @class */ (function (_super) {
5878
- __extends$d(Pixel, _super);
5946
+ __extends$e(Pixel, _super);
5879
5947
  /**
5880
5948
  * Constructs a Pixel object and initializes it with the specified x and y coordinates.
5881
5949
  * @param x The horizontal pixel offset.
@@ -8095,7 +8163,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8095
8163
  return result;
8096
8164
  }
8097
8165
 
8098
- var __extends$e = (window && window.__extends) || (function () {
8166
+ var __extends$f = (window && window.__extends) || (function () {
8099
8167
  var extendStatics = function (d, b) {
8100
8168
  extendStatics = Object.setPrototypeOf ||
8101
8169
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -8115,7 +8183,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8115
8183
  * full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
8116
8184
  */
8117
8185
  var Position = /** @class */ (function (_super) {
8118
- __extends$e(Position, _super);
8186
+ __extends$f(Position, _super);
8119
8187
  /**
8120
8188
  * Constructs a Position.
8121
8189
  * @param longitude The position's longitude.
@@ -8307,7 +8375,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8307
8375
  return Polygon;
8308
8376
  }());
8309
8377
 
8310
- var __extends$f = (window && window.__extends) || (function () {
8378
+ var __extends$g = (window && window.__extends) || (function () {
8311
8379
  var extendStatics = function (d, b) {
8312
8380
  extendStatics = Object.setPrototypeOf ||
8313
8381
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -8337,7 +8405,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8337
8405
  * A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
8338
8406
  */
8339
8407
  var Shape = /** @class */ (function (_super) {
8340
- __extends$f(Shape, _super);
8408
+ __extends$g(Shape, _super);
8341
8409
  function Shape(data, id, properties) {
8342
8410
  var _this = _super.call(this) || this;
8343
8411
  var geometry;
@@ -8633,7 +8701,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8633
8701
  return Shape;
8634
8702
  }(EventEmitter));
8635
8703
 
8636
- var __extends$g = (window && window.__extends) || (function () {
8704
+ var __extends$h = (window && window.__extends) || (function () {
8637
8705
  var extendStatics = function (d, b) {
8638
8706
  extendStatics = Object.setPrototypeOf ||
8639
8707
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -8666,7 +8734,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
8666
8734
  * [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
8667
8735
  */
8668
8736
  var BoundingBox = /** @class */ (function (_super) {
8669
- __extends$g(BoundingBox, _super);
8737
+ __extends$h(BoundingBox, _super);
8670
8738
  function BoundingBox(southwestPositionOrPositions, northeastPosition) {
8671
8739
  var _this = this;
8672
8740
  if (southwestPositionOrPositions && northeastPosition) {
@@ -9383,7 +9451,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9383
9451
  return MultiPolygon;
9384
9452
  }());
9385
9453
 
9386
- var __extends$h = (window && window.__extends) || (function () {
9454
+ var __extends$i = (window && window.__extends) || (function () {
9387
9455
  var extendStatics = function (d, b) {
9388
9456
  extendStatics = Object.setPrototypeOf ||
9389
9457
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -9414,7 +9482,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9414
9482
  * The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
9415
9483
  */
9416
9484
  var MercatorPoint = /** @class */ (function (_super) {
9417
- __extends$h(MercatorPoint, _super);
9485
+ __extends$i(MercatorPoint, _super);
9418
9486
  /**
9419
9487
  * Constructs a MercatorPoint.
9420
9488
  * @param x A points x position in mercator units.
@@ -9913,7 +9981,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9913
9981
  simplify: simplify
9914
9982
  });
9915
9983
 
9916
- var __extends$i = (window && window.__extends) || (function () {
9984
+ var __extends$j = (window && window.__extends) || (function () {
9917
9985
  var extendStatics = function (d, b) {
9918
9986
  extendStatics = Object.setPrototypeOf ||
9919
9987
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -9932,7 +10000,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9932
10000
  * The options for a ZoomControl object.
9933
10001
  */
9934
10002
  var ZoomControlOptions = /** @class */ (function (_super) {
9935
- __extends$i(ZoomControlOptions, _super);
10003
+ __extends$j(ZoomControlOptions, _super);
9936
10004
  function ZoomControlOptions() {
9937
10005
  var _this = _super !== null && _super.apply(this, arguments) || this;
9938
10006
  /**
@@ -9952,7 +10020,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9952
10020
  return ZoomControlOptions;
9953
10021
  }(Options));
9954
10022
 
9955
- var __extends$j = (window && window.__extends) || (function () {
10023
+ var __extends$k = (window && window.__extends) || (function () {
9956
10024
  var extendStatics = function (d, b) {
9957
10025
  extendStatics = Object.setPrototypeOf ||
9958
10026
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -9971,7 +10039,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
9971
10039
  * A control for changing the zoom of the map.
9972
10040
  */
9973
10041
  var ZoomControl = /** @class */ (function (_super) {
9974
- __extends$j(ZoomControl, _super);
10042
+ __extends$k(ZoomControl, _super);
9975
10043
  /**
9976
10044
  * Constructs a ZoomControl.
9977
10045
  * @param options The options for the control.
@@ -10093,6 +10161,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10093
10161
  PitchControl: PitchControl,
10094
10162
  CompassControl: CompassControl,
10095
10163
  ZoomControl: ZoomControl,
10164
+ ScaleControl: ScaleControl,
10096
10165
  StyleControl: StyleControl,
10097
10166
  TrafficControl: TrafficControl,
10098
10167
  TrafficLegendControl: TrafficLegendControl
@@ -10203,7 +10272,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10203
10272
  return AccessibleIndicator;
10204
10273
  }());
10205
10274
 
10206
- var __extends$k = (window && window.__extends) || (function () {
10275
+ var __extends$l = (window && window.__extends) || (function () {
10207
10276
  var extendStatics = function (d, b) {
10208
10277
  extendStatics = Object.setPrototypeOf ||
10209
10278
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -10225,7 +10294,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10225
10294
  * @module Object Definitions
10226
10295
  */
10227
10296
  var DataSourceOptions = /** @class */ (function (_super) {
10228
- __extends$k(DataSourceOptions, _super);
10297
+ __extends$l(DataSourceOptions, _super);
10229
10298
  function DataSourceOptions() {
10230
10299
  var _this = _super !== null && _super.apply(this, arguments) || this;
10231
10300
  /*
@@ -10280,7 +10349,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10280
10349
  return DataSourceOptions;
10281
10350
  }(Options));
10282
10351
 
10283
- var __extends$l = (window && window.__extends) || (function () {
10352
+ var __extends$m = (window && window.__extends) || (function () {
10284
10353
  var extendStatics = function (d, b) {
10285
10354
  extendStatics = Object.setPrototypeOf ||
10286
10355
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -10300,7 +10369,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10300
10369
  * A source must be added to a layer before it is visible on the map.
10301
10370
  */
10302
10371
  var Source = /** @class */ (function (_super) {
10303
- __extends$l(Source, _super);
10372
+ __extends$m(Source, _super);
10304
10373
  function Source(id) {
10305
10374
  var _this = _super.call(this) || this;
10306
10375
  _this.id = id || uuidRandom();
@@ -10339,7 +10408,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10339
10408
  return Source;
10340
10409
  }(EventEmitter));
10341
10410
 
10342
- var __extends$m = (window && window.__extends) || (function () {
10411
+ var __extends$n = (window && window.__extends) || (function () {
10343
10412
  var extendStatics = function (d, b) {
10344
10413
  extendStatics = Object.setPrototypeOf ||
10345
10414
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -10371,7 +10440,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10371
10440
  * The DataSource class may be used with the SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, and HeatMapLayer.
10372
10441
  */
10373
10442
  var DataSource = /** @class */ (function (_super) {
10374
- __extends$m(DataSource, _super);
10443
+ __extends$n(DataSource, _super);
10375
10444
  /**
10376
10445
  * A data source class that makes it easy to manage shapes data that will be displayed on the map.
10377
10446
  * A data source must be added to a layer before it is visible on the map.
@@ -10818,7 +10887,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10818
10887
  return DataSource;
10819
10888
  }(Source));
10820
10889
 
10821
- var __extends$n = (window && window.__extends) || (function () {
10890
+ var __extends$o = (window && window.__extends) || (function () {
10822
10891
  var extendStatics = function (d, b) {
10823
10892
  extendStatics = Object.setPrototypeOf ||
10824
10893
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -10840,7 +10909,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10840
10909
  * @module Object Definitions
10841
10910
  */
10842
10911
  var VectorTileSourceOptions = /** @class */ (function (_super) {
10843
- __extends$n(VectorTileSourceOptions, _super);
10912
+ __extends$o(VectorTileSourceOptions, _super);
10844
10913
  function VectorTileSourceOptions() {
10845
10914
  /*
10846
10915
  * TODO:
@@ -10893,7 +10962,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10893
10962
  return VectorTileSourceOptions;
10894
10963
  }(Options));
10895
10964
 
10896
- var __extends$o = (window && window.__extends) || (function () {
10965
+ var __extends$p = (window && window.__extends) || (function () {
10897
10966
  var extendStatics = function (d, b) {
10898
10967
  extendStatics = Object.setPrototypeOf ||
10899
10968
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -10913,7 +10982,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10913
10982
  * Vector tile sources can be used with; SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer and VectorTileLayer.
10914
10983
  */
10915
10984
  var VectorTileSource = /** @class */ (function (_super) {
10916
- __extends$o(VectorTileSource, _super);
10985
+ __extends$p(VectorTileSource, _super);
10917
10986
  function VectorTileSource(id, options) {
10918
10987
  var _this = _super.call(this, id) || this;
10919
10988
  _this.options = new VectorTileSourceOptions().merge(cloneDeep_1(options));
@@ -10988,7 +11057,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10988
11057
  VectorTileSource: VectorTileSource
10989
11058
  });
10990
11059
 
10991
- var __extends$p = (window && window.__extends) || (function () {
11060
+ var __extends$q = (window && window.__extends) || (function () {
10992
11061
  var extendStatics = function (d, b) {
10993
11062
  extendStatics = Object.setPrototypeOf ||
10994
11063
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11007,7 +11076,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11007
11076
  * Abstract class for other layer classes to extend.
11008
11077
  */
11009
11078
  var Layer = /** @class */ (function (_super) {
11010
- __extends$p(Layer, _super);
11079
+ __extends$q(Layer, _super);
11011
11080
  function Layer(id) {
11012
11081
  var _this =
11013
11082
  // Assign an random id using a UUID if none was specified.
@@ -11114,7 +11183,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11114
11183
  return Layer;
11115
11184
  }(EventEmitter));
11116
11185
 
11117
- var __extends$q = (window && window.__extends) || (function () {
11186
+ var __extends$r = (window && window.__extends) || (function () {
11118
11187
  var extendStatics = function (d, b) {
11119
11188
  extendStatics = Object.setPrototypeOf ||
11120
11189
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11133,7 +11202,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11133
11202
  * A base class which all other layer options inherit from.
11134
11203
  */
11135
11204
  var LayerOptions = /** @class */ (function (_super) {
11136
- __extends$q(LayerOptions, _super);
11205
+ __extends$r(LayerOptions, _super);
11137
11206
  function LayerOptions() {
11138
11207
  var _this = _super !== null && _super.apply(this, arguments) || this;
11139
11208
  /**
@@ -11180,7 +11249,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11180
11249
  return LayerOptions;
11181
11250
  }(Options));
11182
11251
 
11183
- var __extends$r = (window && window.__extends) || (function () {
11252
+ var __extends$s = (window && window.__extends) || (function () {
11184
11253
  var extendStatics = function (d, b) {
11185
11254
  extendStatics = Object.setPrototypeOf ||
11186
11255
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11199,7 +11268,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11199
11268
  * Options used when rendering Point objects in a BubbleLayer.
11200
11269
  */
11201
11270
  var BubbleLayerOptions = /** @class */ (function (_super) {
11202
- __extends$r(BubbleLayerOptions, _super);
11271
+ __extends$s(BubbleLayerOptions, _super);
11203
11272
  function BubbleLayerOptions() {
11204
11273
  var _this = _super !== null && _super.apply(this, arguments) || this;
11205
11274
  /**
@@ -11307,7 +11376,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11307
11376
  return BubbleLayerOptions;
11308
11377
  }(LayerOptions));
11309
11378
 
11310
- var __extends$s = (window && window.__extends) || (function () {
11379
+ var __extends$t = (window && window.__extends) || (function () {
11311
11380
  var extendStatics = function (d, b) {
11312
11381
  extendStatics = Object.setPrototypeOf ||
11313
11382
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11383,7 +11452,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11383
11452
  * Renders Point objects as scalable circles (bubbles).
11384
11453
  */
11385
11454
  var BubbleLayer = /** @class */ (function (_super) {
11386
- __extends$s(BubbleLayer, _super);
11455
+ __extends$t(BubbleLayer, _super);
11387
11456
  /**
11388
11457
  * Constructs a new BubbleLayer.
11389
11458
  * @param source The id or instance of a data source which the layer will render.
@@ -11658,7 +11727,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11658
11727
  return BubbleLayer;
11659
11728
  }(Layer));
11660
11729
 
11661
- var __extends$t = (window && window.__extends) || (function () {
11730
+ var __extends$u = (window && window.__extends) || (function () {
11662
11731
  var extendStatics = function (d, b) {
11663
11732
  extendStatics = Object.setPrototypeOf ||
11664
11733
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11677,7 +11746,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11677
11746
  * Options used when rendering Point objects in a HeatMapLayer.
11678
11747
  */
11679
11748
  var HeatMapLayerOptions = /** @class */ (function (_super) {
11680
- __extends$t(HeatMapLayerOptions, _super);
11749
+ __extends$u(HeatMapLayerOptions, _super);
11681
11750
  function HeatMapLayerOptions() {
11682
11751
  var _this = _super !== null && _super.apply(this, arguments) || this;
11683
11752
  /**
@@ -11744,7 +11813,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11744
11813
  return HeatMapLayerOptions;
11745
11814
  }(LayerOptions));
11746
11815
 
11747
- var __extends$u = (window && window.__extends) || (function () {
11816
+ var __extends$v = (window && window.__extends) || (function () {
11748
11817
  var extendStatics = function (d, b) {
11749
11818
  extendStatics = Object.setPrototypeOf ||
11750
11819
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11763,7 +11832,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11763
11832
  * Represent the density of data using different colors (HeatMap).
11764
11833
  */
11765
11834
  var HeatMapLayer = /** @class */ (function (_super) {
11766
- __extends$u(HeatMapLayer, _super);
11835
+ __extends$v(HeatMapLayer, _super);
11767
11836
  /**
11768
11837
  * Constructs a new HeatMapLayer.
11769
11838
  * @param source The id or instance of a data source which the layer will render.
@@ -11867,7 +11936,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11867
11936
  return HeatMapLayer;
11868
11937
  }(Layer));
11869
11938
 
11870
- var __extends$v = (window && window.__extends) || (function () {
11939
+ var __extends$w = (window && window.__extends) || (function () {
11871
11940
  var extendStatics = function (d, b) {
11872
11941
  extendStatics = Object.setPrototypeOf ||
11873
11942
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11886,7 +11955,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11886
11955
  * Options used when rendering canvas, image, raster tile, and video layers
11887
11956
  */
11888
11957
  var MediaLayerOptions = /** @class */ (function (_super) {
11889
- __extends$v(MediaLayerOptions, _super);
11958
+ __extends$w(MediaLayerOptions, _super);
11890
11959
  function MediaLayerOptions() {
11891
11960
  var _this = _super !== null && _super.apply(this, arguments) || this;
11892
11961
  /**
@@ -11938,7 +12007,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11938
12007
  return MediaLayerOptions;
11939
12008
  }(LayerOptions));
11940
12009
 
11941
- var __extends$w = (window && window.__extends) || (function () {
12010
+ var __extends$x = (window && window.__extends) || (function () {
11942
12011
  var extendStatics = function (d, b) {
11943
12012
  extendStatics = Object.setPrototypeOf ||
11944
12013
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11957,7 +12026,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11957
12026
  * Options used when rendering Point objects in a ImageLayer.
11958
12027
  */
11959
12028
  var ImageLayerOptions = /** @class */ (function (_super) {
11960
- __extends$w(ImageLayerOptions, _super);
12029
+ __extends$x(ImageLayerOptions, _super);
11961
12030
  function ImageLayerOptions() {
11962
12031
  var _this = _super !== null && _super.apply(this, arguments) || this;
11963
12032
  /**
@@ -11987,7 +12056,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11987
12056
  return ImageLayerOptions;
11988
12057
  }(MediaLayerOptions));
11989
12058
 
11990
- var __extends$x = (window && window.__extends) || (function () {
12059
+ var __extends$y = (window && window.__extends) || (function () {
11991
12060
  var extendStatics = function (d, b) {
11992
12061
  extendStatics = Object.setPrototypeOf ||
11993
12062
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12007,7 +12076,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12007
12076
  * @internal
12008
12077
  */
12009
12078
  var SourceBuildingLayer = /** @class */ (function (_super) {
12010
- __extends$x(SourceBuildingLayer, _super);
12079
+ __extends$y(SourceBuildingLayer, _super);
12011
12080
  function SourceBuildingLayer() {
12012
12081
  return _super !== null && _super.apply(this, arguments) || this;
12013
12082
  }
@@ -12022,7 +12091,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12022
12091
  return SourceBuildingLayer;
12023
12092
  }(Layer));
12024
12093
 
12025
- var __extends$y = (window && window.__extends) || (function () {
12094
+ var __extends$z = (window && window.__extends) || (function () {
12026
12095
  var extendStatics = function (d, b) {
12027
12096
  extendStatics = Object.setPrototypeOf ||
12028
12097
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12041,7 +12110,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12041
12110
  * Overlays an image on the map with each corner anchored to a coordinate on the map. Also known as a ground or image overlay.
12042
12111
  */
12043
12112
  var ImageLayer = /** @class */ (function (_super) {
12044
- __extends$y(ImageLayer, _super);
12113
+ __extends$z(ImageLayer, _super);
12045
12114
  /**
12046
12115
  * Constructs a new ImageLayer.
12047
12116
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -12244,7 +12313,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12244
12313
  return ImageLayer;
12245
12314
  }(SourceBuildingLayer));
12246
12315
 
12247
- var __extends$z = (window && window.__extends) || (function () {
12316
+ var __extends$A = (window && window.__extends) || (function () {
12248
12317
  var extendStatics = function (d, b) {
12249
12318
  extendStatics = Object.setPrototypeOf ||
12250
12319
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12264,7 +12333,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12264
12333
  * LineString, MultiLineString, Polygon, and MultiPolygon objects in a line layer.
12265
12334
  */
12266
12335
  var LineLayerOptions = /** @class */ (function (_super) {
12267
- __extends$z(LineLayerOptions, _super);
12336
+ __extends$A(LineLayerOptions, _super);
12268
12337
  function LineLayerOptions() {
12269
12338
  var _this = _super !== null && _super.apply(this, arguments) || this;
12270
12339
  /**
@@ -12364,7 +12433,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12364
12433
  return LineLayerOptions;
12365
12434
  }(LayerOptions));
12366
12435
 
12367
- var __extends$A = (window && window.__extends) || (function () {
12436
+ var __extends$B = (window && window.__extends) || (function () {
12368
12437
  var extendStatics = function (d, b) {
12369
12438
  extendStatics = Object.setPrototypeOf ||
12370
12439
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12395,7 +12464,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12395
12464
  * CirclePolygon, LineString, MultiLineString, Polygon, and MultiPolygon objects.
12396
12465
  */
12397
12466
  var LineLayer = /** @class */ (function (_super) {
12398
- __extends$A(LineLayer, _super);
12467
+ __extends$B(LineLayer, _super);
12399
12468
  /**
12400
12469
  * Constructs a new LineLayer.
12401
12470
  * @param source The id or instance of a data source which the layer will render.
@@ -12486,7 +12555,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12486
12555
  return LineLayer;
12487
12556
  }(Layer));
12488
12557
 
12489
- var __extends$B = (window && window.__extends) || (function () {
12558
+ var __extends$C = (window && window.__extends) || (function () {
12490
12559
  var extendStatics = function (d, b) {
12491
12560
  extendStatics = Object.setPrototypeOf ||
12492
12561
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12505,7 +12574,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12505
12574
  * Options used when rendering `Polygon` and `MultiPolygon` objects in a `PolygonExtrusionLayer`.
12506
12575
  */
12507
12576
  var PolygonExtrusionLayerOptions = /** @class */ (function (_super) {
12508
- __extends$B(PolygonExtrusionLayerOptions, _super);
12577
+ __extends$C(PolygonExtrusionLayerOptions, _super);
12509
12578
  function PolygonExtrusionLayerOptions() {
12510
12579
  var _this = _super !== null && _super.apply(this, arguments) || this;
12511
12580
  /**
@@ -12578,7 +12647,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12578
12647
  return PolygonExtrusionLayerOptions;
12579
12648
  }(LayerOptions));
12580
12649
 
12581
- var __extends$C = (window && window.__extends) || (function () {
12650
+ var __extends$D = (window && window.__extends) || (function () {
12582
12651
  var extendStatics = function (d, b) {
12583
12652
  extendStatics = Object.setPrototypeOf ||
12584
12653
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12608,7 +12677,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12608
12677
  * Renders extruded filled `Polygon` and `MultiPolygon` objects on the map.
12609
12678
  */
12610
12679
  var PolygonExtrusionLayer = /** @class */ (function (_super) {
12611
- __extends$C(PolygonExtrusionLayer, _super);
12680
+ __extends$D(PolygonExtrusionLayer, _super);
12612
12681
  /**
12613
12682
  * Constructs a new PolygonExtrusionLayer.
12614
12683
  * @param source The id or instance of a data source which the layer will render.
@@ -12696,7 +12765,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12696
12765
  return PolygonExtrusionLayer;
12697
12766
  }(Layer));
12698
12767
 
12699
- var __extends$D = (window && window.__extends) || (function () {
12768
+ var __extends$E = (window && window.__extends) || (function () {
12700
12769
  var extendStatics = function (d, b) {
12701
12770
  extendStatics = Object.setPrototypeOf ||
12702
12771
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12747,7 +12816,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12747
12816
  * Options used when rendering Polygon and MultiPolygon objects in a PolygonLayer.
12748
12817
  */
12749
12818
  var PolygonLayerOptions = /** @class */ (function (_super) {
12750
- __extends$D(PolygonLayerOptions, _super);
12819
+ __extends$E(PolygonLayerOptions, _super);
12751
12820
  function PolygonLayerOptions() {
12752
12821
  var _this = _super !== null && _super.apply(this, arguments) || this;
12753
12822
  /**
@@ -12825,7 +12894,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12825
12894
  return PolygonLayerOptions;
12826
12895
  }(LayerOptions));
12827
12896
 
12828
- var __extends$E = (window && window.__extends) || (function () {
12897
+ var __extends$F = (window && window.__extends) || (function () {
12829
12898
  var extendStatics = function (d, b) {
12830
12899
  extendStatics = Object.setPrototypeOf ||
12831
12900
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12844,7 +12913,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12844
12913
  * Renders filled Polygon and MultiPolygon objects on the map.
12845
12914
  */
12846
12915
  var PolygonLayer = /** @class */ (function (_super) {
12847
- __extends$E(PolygonLayer, _super);
12916
+ __extends$F(PolygonLayer, _super);
12848
12917
  /**
12849
12918
  * Constructs a new PolygonLayer.
12850
12919
  * @param source The id or instance of a data source which the layer will render.
@@ -12950,7 +13019,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12950
13019
  return PolygonLayer;
12951
13020
  }(Layer));
12952
13021
 
12953
- var __extends$F = (window && window.__extends) || (function () {
13022
+ var __extends$G = (window && window.__extends) || (function () {
12954
13023
  var extendStatics = function (d, b) {
12955
13024
  extendStatics = Object.setPrototypeOf ||
12956
13025
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12969,7 +13038,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12969
13038
  * Options used to customize the icons in a SymbolLayer
12970
13039
  */
12971
13040
  var IconOptions = /** @class */ (function (_super) {
12972
- __extends$F(IconOptions, _super);
13041
+ __extends$G(IconOptions, _super);
12973
13042
  function IconOptions() {
12974
13043
  var _this = _super !== null && _super.apply(this, arguments) || this;
12975
13044
  /**
@@ -13079,7 +13148,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13079
13148
  return IconOptions;
13080
13149
  }(Options));
13081
13150
 
13082
- var __extends$G = (window && window.__extends) || (function () {
13151
+ var __extends$H = (window && window.__extends) || (function () {
13083
13152
  var extendStatics = function (d, b) {
13084
13153
  extendStatics = Object.setPrototypeOf ||
13085
13154
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13098,7 +13167,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13098
13167
  * Options used to customize the text in a SymbolLayer
13099
13168
  */
13100
13169
  var TextOptions = /** @class */ (function (_super) {
13101
- __extends$G(TextOptions, _super);
13170
+ __extends$H(TextOptions, _super);
13102
13171
  function TextOptions() {
13103
13172
  var _this = _super !== null && _super.apply(this, arguments) || this;
13104
13173
  /**
@@ -13278,7 +13347,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13278
13347
  return TextOptions;
13279
13348
  }(Options));
13280
13349
 
13281
- var __extends$H = (window && window.__extends) || (function () {
13350
+ var __extends$I = (window && window.__extends) || (function () {
13282
13351
  var extendStatics = function (d, b) {
13283
13352
  extendStatics = Object.setPrototypeOf ||
13284
13353
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13297,7 +13366,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13297
13366
  * Options used when rendering geometries in a SymbolLayer.
13298
13367
  */
13299
13368
  var SymbolLayerOptions = /** @class */ (function (_super) {
13300
- __extends$H(SymbolLayerOptions, _super);
13369
+ __extends$I(SymbolLayerOptions, _super);
13301
13370
  function SymbolLayerOptions() {
13302
13371
  var _this = _super !== null && _super.apply(this, arguments) || this;
13303
13372
  /**
@@ -13362,7 +13431,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13362
13431
  return SymbolLayerOptions;
13363
13432
  }(LayerOptions));
13364
13433
 
13365
- var __extends$I = (window && window.__extends) || (function () {
13434
+ var __extends$J = (window && window.__extends) || (function () {
13366
13435
  var extendStatics = function (d, b) {
13367
13436
  extendStatics = Object.setPrototypeOf ||
13368
13437
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13393,7 +13462,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13393
13462
  * Symbols can also be created for line and polygon data as well.
13394
13463
  */
13395
13464
  var SymbolLayer = /** @class */ (function (_super) {
13396
- __extends$I(SymbolLayer, _super);
13465
+ __extends$J(SymbolLayer, _super);
13397
13466
  /**
13398
13467
  * Constructs a new SymbolLayer.
13399
13468
  * @param source The id or instance of a data source which the layer will render.
@@ -13535,7 +13604,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13535
13604
  return SymbolLayer;
13536
13605
  }(Layer));
13537
13606
 
13538
- var __extends$J = (window && window.__extends) || (function () {
13607
+ var __extends$K = (window && window.__extends) || (function () {
13539
13608
  var extendStatics = function (d, b) {
13540
13609
  extendStatics = Object.setPrototypeOf ||
13541
13610
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13554,7 +13623,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13554
13623
  * Options used when rendering raster tiled images in a TileLayer.
13555
13624
  */
13556
13625
  var TileLayerOptions = /** @class */ (function (_super) {
13557
- __extends$J(TileLayerOptions, _super);
13626
+ __extends$K(TileLayerOptions, _super);
13558
13627
  function TileLayerOptions() {
13559
13628
  var _this = _super !== null && _super.apply(this, arguments) || this;
13560
13629
  /**
@@ -13610,7 +13679,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13610
13679
  return TileLayerOptions;
13611
13680
  }(MediaLayerOptions));
13612
13681
 
13613
- var __extends$K = (window && window.__extends) || (function () {
13682
+ var __extends$L = (window && window.__extends) || (function () {
13614
13683
  var extendStatics = function (d, b) {
13615
13684
  extendStatics = Object.setPrototypeOf ||
13616
13685
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13651,7 +13720,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13651
13720
  * Renders raster tiled images on top of the map tiles.
13652
13721
  */
13653
13722
  var TileLayer = /** @class */ (function (_super) {
13654
- __extends$K(TileLayer, _super);
13723
+ __extends$L(TileLayer, _super);
13655
13724
  /**
13656
13725
  * Constructs a new TileLayer.
13657
13726
  * @param options The options for the tile layer.
@@ -13794,7 +13863,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13794
13863
  return TileLayer;
13795
13864
  }(SourceBuildingLayer));
13796
13865
 
13797
- var __extends$L = (window && window.__extends) || (function () {
13866
+ var __extends$M = (window && window.__extends) || (function () {
13798
13867
  var extendStatics = function (d, b) {
13799
13868
  extendStatics = Object.setPrototypeOf ||
13800
13869
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13813,7 +13882,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13813
13882
  * Options used to render graphics in a WebGLLayer.
13814
13883
  */
13815
13884
  var WebGLLayerOptions = /** @class */ (function (_super) {
13816
- __extends$L(WebGLLayerOptions, _super);
13885
+ __extends$M(WebGLLayerOptions, _super);
13817
13886
  function WebGLLayerOptions() {
13818
13887
  var _this = _super !== null && _super.apply(this, arguments) || this;
13819
13888
  /**
@@ -13825,7 +13894,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13825
13894
  return WebGLLayerOptions;
13826
13895
  }(LayerOptions));
13827
13896
 
13828
- var __extends$M = (window && window.__extends) || (function () {
13897
+ var __extends$N = (window && window.__extends) || (function () {
13829
13898
  var extendStatics = function (d, b) {
13830
13899
  extendStatics = Object.setPrototypeOf ||
13831
13900
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13844,7 +13913,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13844
13913
  * Enables custom rendering logic with access to the WebGL context of the map.
13845
13914
  */
13846
13915
  var WebGLLayer = /** @class */ (function (_super) {
13847
- __extends$M(WebGLLayer, _super);
13916
+ __extends$N(WebGLLayer, _super);
13848
13917
  /**
13849
13918
  * Constructs a new WebGLLayer.
13850
13919
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -14074,7 +14143,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14074
14143
 
14075
14144
  var isElement_1 = isElement;
14076
14145
 
14077
- var __extends$N = (window && window.__extends) || (function () {
14146
+ var __extends$O = (window && window.__extends) || (function () {
14078
14147
  var extendStatics = function (d, b) {
14079
14148
  extendStatics = Object.setPrototypeOf ||
14080
14149
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -14093,7 +14162,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14093
14162
  * The options for a popup.
14094
14163
  */
14095
14164
  var PopupOptions = /** @class */ (function (_super) {
14096
- __extends$N(PopupOptions, _super);
14165
+ __extends$O(PopupOptions, _super);
14097
14166
  function PopupOptions() {
14098
14167
  var _this = _super !== null && _super.apply(this, arguments) || this;
14099
14168
  /**
@@ -14162,7 +14231,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14162
14231
  return PopupOptions;
14163
14232
  }(Options));
14164
14233
 
14165
- var __extends$O = (window && window.__extends) || (function () {
14234
+ var __extends$P = (window && window.__extends) || (function () {
14166
14235
  var extendStatics = function (d, b) {
14167
14236
  extendStatics = Object.setPrototypeOf ||
14168
14237
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -14197,7 +14266,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14197
14266
  * An information window anchored at a specified position on a map.
14198
14267
  */
14199
14268
  var Popup = /** @class */ (function (_super) {
14200
- __extends$O(Popup, _super);
14269
+ __extends$P(Popup, _super);
14201
14270
  /**
14202
14271
  * Constructs a Popup object and initializes it with the specified options.
14203
14272
  * @param options The options for the popup.
@@ -14668,7 +14737,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14668
14737
  return Popup;
14669
14738
  }(EventEmitter));
14670
14739
 
14671
- var __extends$P = (window && window.__extends) || (function () {
14740
+ var __extends$Q = (window && window.__extends) || (function () {
14672
14741
  var extendStatics = function (d, b) {
14673
14742
  extendStatics = Object.setPrototypeOf ||
14674
14743
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -14687,7 +14756,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14687
14756
  * Options for rendering an HtmlMarker object
14688
14757
  */
14689
14758
  var HtmlMarkerOptions = /** @class */ (function (_super) {
14690
- __extends$P(HtmlMarkerOptions, _super);
14759
+ __extends$Q(HtmlMarkerOptions, _super);
14691
14760
  function HtmlMarkerOptions() {
14692
14761
  var _this = _super !== null && _super.apply(this, arguments) || this;
14693
14762
  /**
@@ -14765,7 +14834,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14765
14834
  return HtmlMarkerOptions;
14766
14835
  }(Options));
14767
14836
 
14768
- var __extends$Q = (window && window.__extends) || (function () {
14837
+ var __extends$R = (window && window.__extends) || (function () {
14769
14838
  var extendStatics = function (d, b) {
14770
14839
  extendStatics = Object.setPrototypeOf ||
14771
14840
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -14784,7 +14853,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14784
14853
  * This class wraps an HTML element that can be displayed on the map.
14785
14854
  */
14786
14855
  var HtmlMarker = /** @class */ (function (_super) {
14787
- __extends$Q(HtmlMarker, _super);
14856
+ __extends$R(HtmlMarker, _super);
14788
14857
  /**
14789
14858
  * Constructs a new HtmlMarker.
14790
14859
  * @param options The options for the HtmlMarker.
@@ -15509,7 +15578,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15509
15578
  return UserAgent;
15510
15579
  }());
15511
15580
 
15512
- var __extends$R = (window && window.__extends) || (function () {
15581
+ var __extends$S = (window && window.__extends) || (function () {
15513
15582
  var extendStatics = function (d, b) {
15514
15583
  extendStatics = Object.setPrototypeOf ||
15515
15584
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -15575,7 +15644,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15575
15644
  * Options for specifying how the map control should authenticate with the Azure Maps services.
15576
15645
  */
15577
15646
  var AuthenticationOptions = /** @class */ (function (_super) {
15578
- __extends$R(AuthenticationOptions, _super);
15647
+ __extends$S(AuthenticationOptions, _super);
15579
15648
  function AuthenticationOptions() {
15580
15649
  var _this = _super !== null && _super.apply(this, arguments) || this;
15581
15650
  /**
@@ -16176,7 +16245,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16176
16245
  return Media;
16177
16246
  }());
16178
16247
 
16179
- var __extends$S = (window && window.__extends) || (function () {
16248
+ var __extends$T = (window && window.__extends) || (function () {
16180
16249
  var extendStatics = function (d, b) {
16181
16250
  extendStatics = Object.setPrototypeOf ||
16182
16251
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -16195,7 +16264,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16195
16264
  * The options for a CopyrightControl object.
16196
16265
  */
16197
16266
  var CopyrightControlOptions = /** @class */ (function (_super) {
16198
- __extends$S(CopyrightControlOptions, _super);
16267
+ __extends$T(CopyrightControlOptions, _super);
16199
16268
  function CopyrightControlOptions() {
16200
16269
  var _this = _super !== null && _super.apply(this, arguments) || this;
16201
16270
  /**
@@ -16224,7 +16293,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16224
16293
  return CopyrightControlOptions;
16225
16294
  }(Options));
16226
16295
 
16227
- var __extends$T = (window && window.__extends) || (function () {
16296
+ var __extends$U = (window && window.__extends) || (function () {
16228
16297
  var extendStatics = function (d, b) {
16229
16298
  extendStatics = Object.setPrototypeOf ||
16230
16299
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -16243,7 +16312,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16243
16312
  * @private
16244
16313
  */
16245
16314
  var CopyrightControl = /** @class */ (function (_super) {
16246
- __extends$T(CopyrightControl, _super);
16315
+ __extends$U(CopyrightControl, _super);
16247
16316
  function CopyrightControl(options) {
16248
16317
  var _this = _super.call(this) || this;
16249
16318
  _this.textAttribution = function (options) {
@@ -16455,8 +16524,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16455
16524
  var domain = this.map.getServiceOptions().domain;
16456
16525
  var urlOptions = {
16457
16526
  domain: domain,
16458
- path: "search/address/reverse/json",
16459
- queryParams: __assign$4({ "api-version": "1.0", "language": options.style.language, "limit": 1, "query": normalizeLatitude(options.position[1]) + "," + normalizeLongitude(options.position[0]) }, (options.style.view && { view: options.style.view }))
16527
+ path: "reverseGeocode",
16528
+ queryParams: __assign$4({ "api-version": "2023-06-01", "coordinates": normalizeLongitude(options.position[0]) + "," + normalizeLatitude(options.position[1]) }, (options.style.view && { view: options.style.view })),
16529
+ headers: {
16530
+ "Accept-Language": options.style.language
16531
+ }
16460
16532
  };
16461
16533
  return new Url(((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(urlOptions)) || urlOptions).get();
16462
16534
  };
@@ -17657,12 +17729,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17657
17729
  position: cam.center,
17658
17730
  style: style
17659
17731
  }).then(function (r) {
17732
+ var _a, _b, _c;
17660
17733
  var info = {};
17661
- if (r && r.addresses && r.addresses.length > 0) {
17662
- if (r.addresses[0].address) {
17663
- var a = r.addresses[0].address;
17664
- if (a.country) {
17665
- info.country = a.country;
17734
+ if (r && r.features && r.features.length > 0) {
17735
+ if ((_b = (_a = r.features[0]) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.address) {
17736
+ var a = r.features[0].properties.address;
17737
+ if (a.countryRegion) {
17738
+ info.country = a.countryRegion.name;
17666
17739
  MapViewDescriptor._labelCache.cache(info.country, {
17667
17740
  source: [],
17668
17741
  labelType: "country",
@@ -17670,8 +17743,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17670
17743
  minZoom: 0
17671
17744
  }, cam.center, style.language);
17672
17745
  }
17673
- if (a.countrySubdivision) {
17674
- info.state = a.countrySubdivision;
17746
+ if (a.adminDistricts) {
17747
+ info.state = (_c = a.adminDistricts[0]) === null || _c === void 0 ? void 0 : _c.shortName;
17675
17748
  MapViewDescriptor._labelCache.cache(info.state, {
17676
17749
  source: [],
17677
17750
  labelType: "state",
@@ -17679,20 +17752,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17679
17752
  minZoom: 4
17680
17753
  }, cam.center, style.language);
17681
17754
  }
17682
- if (a.municipality) {
17683
- info.city = a.municipality;
17684
- MapViewDescriptor._labelCache.cache(info.state, {
17755
+ if (a.locality) {
17756
+ info.city = a.locality;
17757
+ MapViewDescriptor._labelCache.cache(info.city, {
17685
17758
  source: [],
17686
17759
  labelType: "city",
17687
17760
  radius: 1000,
17688
17761
  minZoom: 10
17689
17762
  }, cam.center, style.language);
17690
17763
  }
17691
- if (a.streetNameAndNumber) {
17692
- info.road = a.streetNameAndNumber;
17693
- }
17694
- else if (a.street) {
17695
- info.road = a.street;
17764
+ if (a.addressLine) {
17765
+ info.road = a.addressLine;
17696
17766
  }
17697
17767
  }
17698
17768
  }
@@ -18007,7 +18077,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18007
18077
  return FlowServiceDelegate;
18008
18078
  }());
18009
18079
 
18010
- var __extends$U = (window && window.__extends) || (function () {
18080
+ var __extends$V = (window && window.__extends) || (function () {
18011
18081
  var extendStatics = function (d, b) {
18012
18082
  extendStatics = Object.setPrototypeOf ||
18013
18083
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -18026,7 +18096,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18026
18096
  * @private
18027
18097
  */
18028
18098
  var Incident = /** @class */ (function (_super) {
18029
- __extends$U(Incident, _super);
18099
+ __extends$V(Incident, _super);
18030
18100
  function Incident(data, point, localizedStrings) {
18031
18101
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
18032
18102
  var _this = this;
@@ -18521,7 +18591,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18521
18591
  return IncidentServiceDelegate;
18522
18592
  }());
18523
18593
 
18524
- var __extends$V = (window && window.__extends) || (function () {
18594
+ var __extends$W = (window && window.__extends) || (function () {
18525
18595
  var extendStatics = function (d, b) {
18526
18596
  extendStatics = Object.setPrototypeOf ||
18527
18597
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -18540,7 +18610,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18540
18610
  * The options for enabling/disabling user interaction with the map.
18541
18611
  */
18542
18612
  var UserInteractionOptions = /** @class */ (function (_super) {
18543
- __extends$V(UserInteractionOptions, _super);
18613
+ __extends$W(UserInteractionOptions, _super);
18544
18614
  function UserInteractionOptions() {
18545
18615
  var _this = _super !== null && _super.apply(this, arguments) || this;
18546
18616
  /**
@@ -25673,7 +25743,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25673
25743
  return ImageSpriteManager;
25674
25744
  }());
25675
25745
 
25676
- var __extends$W = (window && window.__extends) || (function () {
25746
+ var __extends$X = (window && window.__extends) || (function () {
25677
25747
  var extendStatics = function (d, b) {
25678
25748
  extendStatics = Object.setPrototypeOf ||
25679
25749
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -25705,7 +25775,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25705
25775
  * @private
25706
25776
  */
25707
25777
  var FundamentalMapLayer = /** @class */ (function (_super) {
25708
- __extends$W(FundamentalMapLayer, _super);
25778
+ __extends$X(FundamentalMapLayer, _super);
25709
25779
  /**
25710
25780
  * Constructs a base layer used to represent the base, transit, and labels layers.
25711
25781
  * @param mbLayers The stylesheet used to define the style sources and style layers.
@@ -26481,7 +26551,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26481
26551
  return PopupManager;
26482
26552
  }());
26483
26553
 
26484
- var __extends$X = (window && window.__extends) || (function () {
26554
+ var __extends$Y = (window && window.__extends) || (function () {
26485
26555
  var extendStatics = function (d, b) {
26486
26556
  extendStatics = Object.setPrototypeOf ||
26487
26557
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -26512,7 +26582,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26512
26582
  * @private
26513
26583
  */
26514
26584
  var FundamentalMapSource = /** @class */ (function (_super) {
26515
- __extends$X(FundamentalMapSource, _super);
26585
+ __extends$Y(FundamentalMapSource, _super);
26516
26586
  /**
26517
26587
  * Constructs a source from the contents of a layer resource file.
26518
26588
  * @param id The source's id.
@@ -26655,59 +26725,59 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26655
26725
  var features = this.map._getMap().querySourceFeatures(sourceID, { sourceLayer: sourceLayer, filter: filter });
26656
26726
  return this.map.sources._mapFeaturesToShapes(features, true, this.sources.get(sourceID));
26657
26727
  };
26658
- // TODO: wait till the mapbox's bug is fixed
26659
- // /**
26660
- // * Gets the state of a feature
26661
- // * @param shape the ID of the shape
26662
- // * @param source the ID of the source
26663
- // * @param sourceLayer the ID of the layer
26664
- // */
26665
- // public getFeatureState(shape: string | Shape | Feature<Geometry, any>, source: string | Source, sourceLayer?: string): object {
26666
- // let featureID;
26667
- // if (typeof shape === "string") {
26668
- // featureID = shape;
26669
- // } else {
26670
- // featureID = shape instanceof Shape ? shape.getId() : shape.id;
26671
- // }
26672
- // const featureSource = typeof source === "string" ? source : source.getId();
26673
- // return this.map._getMap().getFeatureState({ id: featureID, source: featureSource, sourceLayer: sourceLayer });
26674
- // }
26675
- // /**
26676
- // * Removes the state or a single key value of the state of a feature.
26677
- // * @param shape the ID of the shape
26678
- // * @param source the ID of the source
26679
- // * @param sourceLayer the ID of the layer
26680
- // * @param key the key in the feature state to update
26681
- // */
26682
- // public removeFeatureState(shape: string | Shape | Feature<Geometry, any>, source: string | Source, sourceLayer?: string, key?: string) {
26683
- // let featureID;
26684
- // if (typeof shape === "string") {
26685
- // featureID = shape;
26686
- // } else {
26687
- // featureID = shape instanceof Shape ? shape.getId() : shape.id;
26688
- // }
26689
- // const featureSource = typeof source === "string" ? source : source.getId();
26690
- // // TODO: update the method when the mapbox typing file is updated
26691
- // (this.map._getMap() as any).removeFeatureState({ id: featureID, source: featureSource, sourceLayer: sourceLayer }, key);
26692
- // }
26693
- // /**
26694
- // * Sets the state of the feature by passing in a key value pair object.
26695
- // * @param shape the ID of the shape
26696
- // * @param source the ID of the source
26697
- // * @param sourceLayer the ID of the layer
26698
- // * @param key the key in the feature state to update
26699
- // */
26700
- // public setFeatureState(shape: string | Shape | Feature<Geometry, any>, source: string | Source, state: object, sourceLayer?: string) {
26701
- // let featureID;
26702
- // if (typeof shape === "string") {
26703
- // featureID = shape;
26704
- // } else {
26705
- // featureID = shape instanceof Shape ? shape.getId() : shape.id;
26706
- // }
26707
- // const featureSource = typeof source === "string" ? source : source.getId();
26708
- // // TODO: update the method when the mapbox typing file is updated
26709
- // this.map._getMap().setFeatureState({ id: featureID, source: featureSource, sourceLayer: sourceLayer }, state);
26710
- // }
26728
+ /**
26729
+ * Gets the state of a feature
26730
+ * @param feature the ID of the feature
26731
+ * @param source the ID of the source
26732
+ * @param sourceLayer the ID of the layer
26733
+ */
26734
+ SourceManager.prototype.getFeatureState = function (feature, source, sourceLayer) {
26735
+ var featureId;
26736
+ if (typeof feature === "string") {
26737
+ featureId = feature;
26738
+ }
26739
+ else {
26740
+ featureId = feature instanceof Shape ? feature.getId() : feature.id;
26741
+ }
26742
+ var featureSource = typeof source === "string" ? source : source.getId();
26743
+ return this.map._getMap().getFeatureState({ id: featureId, source: featureSource, sourceLayer: sourceLayer });
26744
+ };
26745
+ /**
26746
+ * Removes the state or a single key value of the state of a feature.
26747
+ * @param feature the ID of the feature
26748
+ * @param source the ID of the source
26749
+ * @param sourceLayer the ID of the layer
26750
+ * @param key the key in the feature state to update
26751
+ */
26752
+ SourceManager.prototype.removeFeatureState = function (feature, source, sourceLayer, key) {
26753
+ var featureId;
26754
+ if (typeof feature === "string") {
26755
+ featureId = feature;
26756
+ }
26757
+ else {
26758
+ featureId = feature instanceof Shape ? feature.getId() : feature.id;
26759
+ }
26760
+ var featureSource = typeof source === "string" ? source : source.getId();
26761
+ this.map._getMap().removeFeatureState({ id: featureId, source: featureSource, sourceLayer: sourceLayer }, key);
26762
+ };
26763
+ /**
26764
+ * Sets the state of the feature by passing in a key value pair object.
26765
+ * @param feature the ID of the feature
26766
+ * @param source the ID of the source
26767
+ * @param sourceLayer the ID of the layer
26768
+ * @param key the key in the feature state to update
26769
+ */
26770
+ SourceManager.prototype.setFeatureState = function (feature, source, state, sourceLayer) {
26771
+ var featureId;
26772
+ if (typeof feature === "string") {
26773
+ featureId = feature;
26774
+ }
26775
+ else {
26776
+ featureId = feature instanceof Shape ? feature.getId() : feature.id;
26777
+ }
26778
+ var featureSource = typeof source === "string" ? source : source.getId();
26779
+ this.map._getMap().setFeatureState({ id: featureId, source: featureSource, sourceLayer: sourceLayer }, state);
26780
+ };
26711
26781
  /**
26712
26782
  * @internal
26713
26783
  */
@@ -26908,7 +26978,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26908
26978
  return SourceManager;
26909
26979
  }());
26910
26980
 
26911
- var __extends$Y = (window && window.__extends) || (function () {
26981
+ var __extends$Z = (window && window.__extends) || (function () {
26912
26982
  var extendStatics = function (d, b) {
26913
26983
  extendStatics = Object.setPrototypeOf ||
26914
26984
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -26927,7 +26997,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26927
26997
  * The options for animating changes to the map control's camera.
26928
26998
  */
26929
26999
  var AnimationOptions = /** @class */ (function (_super) {
26930
- __extends$Y(AnimationOptions, _super);
27000
+ __extends$Z(AnimationOptions, _super);
26931
27001
  function AnimationOptions() {
26932
27002
  var _this = _super !== null && _super.apply(this, arguments) || this;
26933
27003
  /**
@@ -26951,7 +27021,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26951
27021
  return AnimationOptions;
26952
27022
  }(Options));
26953
27023
 
26954
- var __extends$Z = (window && window.__extends) || (function () {
27024
+ var __extends$_ = (window && window.__extends) || (function () {
26955
27025
  var extendStatics = function (d, b) {
26956
27026
  extendStatics = Object.setPrototypeOf ||
26957
27027
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -26970,7 +27040,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26970
27040
  * Represent the amount of padding in pixels to add to the side of a BoundingBox when setting the camera of a map.
26971
27041
  */
26972
27042
  var Padding = /** @class */ (function (_super) {
26973
- __extends$Z(Padding, _super);
27043
+ __extends$_(Padding, _super);
26974
27044
  function Padding() {
26975
27045
  var _this = _super !== null && _super.apply(this, arguments) || this;
26976
27046
  /**
@@ -27002,7 +27072,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27002
27072
  return Padding;
27003
27073
  }(Options));
27004
27074
 
27005
- var __extends$_ = (window && window.__extends) || (function () {
27075
+ var __extends$$ = (window && window.__extends) || (function () {
27006
27076
  var extendStatics = function (d, b) {
27007
27077
  extendStatics = Object.setPrototypeOf ||
27008
27078
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27053,7 +27123,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27053
27123
  * The options for setting the bounds of the map control's camera.
27054
27124
  */
27055
27125
  var CameraBoundsOptions = /** @class */ (function (_super) {
27056
- __extends$_(CameraBoundsOptions, _super);
27126
+ __extends$$(CameraBoundsOptions, _super);
27057
27127
  function CameraBoundsOptions() {
27058
27128
  var _this = _super !== null && _super.apply(this, arguments) || this;
27059
27129
  /**
@@ -27124,7 +27194,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27124
27194
  return CameraBoundsOptions;
27125
27195
  }(Options));
27126
27196
 
27127
- var __extends$$ = (window && window.__extends) || (function () {
27197
+ var __extends$10 = (window && window.__extends) || (function () {
27128
27198
  var extendStatics = function (d, b) {
27129
27199
  extendStatics = Object.setPrototypeOf ||
27130
27200
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27143,7 +27213,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27143
27213
  * The options for setting the map control's camera.
27144
27214
  */
27145
27215
  var CameraOptions = /** @class */ (function (_super) {
27146
- __extends$$(CameraOptions, _super);
27216
+ __extends$10(CameraOptions, _super);
27147
27217
  function CameraOptions() {
27148
27218
  var _this = _super !== null && _super.apply(this, arguments) || this;
27149
27219
  /**
@@ -27202,7 +27272,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27202
27272
  return CameraOptions;
27203
27273
  }(Options));
27204
27274
 
27205
- var __extends$10 = (window && window.__extends) || (function () {
27275
+ var __extends$11 = (window && window.__extends) || (function () {
27206
27276
  var extendStatics = function (d, b) {
27207
27277
  extendStatics = Object.setPrototypeOf ||
27208
27278
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27221,7 +27291,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27221
27291
  * The options for a layer of the map.
27222
27292
  */
27223
27293
  var LayerOptions$1 = /** @class */ (function (_super) {
27224
- __extends$10(LayerOptions, _super);
27294
+ __extends$11(LayerOptions, _super);
27225
27295
  function LayerOptions() {
27226
27296
  var _this = _super !== null && _super.apply(this, arguments) || this;
27227
27297
  /**
@@ -27254,7 +27324,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27254
27324
  return LayerOptions;
27255
27325
  }(Options));
27256
27326
 
27257
- var __extends$11 = (window && window.__extends) || (function () {
27327
+ var __extends$12 = (window && window.__extends) || (function () {
27258
27328
  var extendStatics = function (d, b) {
27259
27329
  extendStatics = Object.setPrototypeOf ||
27260
27330
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27274,7 +27344,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27274
27344
  * @deprecated Use BubbleLayerOptions with atlas.layer.BubbleLayer instead.
27275
27345
  */
27276
27346
  var CircleLayerOptions = /** @class */ (function (_super) {
27277
- __extends$11(CircleLayerOptions, _super);
27347
+ __extends$12(CircleLayerOptions, _super);
27278
27348
  function CircleLayerOptions() {
27279
27349
  var _this = _super !== null && _super.apply(this, arguments) || this;
27280
27350
  /**
@@ -27306,7 +27376,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27306
27376
  return CircleLayerOptions;
27307
27377
  }(LayerOptions$1));
27308
27378
 
27309
- var __extends$12 = (window && window.__extends) || (function () {
27379
+ var __extends$13 = (window && window.__extends) || (function () {
27310
27380
  var extendStatics = function (d, b) {
27311
27381
  extendStatics = Object.setPrototypeOf ||
27312
27382
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27326,7 +27396,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27326
27396
  * @deprecated Use LineLayerOptions with atlas.layer.LineLayer instead.
27327
27397
  */
27328
27398
  var LinestringLayerOptions = /** @class */ (function (_super) {
27329
- __extends$12(LinestringLayerOptions, _super);
27399
+ __extends$13(LinestringLayerOptions, _super);
27330
27400
  function LinestringLayerOptions() {
27331
27401
  var _this = _super !== null && _super.apply(this, arguments) || this;
27332
27402
  /**
@@ -27362,7 +27432,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27362
27432
  return LinestringLayerOptions;
27363
27433
  }(LayerOptions$1));
27364
27434
 
27365
- var __extends$13 = (window && window.__extends) || (function () {
27435
+ var __extends$14 = (window && window.__extends) || (function () {
27366
27436
  var extendStatics = function (d, b) {
27367
27437
  extendStatics = Object.setPrototypeOf ||
27368
27438
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27382,7 +27452,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27382
27452
  * @deprecated Use SymbolLayerOptions with atlas.layer.SymbolLayer instead.
27383
27453
  */
27384
27454
  var PinLayerOptions = /** @class */ (function (_super) {
27385
- __extends$13(PinLayerOptions, _super);
27455
+ __extends$14(PinLayerOptions, _super);
27386
27456
  function PinLayerOptions() {
27387
27457
  var _this = _super !== null && _super.apply(this, arguments) || this;
27388
27458
  /**
@@ -27432,7 +27502,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27432
27502
  return PinLayerOptions;
27433
27503
  }(LayerOptions$1));
27434
27504
 
27435
- var __extends$14 = (window && window.__extends) || (function () {
27505
+ var __extends$15 = (window && window.__extends) || (function () {
27436
27506
  var extendStatics = function (d, b) {
27437
27507
  extendStatics = Object.setPrototypeOf ||
27438
27508
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27452,7 +27522,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27452
27522
  * @deprecated Use new PolygonLayerOptions with atlas.layer.PolygonLayer instead.
27453
27523
  */
27454
27524
  var PolygonLayerOptions$1 = /** @class */ (function (_super) {
27455
- __extends$14(PolygonLayerOptions, _super);
27525
+ __extends$15(PolygonLayerOptions, _super);
27456
27526
  function PolygonLayerOptions() {
27457
27527
  var _this = _super !== null && _super.apply(this, arguments) || this;
27458
27528
  /**
@@ -27475,7 +27545,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27475
27545
  return PolygonLayerOptions;
27476
27546
  }(LayerOptions$1));
27477
27547
 
27478
- var __extends$15 = (window && window.__extends) || (function () {
27548
+ var __extends$16 = (window && window.__extends) || (function () {
27479
27549
  var extendStatics = function (d, b) {
27480
27550
  extendStatics = Object.setPrototypeOf ||
27481
27551
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27495,7 +27565,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27495
27565
  * @deprecated Use TileLayerOptions with atlas.layer.TileLayer instead.
27496
27566
  */
27497
27567
  var RasterLayerOptions = /** @class */ (function (_super) {
27498
- __extends$15(RasterLayerOptions, _super);
27568
+ __extends$16(RasterLayerOptions, _super);
27499
27569
  function RasterLayerOptions() {
27500
27570
  var _this = _super !== null && _super.apply(this, arguments) || this;
27501
27571
  /**
@@ -27507,7 +27577,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27507
27577
  return RasterLayerOptions;
27508
27578
  }(LayerOptions$1));
27509
27579
 
27510
- var __extends$16 = (window && window.__extends) || (function () {
27580
+ var __extends$17 = (window && window.__extends) || (function () {
27511
27581
  var extendStatics = function (d, b) {
27512
27582
  extendStatics = Object.setPrototypeOf ||
27513
27583
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27526,7 +27596,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27526
27596
  * The options for the map's lighting.
27527
27597
  */
27528
27598
  var LightOptions = /** @class */ (function (_super) {
27529
- __extends$16(LightOptions, _super);
27599
+ __extends$17(LightOptions, _super);
27530
27600
  function LightOptions() {
27531
27601
  var _this = _super !== null && _super.apply(this, arguments) || this;
27532
27602
  /**
@@ -27566,7 +27636,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27566
27636
  return LightOptions;
27567
27637
  }(Options));
27568
27638
 
27569
- var __extends$17 = (window && window.__extends) || (function () {
27639
+ var __extends$18 = (window && window.__extends) || (function () {
27570
27640
  var extendStatics = function (d, b) {
27571
27641
  extendStatics = Object.setPrototypeOf ||
27572
27642
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27617,7 +27687,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27617
27687
  * The options for the map's style.
27618
27688
  */
27619
27689
  var StyleOptions = /** @class */ (function (_super) {
27620
- __extends$17(StyleOptions, _super);
27690
+ __extends$18(StyleOptions, _super);
27621
27691
  function StyleOptions() {
27622
27692
  var _this = _super !== null && _super.apply(this, arguments) || this;
27623
27693
  /**
@@ -27779,7 +27849,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27779
27849
  return StyleOptions;
27780
27850
  }(Options));
27781
27851
 
27782
- var __extends$18 = (window && window.__extends) || (function () {
27852
+ var __extends$19 = (window && window.__extends) || (function () {
27783
27853
  var extendStatics = function (d, b) {
27784
27854
  extendStatics = Object.setPrototypeOf ||
27785
27855
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27849,7 +27919,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27849
27919
  * Global properties used in all atlas service requests.
27850
27920
  */
27851
27921
  var ServiceOptions = /** @class */ (function (_super) {
27852
- __extends$18(ServiceOptions, _super);
27922
+ __extends$19(ServiceOptions, _super);
27853
27923
  function ServiceOptions() {
27854
27924
  var _this = _super !== null && _super.apply(this, arguments) || this;
27855
27925
  /**
@@ -27907,8 +27977,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27907
27977
  */
27908
27978
  _this.styleSet = undefined;
27909
27979
  /**
27910
- * Enable accessibility
27911
- * default: true
27980
+ * Enable the accessibility feature to provide screen reader support for users who have difficulty visualizing the web application.
27981
+ * This property is set to true by default.
27912
27982
  * @default true
27913
27983
  */
27914
27984
  _this.enableAccessibility = true;
@@ -28689,14 +28759,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28689
28759
  return !previousStyle
28690
28760
  ? nextStyle
28691
28761
  : this.map.layers._getUserLayers().reduce(function (style, userLayer) {
28762
+ var _a, _b;
28692
28763
  if (userLayer.layer instanceof WebGLLayer) {
28693
28764
  // mapbox custom layers cannot be serialized and preserved,
28694
28765
  // return to continue to the next user layer.
28695
28766
  return style;
28696
28767
  }
28697
- var before = layerGroupLayers[userLayer.before] && layerGroupLayers[userLayer.before].length > 0
28698
- ? layerGroupLayers[userLayer.before][0]
28699
- : undefined;
28768
+ var beforeLayerId = ((_b = (_a = layerGroupLayers === null || layerGroupLayers === void 0 ? void 0 : layerGroupLayers[userLayer.before]) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.id) || userLayer.before;
28700
28769
  var layer = previousStyle.layers.find(function (layer) { return layer.id === userLayer.layer.getId(); });
28701
28770
  // when setStyle diff attempt is unsuccesful, _load will be called on the style that may have already injected user layers -> clean it up
28702
28771
  var existingLayerIdx = nextStyle.layers.findIndex(function (layer) { return layer.id === userLayer.layer.getId(); });
@@ -28707,7 +28776,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28707
28776
  var sourcesToCopy = new Set(Array.from(userLayer.layer._getSourceIds())
28708
28777
  .map(function (sourceId) { return previousStyle.sources[sourceId] ? { source: previousStyle.sources[sourceId], id: sourceId } : undefined; })
28709
28778
  .filter(function (source) { return source !== undefined; }));
28710
- var insertIdx = before ? style.layers.findIndex(function (layer) { return layer.id === before.id; }) : -1;
28779
+ var insertIdx = beforeLayerId ? style.layers.findIndex(function (layer) { return layer.id === beforeLayerId; }) : -1;
28711
28780
  if (insertIdx > -1) {
28712
28781
  style.layers.splice(insertIdx, 0, layer);
28713
28782
  }
@@ -29100,7 +29169,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29100
29169
  return AccessibleIndicatorManager;
29101
29170
  }());
29102
29171
 
29103
- var __extends$19 = (window && window.__extends) || (function () {
29172
+ var __extends$1a = (window && window.__extends) || (function () {
29104
29173
  var extendStatics = function (d, b) {
29105
29174
  extendStatics = Object.setPrototypeOf ||
29106
29175
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -29198,7 +29267,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29198
29267
  * The control for a visual and interactive web map.
29199
29268
  */
29200
29269
  var Map$2 = /** @class */ (function (_super) {
29201
- __extends$19(Map, _super);
29270
+ __extends$1a(Map, _super);
29202
29271
  /**
29203
29272
  * Displays a map in the specified container.
29204
29273
  * @param container The id of the element where the map should be displayed.