azure-maps-control 3.2.1 → 3.4.0

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.
@@ -51655,7 +51655,7 @@ uniform ${precision} ${type} u_${name};
51655
51655
  return Options;
51656
51656
  }());
51657
51657
 
51658
- var __extends$1g = (window && window.__extends) || (function () {
51658
+ var __extends$1i = (window && window.__extends) || (function () {
51659
51659
  var extendStatics = function (d, b) {
51660
51660
  extendStatics = Object.setPrototypeOf ||
51661
51661
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -51690,7 +51690,7 @@ uniform ${precision} ${type} u_${name};
51690
51690
  * @private
51691
51691
  */
51692
51692
  var UrlOptions = /** @class */ (function (_super) {
51693
- __extends$1g(UrlOptions, _super);
51693
+ __extends$1i(UrlOptions, _super);
51694
51694
  function UrlOptions() {
51695
51695
  var _this = _super !== null && _super.apply(this, arguments) || this;
51696
51696
  _this.domain = undefined;
@@ -52217,7 +52217,7 @@ uniform ${precision} ${type} u_${name};
52217
52217
  return UserAgent;
52218
52218
  }());
52219
52219
 
52220
- var version = "3.2.1";
52220
+ var version = "3.4.0";
52221
52221
 
52222
52222
  /**
52223
52223
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -52249,7 +52249,7 @@ uniform ${precision} ${type} u_${name};
52249
52249
  return Version;
52250
52250
  }());
52251
52251
 
52252
- var __extends$1f = (window && window.__extends) || (function () {
52252
+ var __extends$1h = (window && window.__extends) || (function () {
52253
52253
  var extendStatics = function (d, b) {
52254
52254
  extendStatics = Object.setPrototypeOf ||
52255
52255
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -52323,7 +52323,7 @@ uniform ${precision} ${type} u_${name};
52323
52323
  * Options for specifying how the map control should authenticate with the Azure Maps services.
52324
52324
  */
52325
52325
  var AuthenticationOptions = /** @class */ (function (_super) {
52326
- __extends$1f(AuthenticationOptions, _super);
52326
+ __extends$1h(AuthenticationOptions, _super);
52327
52327
  function AuthenticationOptions() {
52328
52328
  var _this = _super !== null && _super.apply(this, arguments) || this;
52329
52329
  /**
@@ -52939,6 +52939,21 @@ uniform ${precision} ${type} u_${name};
52939
52939
  function clearPrewarmedResources() {
52940
52940
  maplibregl.clearPrewarmedResources();
52941
52941
  }
52942
+ /**
52943
+ * Adds a custom load resource function that will be called when using a URL that starts with a custom url schema.
52944
+ * @param customProtocol - the protocol to hook, for example 'custom'
52945
+ * @param loadFn - the function to use when trying to fetch a tile specified by the customProtocol
52946
+ */
52947
+ function addProtocol(customProtocol, loadFn) {
52948
+ maplibregl.addProtocol(customProtocol, loadFn);
52949
+ }
52950
+ /**
52951
+ * Removes a previously added protocol in the main thread.
52952
+ * @param customProtocol - the custom protocol to remove registration for
52953
+ */
52954
+ function removeProtocol(customProtocol) {
52955
+ maplibregl.removeProtocol(customProtocol);
52956
+ }
52942
52957
  /**
52943
52958
  * Returns if authentication options are set.
52944
52959
  * @internal
@@ -53164,7 +53179,7 @@ uniform ${precision} ${type} u_${name};
53164
53179
  eventTarget.addEventListener("keydown", dismissTooltip);
53165
53180
  };
53166
53181
 
53167
- var __extends$1e = (window && window.__extends) || (function () {
53182
+ var __extends$1g = (window && window.__extends) || (function () {
53168
53183
  var extendStatics = function (d, b) {
53169
53184
  extendStatics = Object.setPrototypeOf ||
53170
53185
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53214,7 +53229,7 @@ uniform ${precision} ${type} u_${name};
53214
53229
  * The options for adding a control to the map.
53215
53230
  */
53216
53231
  var ControlOptions = /** @class */ (function (_super) {
53217
- __extends$1e(ControlOptions, _super);
53232
+ __extends$1g(ControlOptions, _super);
53218
53233
  function ControlOptions() {
53219
53234
  var _this = _super !== null && _super.apply(this, arguments) || this;
53220
53235
  /**
@@ -53358,7 +53373,7 @@ uniform ${precision} ${type} u_${name};
53358
53373
  EventEmitter: EventEmitter
53359
53374
  });
53360
53375
 
53361
- var __extends$1d = (window && window.__extends) || (function () {
53376
+ var __extends$1f = (window && window.__extends) || (function () {
53362
53377
  var extendStatics = function (d, b) {
53363
53378
  extendStatics = Object.setPrototypeOf ||
53364
53379
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53378,7 +53393,7 @@ uniform ${precision} ${type} u_${name};
53378
53393
  * Implements control interface and provides support for automatic styling based on the map style.
53379
53394
  */
53380
53395
  var ControlBase = /** @class */ (function (_super) {
53381
- __extends$1d(ControlBase, _super);
53396
+ __extends$1f(ControlBase, _super);
53382
53397
  function ControlBase() {
53383
53398
  var _this = _super !== null && _super.apply(this, arguments) || this;
53384
53399
  /**
@@ -53480,7 +53495,7 @@ uniform ${precision} ${type} u_${name};
53480
53495
  return ControlBase;
53481
53496
  }(EventEmitter));
53482
53497
 
53483
- var __extends$1c = (window && window.__extends) || (function () {
53498
+ var __extends$1e = (window && window.__extends) || (function () {
53484
53499
  var extendStatics = function (d, b) {
53485
53500
  extendStatics = Object.setPrototypeOf ||
53486
53501
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53499,7 +53514,7 @@ uniform ${precision} ${type} u_${name};
53499
53514
  * The options for a CompassControl object.
53500
53515
  */
53501
53516
  var CompassControlOptions = /** @class */ (function (_super) {
53502
- __extends$1c(CompassControlOptions, _super);
53517
+ __extends$1e(CompassControlOptions, _super);
53503
53518
  function CompassControlOptions() {
53504
53519
  var _this = _super !== null && _super.apply(this, arguments) || this;
53505
53520
  /**
@@ -53524,7 +53539,7 @@ uniform ${precision} ${type} u_${name};
53524
53539
  return CompassControlOptions;
53525
53540
  }(Options));
53526
53541
 
53527
- var __extends$1b = (window && window.__extends) || (function () {
53542
+ var __extends$1d = (window && window.__extends) || (function () {
53528
53543
  var extendStatics = function (d, b) {
53529
53544
  extendStatics = Object.setPrototypeOf ||
53530
53545
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53543,7 +53558,7 @@ uniform ${precision} ${type} u_${name};
53543
53558
  * A control for changing the rotation of the map.
53544
53559
  */
53545
53560
  var CompassControl = /** @class */ (function (_super) {
53546
- __extends$1b(CompassControl, _super);
53561
+ __extends$1d(CompassControl, _super);
53547
53562
  /**
53548
53563
  * Constructs a CompassControl.
53549
53564
  * @param options The options for the control.
@@ -53728,7 +53743,7 @@ uniform ${precision} ${type} u_${name};
53728
53743
  return CompassControl;
53729
53744
  }(ControlBase));
53730
53745
 
53731
- var __extends$1a = (window && window.__extends) || (function () {
53746
+ var __extends$1c = (window && window.__extends) || (function () {
53732
53747
  var extendStatics = function (d, b) {
53733
53748
  extendStatics = Object.setPrototypeOf ||
53734
53749
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53747,7 +53762,7 @@ uniform ${precision} ${type} u_${name};
53747
53762
  * The options for a PitchControl object.
53748
53763
  */
53749
53764
  var PitchControlOptions = /** @class */ (function (_super) {
53750
- __extends$1a(PitchControlOptions, _super);
53765
+ __extends$1c(PitchControlOptions, _super);
53751
53766
  function PitchControlOptions() {
53752
53767
  var _this = _super !== null && _super.apply(this, arguments) || this;
53753
53768
  /**
@@ -53772,7 +53787,7 @@ uniform ${precision} ${type} u_${name};
53772
53787
  return PitchControlOptions;
53773
53788
  }(Options));
53774
53789
 
53775
- var __extends$19 = (window && window.__extends) || (function () {
53790
+ var __extends$1b = (window && window.__extends) || (function () {
53776
53791
  var extendStatics = function (d, b) {
53777
53792
  extendStatics = Object.setPrototypeOf ||
53778
53793
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53791,7 +53806,7 @@ uniform ${precision} ${type} u_${name};
53791
53806
  * A control for changing the pitch of the map.
53792
53807
  */
53793
53808
  var PitchControl = /** @class */ (function (_super) {
53794
- __extends$19(PitchControl, _super);
53809
+ __extends$1b(PitchControl, _super);
53795
53810
  /**
53796
53811
  * Constructs a PitchControl.
53797
53812
  * @param options The options for the control.
@@ -54019,7 +54034,7 @@ uniform ${precision} ${type} u_${name};
54019
54034
  return PitchControl;
54020
54035
  }(ControlBase));
54021
54036
 
54022
- var __extends$18 = (window && window.__extends) || (function () {
54037
+ var __extends$1a = (window && window.__extends) || (function () {
54023
54038
  var extendStatics = function (d, b) {
54024
54039
  extendStatics = Object.setPrototypeOf ||
54025
54040
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -54038,7 +54053,7 @@ uniform ${precision} ${type} u_${name};
54038
54053
  * A control to display a scale bar on the map.
54039
54054
  */
54040
54055
  var ScaleControl = /** @class */ (function (_super) {
54041
- __extends$18(ScaleControl, _super);
54056
+ __extends$1a(ScaleControl, _super);
54042
54057
  /**
54043
54058
  * A control to displays a scale bar relative to the pixel resolution at the center of the map.
54044
54059
  * @param options Options for defining how the control is rendered and functions.
@@ -57556,7 +57571,7 @@ uniform ${precision} ${type} u_${name};
57556
57571
 
57557
57572
  var merge$1 = /*@__PURE__*/getDefaultExportFromCjs(merge_1);
57558
57573
 
57559
- var __extends$17 = (window && window.__extends) || (function () {
57574
+ var __extends$19 = (window && window.__extends) || (function () {
57560
57575
  var extendStatics = function (d, b) {
57561
57576
  extendStatics = Object.setPrototypeOf ||
57562
57577
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -57575,7 +57590,7 @@ uniform ${precision} ${type} u_${name};
57575
57590
  * The options for a StyleControl object.
57576
57591
  */
57577
57592
  var StyleControlOptions = /** @class */ (function (_super) {
57578
- __extends$17(StyleControlOptions, _super);
57593
+ __extends$19(StyleControlOptions, _super);
57579
57594
  function StyleControlOptions() {
57580
57595
  var _this = _super !== null && _super.apply(this, arguments) || this;
57581
57596
  /**
@@ -57620,7 +57635,7 @@ uniform ${precision} ${type} u_${name};
57620
57635
  return StyleControlOptions;
57621
57636
  }(Options));
57622
57637
 
57623
- var __extends$16 = (window && window.__extends) || (function () {
57638
+ var __extends$18 = (window && window.__extends) || (function () {
57624
57639
  var extendStatics = function (d, b) {
57625
57640
  extendStatics = Object.setPrototypeOf ||
57626
57641
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -57691,7 +57706,7 @@ uniform ${precision} ${type} u_${name};
57691
57706
  * A control for changing the style of the map.
57692
57707
  */
57693
57708
  var StyleControl = /** @class */ (function (_super) {
57694
- __extends$16(StyleControl, _super);
57709
+ __extends$18(StyleControl, _super);
57695
57710
  /**
57696
57711
  * Constructs a StyleControl.
57697
57712
  * @param options The options for the control.
@@ -58056,7 +58071,7 @@ uniform ${precision} ${type} u_${name};
58056
58071
  return StyleControl;
58057
58072
  }(ControlBase));
58058
58073
 
58059
- var __extends$15 = (window && window.__extends) || (function () {
58074
+ var __extends$17 = (window && window.__extends) || (function () {
58060
58075
  var extendStatics = function (d, b) {
58061
58076
  extendStatics = Object.setPrototypeOf ||
58062
58077
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -58075,7 +58090,7 @@ uniform ${precision} ${type} u_${name};
58075
58090
  * The options for setting traffic on the map.
58076
58091
  */
58077
58092
  var TrafficOptions = /** @class */ (function (_super) {
58078
- __extends$15(TrafficOptions, _super);
58093
+ __extends$17(TrafficOptions, _super);
58079
58094
  function TrafficOptions() {
58080
58095
  var _this = _super !== null && _super.apply(this, arguments) || this;
58081
58096
  /**
@@ -58100,7 +58115,7 @@ uniform ${precision} ${type} u_${name};
58100
58115
  return TrafficOptions;
58101
58116
  }(Options));
58102
58117
 
58103
- var __extends$14 = (window && window.__extends) || (function () {
58118
+ var __extends$16 = (window && window.__extends) || (function () {
58104
58119
  var extendStatics = function (d, b) {
58105
58120
  extendStatics = Object.setPrototypeOf ||
58106
58121
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -58119,7 +58134,7 @@ uniform ${precision} ${type} u_${name};
58119
58134
  * The options for a TrafficControl object.
58120
58135
  */
58121
58136
  var TrafficControlOptions = /** @class */ (function (_super) {
58122
- __extends$14(TrafficControlOptions, _super);
58137
+ __extends$16(TrafficControlOptions, _super);
58123
58138
  function TrafficControlOptions() {
58124
58139
  var _this = _super !== null && _super.apply(this, arguments) || this;
58125
58140
  /**
@@ -58139,7 +58154,7 @@ uniform ${precision} ${type} u_${name};
58139
58154
  return TrafficControlOptions;
58140
58155
  }(TrafficOptions));
58141
58156
 
58142
- var __extends$13 = (window && window.__extends) || (function () {
58157
+ var __extends$15 = (window && window.__extends) || (function () {
58143
58158
  var extendStatics = function (d, b) {
58144
58159
  extendStatics = Object.setPrototypeOf ||
58145
58160
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -58158,7 +58173,7 @@ uniform ${precision} ${type} u_${name};
58158
58173
  * A control that toggles traffic data on the map.
58159
58174
  */
58160
58175
  var TrafficControl = /** @class */ (function (_super) {
58161
- __extends$13(TrafficControl, _super);
58176
+ __extends$15(TrafficControl, _super);
58162
58177
  /**
58163
58178
  * Constructs a TrafficControl
58164
58179
  * @param options The options for the control.
@@ -58285,7 +58300,7 @@ uniform ${precision} ${type} u_${name};
58285
58300
  return TrafficControl;
58286
58301
  }(ControlBase));
58287
58302
 
58288
- var __extends$12 = (window && window.__extends) || (function () {
58303
+ var __extends$14 = (window && window.__extends) || (function () {
58289
58304
  var extendStatics = function (d, b) {
58290
58305
  extendStatics = Object.setPrototypeOf ||
58291
58306
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -58315,7 +58330,7 @@ uniform ${precision} ${type} u_${name};
58315
58330
  * A control that display traffic legend on the map.
58316
58331
  */
58317
58332
  var TrafficLegendControl = /** @class */ (function (_super) {
58318
- __extends$12(TrafficLegendControl, _super);
58333
+ __extends$14(TrafficLegendControl, _super);
58319
58334
  /**
58320
58335
  * Construct a traffic legend control
58321
58336
  */
@@ -59049,7 +59064,7 @@ uniform ${precision} ${type} u_${name};
59049
59064
  return Feature;
59050
59065
  }());
59051
59066
 
59052
- var __extends$11 = (window && window.__extends) || (function () {
59067
+ var __extends$13 = (window && window.__extends) || (function () {
59053
59068
  var extendStatics = function (d, b) {
59054
59069
  extendStatics = Object.setPrototypeOf ||
59055
59070
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -59068,7 +59083,7 @@ uniform ${precision} ${type} u_${name};
59068
59083
  * Represent a pixel coordinate or offset. Extends an array of [x, y].
59069
59084
  */
59070
59085
  var Pixel = /** @class */ (function (_super) {
59071
- __extends$11(Pixel, _super);
59086
+ __extends$13(Pixel, _super);
59072
59087
  /**
59073
59088
  * Constructs a Pixel object and initializes it with the specified x and y coordinates.
59074
59089
  * @param x The horizontal pixel offset.
@@ -61288,7 +61303,7 @@ uniform ${precision} ${type} u_${name};
61288
61303
  return result;
61289
61304
  }
61290
61305
 
61291
- var __extends$10 = (window && window.__extends) || (function () {
61306
+ var __extends$12 = (window && window.__extends) || (function () {
61292
61307
  var extendStatics = function (d, b) {
61293
61308
  extendStatics = Object.setPrototypeOf ||
61294
61309
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -61308,7 +61323,7 @@ uniform ${precision} ${type} u_${name};
61308
61323
  * full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
61309
61324
  */
61310
61325
  var Position = /** @class */ (function (_super) {
61311
- __extends$10(Position, _super);
61326
+ __extends$12(Position, _super);
61312
61327
  /**
61313
61328
  * Constructs a Position.
61314
61329
  * @param longitude The position's longitude.
@@ -61371,10 +61386,10 @@ uniform ${precision} ${type} u_${name};
61371
61386
  Position.fromLatLng = function (y, x, z) {
61372
61387
  var position = [];
61373
61388
  if (typeof y === "number") {
61374
- position.push(y);
61375
61389
  if (typeof x === "number") {
61376
61390
  position.push(x);
61377
61391
  }
61392
+ position.push(y);
61378
61393
  if (typeof z === "number") {
61379
61394
  position.push(z);
61380
61395
  }
@@ -61383,10 +61398,10 @@ uniform ${precision} ${type} u_${name};
61383
61398
  // Assume array is in the form [lat, lng] or [lat, lng, elv]
61384
61399
  if (y.length >= 2 && typeof y[0] === "number" && typeof y[1] === "number") {
61385
61400
  if (y.length >= 3 && typeof y[2] === "number") {
61386
- position.push(y[0], y[1], y[2]);
61401
+ position.push(y[1], y[0], y[2]);
61387
61402
  }
61388
61403
  else {
61389
- position.push(y[0], y[1]);
61404
+ position.push(y[1], y[0]);
61390
61405
  }
61391
61406
  }
61392
61407
  }
@@ -61500,7 +61515,7 @@ uniform ${precision} ${type} u_${name};
61500
61515
  return Polygon;
61501
61516
  }());
61502
61517
 
61503
- var __extends$$ = (window && window.__extends) || (function () {
61518
+ var __extends$11 = (window && window.__extends) || (function () {
61504
61519
  var extendStatics = function (d, b) {
61505
61520
  extendStatics = Object.setPrototypeOf ||
61506
61521
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -61530,7 +61545,7 @@ uniform ${precision} ${type} u_${name};
61530
61545
  * A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
61531
61546
  */
61532
61547
  var Shape = /** @class */ (function (_super) {
61533
- __extends$$(Shape, _super);
61548
+ __extends$11(Shape, _super);
61534
61549
  function Shape(data, id, properties) {
61535
61550
  var _this = _super.call(this) || this;
61536
61551
  var geometry;
@@ -61826,7 +61841,7 @@ uniform ${precision} ${type} u_${name};
61826
61841
  return Shape;
61827
61842
  }(EventEmitter));
61828
61843
 
61829
- var __extends$_ = (window && window.__extends) || (function () {
61844
+ var __extends$10 = (window && window.__extends) || (function () {
61830
61845
  var extendStatics = function (d, b) {
61831
61846
  extendStatics = Object.setPrototypeOf ||
61832
61847
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -61859,7 +61874,7 @@ uniform ${precision} ${type} u_${name};
61859
61874
  * [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
61860
61875
  */
61861
61876
  var BoundingBox = /** @class */ (function (_super) {
61862
- __extends$_(BoundingBox, _super);
61877
+ __extends$10(BoundingBox, _super);
61863
61878
  function BoundingBox(southwestPositionOrPositions, northeastPosition) {
61864
61879
  var _this = this;
61865
61880
  if (southwestPositionOrPositions && northeastPosition) {
@@ -62576,7 +62591,7 @@ uniform ${precision} ${type} u_${name};
62576
62591
  return MultiPolygon;
62577
62592
  }());
62578
62593
 
62579
- var __extends$Z = (window && window.__extends) || (function () {
62594
+ var __extends$$ = (window && window.__extends) || (function () {
62580
62595
  var extendStatics = function (d, b) {
62581
62596
  extendStatics = Object.setPrototypeOf ||
62582
62597
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -62607,7 +62622,7 @@ uniform ${precision} ${type} u_${name};
62607
62622
  * The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
62608
62623
  */
62609
62624
  var MercatorPoint = /** @class */ (function (_super) {
62610
- __extends$Z(MercatorPoint, _super);
62625
+ __extends$$(MercatorPoint, _super);
62611
62626
  /**
62612
62627
  * Constructs a MercatorPoint.
62613
62628
  * @param x A points x position in mercator units.
@@ -63096,7 +63111,7 @@ uniform ${precision} ${type} u_${name};
63096
63111
  simplify: simplify
63097
63112
  });
63098
63113
 
63099
- var __extends$Y = (window && window.__extends) || (function () {
63114
+ var __extends$_ = (window && window.__extends) || (function () {
63100
63115
  var extendStatics = function (d, b) {
63101
63116
  extendStatics = Object.setPrototypeOf ||
63102
63117
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -63115,7 +63130,7 @@ uniform ${precision} ${type} u_${name};
63115
63130
  * The options for a ZoomControl object.
63116
63131
  */
63117
63132
  var ZoomControlOptions = /** @class */ (function (_super) {
63118
- __extends$Y(ZoomControlOptions, _super);
63133
+ __extends$_(ZoomControlOptions, _super);
63119
63134
  function ZoomControlOptions() {
63120
63135
  var _this = _super !== null && _super.apply(this, arguments) || this;
63121
63136
  /**
@@ -63135,7 +63150,7 @@ uniform ${precision} ${type} u_${name};
63135
63150
  return ZoomControlOptions;
63136
63151
  }(Options));
63137
63152
 
63138
- var __extends$X = (window && window.__extends) || (function () {
63153
+ var __extends$Z = (window && window.__extends) || (function () {
63139
63154
  var extendStatics = function (d, b) {
63140
63155
  extendStatics = Object.setPrototypeOf ||
63141
63156
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -63154,7 +63169,7 @@ uniform ${precision} ${type} u_${name};
63154
63169
  * A control for changing the zoom of the map.
63155
63170
  */
63156
63171
  var ZoomControl = /** @class */ (function (_super) {
63157
- __extends$X(ZoomControl, _super);
63172
+ __extends$Z(ZoomControl, _super);
63158
63173
  /**
63159
63174
  * Constructs a ZoomControl.
63160
63175
  * @param options The options for the control.
@@ -63389,7 +63404,7 @@ uniform ${precision} ${type} u_${name};
63389
63404
  return AccessibleIndicator;
63390
63405
  }());
63391
63406
 
63392
- var __extends$W = (window && window.__extends) || (function () {
63407
+ var __extends$Y = (window && window.__extends) || (function () {
63393
63408
  var extendStatics = function (d, b) {
63394
63409
  extendStatics = Object.setPrototypeOf ||
63395
63410
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -63411,7 +63426,7 @@ uniform ${precision} ${type} u_${name};
63411
63426
  * @module Object Definitions
63412
63427
  */
63413
63428
  var DataSourceOptions = /** @class */ (function (_super) {
63414
- __extends$W(DataSourceOptions, _super);
63429
+ __extends$Y(DataSourceOptions, _super);
63415
63430
  function DataSourceOptions() {
63416
63431
  var _this = _super !== null && _super.apply(this, arguments) || this;
63417
63432
  /*
@@ -63471,7 +63486,8 @@ uniform ${precision} ${type} u_${name};
63471
63486
  */
63472
63487
  _this.generateId = false;
63473
63488
  /**
63474
- * A property to use as a feature id (for feature state). Either a property name, or an object of the form {<sourceLayer>: <propertyName>}.
63489
+ * A specified property name to be used as a feature ID (for feature state).
63490
+ * This can either be a property name or an object in the form `{<sourceLayer>: <propertyName>}`.
63475
63491
  */
63476
63492
  _this.promoteId = undefined;
63477
63493
  /**
@@ -63483,7 +63499,7 @@ uniform ${precision} ${type} u_${name};
63483
63499
  return DataSourceOptions;
63484
63500
  }(Options));
63485
63501
 
63486
- var __extends$V = (window && window.__extends) || (function () {
63502
+ var __extends$X = (window && window.__extends) || (function () {
63487
63503
  var extendStatics = function (d, b) {
63488
63504
  extendStatics = Object.setPrototypeOf ||
63489
63505
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -63503,7 +63519,7 @@ uniform ${precision} ${type} u_${name};
63503
63519
  * A source must be added to a layer before it is visible on the map.
63504
63520
  */
63505
63521
  var Source = /** @class */ (function (_super) {
63506
- __extends$V(Source, _super);
63522
+ __extends$X(Source, _super);
63507
63523
  function Source(id) {
63508
63524
  var _this = _super.call(this) || this;
63509
63525
  _this.id = id || uuid();
@@ -63542,7 +63558,7 @@ uniform ${precision} ${type} u_${name};
63542
63558
  return Source;
63543
63559
  }(EventEmitter));
63544
63560
 
63545
- var __extends$U = (window && window.__extends) || (function () {
63561
+ var __extends$W = (window && window.__extends) || (function () {
63546
63562
  var extendStatics = function (d, b) {
63547
63563
  extendStatics = Object.setPrototypeOf ||
63548
63564
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -63574,7 +63590,7 @@ uniform ${precision} ${type} u_${name};
63574
63590
  * The DataSource class may be used with the SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, and HeatMapLayer.
63575
63591
  */
63576
63592
  var DataSource = /** @class */ (function (_super) {
63577
- __extends$U(DataSource, _super);
63593
+ __extends$W(DataSource, _super);
63578
63594
  /**
63579
63595
  * A data source class that makes it easy to manage shapes data that will be displayed on the map.
63580
63596
  * A data source must be added to a layer before it is visible on the map.
@@ -64029,7 +64045,7 @@ uniform ${precision} ${type} u_${name};
64029
64045
  return DataSource;
64030
64046
  }(Source));
64031
64047
 
64032
- var __extends$T = (window && window.__extends) || (function () {
64048
+ var __extends$V = (window && window.__extends) || (function () {
64033
64049
  var extendStatics = function (d, b) {
64034
64050
  extendStatics = Object.setPrototypeOf ||
64035
64051
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64051,7 +64067,7 @@ uniform ${precision} ${type} u_${name};
64051
64067
  * @module Object Definitions
64052
64068
  */
64053
64069
  var VectorTileSourceOptions = /** @class */ (function (_super) {
64054
- __extends$T(VectorTileSourceOptions, _super);
64070
+ __extends$V(VectorTileSourceOptions, _super);
64055
64071
  function VectorTileSourceOptions() {
64056
64072
  /*
64057
64073
  * TODO:
@@ -64104,7 +64120,7 @@ uniform ${precision} ${type} u_${name};
64104
64120
  return VectorTileSourceOptions;
64105
64121
  }(Options));
64106
64122
 
64107
- var __extends$S = (window && window.__extends) || (function () {
64123
+ var __extends$U = (window && window.__extends) || (function () {
64108
64124
  var extendStatics = function (d, b) {
64109
64125
  extendStatics = Object.setPrototypeOf ||
64110
64126
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64124,7 +64140,7 @@ uniform ${precision} ${type} u_${name};
64124
64140
  * Vector tile sources can be used with; SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer and VectorTileLayer.
64125
64141
  */
64126
64142
  var VectorTileSource = /** @class */ (function (_super) {
64127
- __extends$S(VectorTileSource, _super);
64143
+ __extends$U(VectorTileSource, _super);
64128
64144
  function VectorTileSource(id, options) {
64129
64145
  var _this = _super.call(this, id) || this;
64130
64146
  _this.options = new VectorTileSourceOptions().merge(cloneDeep$1(options));
@@ -64190,7 +64206,7 @@ uniform ${precision} ${type} u_${name};
64190
64206
  return VectorTileSource;
64191
64207
  }(Source));
64192
64208
 
64193
- var __extends$R = (window && window.__extends) || (function () {
64209
+ var __extends$T = (window && window.__extends) || (function () {
64194
64210
  var extendStatics = function (d, b) {
64195
64211
  extendStatics = Object.setPrototypeOf ||
64196
64212
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64211,7 +64227,7 @@ uniform ${precision} ${type} u_${name};
64211
64227
  * @private
64212
64228
  */
64213
64229
  var CanvasSource = /** @class */ (function (_super) {
64214
- __extends$R(CanvasSource, _super);
64230
+ __extends$T(CanvasSource, _super);
64215
64231
  /**
64216
64232
  * Constructs a source from the contents of a layer resource file.
64217
64233
  * @param id The source's id.
@@ -64246,7 +64262,7 @@ uniform ${precision} ${type} u_${name};
64246
64262
  return CanvasSource;
64247
64263
  }(Source));
64248
64264
 
64249
- var __extends$Q = (window && window.__extends) || (function () {
64265
+ var __extends$S = (window && window.__extends) || (function () {
64250
64266
  var extendStatics = function (d, b) {
64251
64267
  extendStatics = Object.setPrototypeOf ||
64252
64268
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64267,7 +64283,7 @@ uniform ${precision} ${type} u_${name};
64267
64283
  * @private
64268
64284
  */
64269
64285
  var UnknownSource = /** @class */ (function (_super) {
64270
- __extends$Q(UnknownSource, _super);
64286
+ __extends$S(UnknownSource, _super);
64271
64287
  /**
64272
64288
  * Constructs a source from the contents of a layer resource file.
64273
64289
  * @param id The source's id.
@@ -64299,7 +64315,7 @@ uniform ${precision} ${type} u_${name};
64299
64315
  return UnknownSource;
64300
64316
  }(Source));
64301
64317
 
64302
- var __extends$P = (window && window.__extends) || (function () {
64318
+ var __extends$R = (window && window.__extends) || (function () {
64303
64319
  var extendStatics = function (d, b) {
64304
64320
  extendStatics = Object.setPrototypeOf ||
64305
64321
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64320,7 +64336,7 @@ uniform ${precision} ${type} u_${name};
64320
64336
  * @private
64321
64337
  */
64322
64338
  var ImageSource = /** @class */ (function (_super) {
64323
- __extends$P(ImageSource, _super);
64339
+ __extends$R(ImageSource, _super);
64324
64340
  /**
64325
64341
  * Constructs a source from the contents of a layer resource file.
64326
64342
  * @param id The source's id.
@@ -64354,7 +64370,7 @@ uniform ${precision} ${type} u_${name};
64354
64370
  return ImageSource;
64355
64371
  }(Source));
64356
64372
 
64357
- var __extends$O = (window && window.__extends) || (function () {
64373
+ var __extends$Q = (window && window.__extends) || (function () {
64358
64374
  var extendStatics = function (d, b) {
64359
64375
  extendStatics = Object.setPrototypeOf ||
64360
64376
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64375,7 +64391,7 @@ uniform ${precision} ${type} u_${name};
64375
64391
  * @private
64376
64392
  */
64377
64393
  var VideoSource = /** @class */ (function (_super) {
64378
- __extends$O(VideoSource, _super);
64394
+ __extends$Q(VideoSource, _super);
64379
64395
  /**
64380
64396
  * Constructs a source from the contents of a layer resource file.
64381
64397
  * @param id The source's id.
@@ -64409,7 +64425,7 @@ uniform ${precision} ${type} u_${name};
64409
64425
  return VideoSource;
64410
64426
  }(Source));
64411
64427
 
64412
- var __extends$N = (window && window.__extends) || (function () {
64428
+ var __extends$P = (window && window.__extends) || (function () {
64413
64429
  var extendStatics = function (d, b) {
64414
64430
  extendStatics = Object.setPrototypeOf ||
64415
64431
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64425,7 +64441,7 @@ uniform ${precision} ${type} u_${name};
64425
64441
  };
64426
64442
  })();
64427
64443
  var RasterTileSourceOptions = /** @class */ (function (_super) {
64428
- __extends$N(RasterTileSourceOptions, _super);
64444
+ __extends$P(RasterTileSourceOptions, _super);
64429
64445
  function RasterTileSourceOptions() {
64430
64446
  var _this = _super !== null && _super.apply(this, arguments) || this;
64431
64447
  /**
@@ -64439,7 +64455,7 @@ uniform ${precision} ${type} u_${name};
64439
64455
  return RasterTileSourceOptions;
64440
64456
  }(VectorTileSourceOptions));
64441
64457
 
64442
- var __extends$M = (window && window.__extends) || (function () {
64458
+ var __extends$O = (window && window.__extends) || (function () {
64443
64459
  var extendStatics = function (d, b) {
64444
64460
  extendStatics = Object.setPrototypeOf ||
64445
64461
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64455,7 +64471,7 @@ uniform ${precision} ${type} u_${name};
64455
64471
  };
64456
64472
  })();
64457
64473
  var ElevationTileSourceOptions = /** @class */ (function (_super) {
64458
- __extends$M(ElevationTileSourceOptions, _super);
64474
+ __extends$O(ElevationTileSourceOptions, _super);
64459
64475
  function ElevationTileSourceOptions() {
64460
64476
  var _this = _super !== null && _super.apply(this, arguments) || this;
64461
64477
  /**
@@ -64471,7 +64487,7 @@ uniform ${precision} ${type} u_${name};
64471
64487
  return ElevationTileSourceOptions;
64472
64488
  }(RasterTileSourceOptions));
64473
64489
 
64474
- var __extends$L = (window && window.__extends) || (function () {
64490
+ var __extends$N = (window && window.__extends) || (function () {
64475
64491
  var extendStatics = function (d, b) {
64476
64492
  extendStatics = Object.setPrototypeOf ||
64477
64493
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64501,7 +64517,7 @@ uniform ${precision} ${type} u_${name};
64501
64517
  * Publicly exposed ElevationTileSource.
64502
64518
  */
64503
64519
  var ElevationTileSource = /** @class */ (function (_super) {
64504
- __extends$L(ElevationTileSource, _super);
64520
+ __extends$N(ElevationTileSource, _super);
64505
64521
  function ElevationTileSource(id, options) {
64506
64522
  var _this = _super.call(this, id) || this;
64507
64523
  _this.options = new ElevationTileSourceOptions().merge(cloneDeep$1(options));
@@ -64545,7 +64561,7 @@ uniform ${precision} ${type} u_${name};
64545
64561
  VideoSource: VideoSource
64546
64562
  });
64547
64563
 
64548
- var __extends$K = (window && window.__extends) || (function () {
64564
+ var __extends$M = (window && window.__extends) || (function () {
64549
64565
  var extendStatics = function (d, b) {
64550
64566
  extendStatics = Object.setPrototypeOf ||
64551
64567
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64564,7 +64580,7 @@ uniform ${precision} ${type} u_${name};
64564
64580
  * Abstract class for other layer classes to extend.
64565
64581
  */
64566
64582
  var Layer = /** @class */ (function (_super) {
64567
- __extends$K(Layer, _super);
64583
+ __extends$M(Layer, _super);
64568
64584
  function Layer(id) {
64569
64585
  var _this =
64570
64586
  // Assign an random id using a UUID if none was specified.
@@ -64671,7 +64687,7 @@ uniform ${precision} ${type} u_${name};
64671
64687
  return Layer;
64672
64688
  }(EventEmitter));
64673
64689
 
64674
- var __extends$J = (window && window.__extends) || (function () {
64690
+ var __extends$L = (window && window.__extends) || (function () {
64675
64691
  var extendStatics = function (d, b) {
64676
64692
  extendStatics = Object.setPrototypeOf ||
64677
64693
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64690,7 +64706,7 @@ uniform ${precision} ${type} u_${name};
64690
64706
  * A base class which all other layer options inherit from.
64691
64707
  */
64692
64708
  var LayerOptions$1 = /** @class */ (function (_super) {
64693
- __extends$J(LayerOptions, _super);
64709
+ __extends$L(LayerOptions, _super);
64694
64710
  function LayerOptions() {
64695
64711
  var _this = _super !== null && _super.apply(this, arguments) || this;
64696
64712
  /**
@@ -64737,7 +64753,7 @@ uniform ${precision} ${type} u_${name};
64737
64753
  return LayerOptions;
64738
64754
  }(Options));
64739
64755
 
64740
- var __extends$I = (window && window.__extends) || (function () {
64756
+ var __extends$K = (window && window.__extends) || (function () {
64741
64757
  var extendStatics = function (d, b) {
64742
64758
  extendStatics = Object.setPrototypeOf ||
64743
64759
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64756,7 +64772,7 @@ uniform ${precision} ${type} u_${name};
64756
64772
  * Options used when rendering Point objects in a BubbleLayer.
64757
64773
  */
64758
64774
  var BubbleLayerOptions = /** @class */ (function (_super) {
64759
- __extends$I(BubbleLayerOptions, _super);
64775
+ __extends$K(BubbleLayerOptions, _super);
64760
64776
  function BubbleLayerOptions() {
64761
64777
  var _this = _super !== null && _super.apply(this, arguments) || this;
64762
64778
  /**
@@ -64864,7 +64880,7 @@ uniform ${precision} ${type} u_${name};
64864
64880
  return BubbleLayerOptions;
64865
64881
  }(LayerOptions$1));
64866
64882
 
64867
- var __extends$H = (window && window.__extends) || (function () {
64883
+ var __extends$J = (window && window.__extends) || (function () {
64868
64884
  var extendStatics = function (d, b) {
64869
64885
  extendStatics = Object.setPrototypeOf ||
64870
64886
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64944,7 +64960,7 @@ uniform ${precision} ${type} u_${name};
64944
64960
  * Renders Point objects as scalable circles (bubbles).
64945
64961
  */
64946
64962
  var BubbleLayer = /** @class */ (function (_super) {
64947
- __extends$H(BubbleLayer, _super);
64963
+ __extends$J(BubbleLayer, _super);
64948
64964
  /**
64949
64965
  * Constructs a new BubbleLayer.
64950
64966
  * @param source The id or instance of a data source which the layer will render.
@@ -65219,7 +65235,7 @@ uniform ${precision} ${type} u_${name};
65219
65235
  return BubbleLayer;
65220
65236
  }(Layer));
65221
65237
 
65222
- var __extends$G = (window && window.__extends) || (function () {
65238
+ var __extends$I = (window && window.__extends) || (function () {
65223
65239
  var extendStatics = function (d, b) {
65224
65240
  extendStatics = Object.setPrototypeOf ||
65225
65241
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65238,7 +65254,7 @@ uniform ${precision} ${type} u_${name};
65238
65254
  * Options used when rendering Point objects in a HeatMapLayer.
65239
65255
  */
65240
65256
  var HeatMapLayerOptions = /** @class */ (function (_super) {
65241
- __extends$G(HeatMapLayerOptions, _super);
65257
+ __extends$I(HeatMapLayerOptions, _super);
65242
65258
  function HeatMapLayerOptions() {
65243
65259
  var _this = _super !== null && _super.apply(this, arguments) || this;
65244
65260
  /**
@@ -65305,7 +65321,7 @@ uniform ${precision} ${type} u_${name};
65305
65321
  return HeatMapLayerOptions;
65306
65322
  }(LayerOptions$1));
65307
65323
 
65308
- var __extends$F = (window && window.__extends) || (function () {
65324
+ var __extends$H = (window && window.__extends) || (function () {
65309
65325
  var extendStatics = function (d, b) {
65310
65326
  extendStatics = Object.setPrototypeOf ||
65311
65327
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65324,7 +65340,7 @@ uniform ${precision} ${type} u_${name};
65324
65340
  * Represent the density of data using different colors (HeatMap).
65325
65341
  */
65326
65342
  var HeatMapLayer = /** @class */ (function (_super) {
65327
- __extends$F(HeatMapLayer, _super);
65343
+ __extends$H(HeatMapLayer, _super);
65328
65344
  /**
65329
65345
  * Constructs a new HeatMapLayer.
65330
65346
  * @param source The id or instance of a data source which the layer will render.
@@ -65428,7 +65444,7 @@ uniform ${precision} ${type} u_${name};
65428
65444
  return HeatMapLayer;
65429
65445
  }(Layer));
65430
65446
 
65431
- var __extends$E = (window && window.__extends) || (function () {
65447
+ var __extends$G = (window && window.__extends) || (function () {
65432
65448
  var extendStatics = function (d, b) {
65433
65449
  extendStatics = Object.setPrototypeOf ||
65434
65450
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65447,7 +65463,7 @@ uniform ${precision} ${type} u_${name};
65447
65463
  * Options used when rendering canvas, image, raster tile, and video layers
65448
65464
  */
65449
65465
  var MediaLayerOptions = /** @class */ (function (_super) {
65450
- __extends$E(MediaLayerOptions, _super);
65466
+ __extends$G(MediaLayerOptions, _super);
65451
65467
  function MediaLayerOptions() {
65452
65468
  var _this = _super !== null && _super.apply(this, arguments) || this;
65453
65469
  /**
@@ -65499,7 +65515,7 @@ uniform ${precision} ${type} u_${name};
65499
65515
  return MediaLayerOptions;
65500
65516
  }(LayerOptions$1));
65501
65517
 
65502
- var __extends$D = (window && window.__extends) || (function () {
65518
+ var __extends$F = (window && window.__extends) || (function () {
65503
65519
  var extendStatics = function (d, b) {
65504
65520
  extendStatics = Object.setPrototypeOf ||
65505
65521
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65518,7 +65534,7 @@ uniform ${precision} ${type} u_${name};
65518
65534
  * Options used when rendering Point objects in a ImageLayer.
65519
65535
  */
65520
65536
  var ImageLayerOptions = /** @class */ (function (_super) {
65521
- __extends$D(ImageLayerOptions, _super);
65537
+ __extends$F(ImageLayerOptions, _super);
65522
65538
  function ImageLayerOptions() {
65523
65539
  var _this = _super !== null && _super.apply(this, arguments) || this;
65524
65540
  /**
@@ -65548,7 +65564,7 @@ uniform ${precision} ${type} u_${name};
65548
65564
  return ImageLayerOptions;
65549
65565
  }(MediaLayerOptions));
65550
65566
 
65551
- var __extends$C = (window && window.__extends) || (function () {
65567
+ var __extends$E = (window && window.__extends) || (function () {
65552
65568
  var extendStatics = function (d, b) {
65553
65569
  extendStatics = Object.setPrototypeOf ||
65554
65570
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65568,7 +65584,7 @@ uniform ${precision} ${type} u_${name};
65568
65584
  * @internal
65569
65585
  */
65570
65586
  var SourceBuildingLayer = /** @class */ (function (_super) {
65571
- __extends$C(SourceBuildingLayer, _super);
65587
+ __extends$E(SourceBuildingLayer, _super);
65572
65588
  function SourceBuildingLayer() {
65573
65589
  return _super !== null && _super.apply(this, arguments) || this;
65574
65590
  }
@@ -65586,7 +65602,7 @@ uniform ${precision} ${type} u_${name};
65586
65602
  return SourceBuildingLayer;
65587
65603
  }(Layer));
65588
65604
 
65589
- var __extends$B = (window && window.__extends) || (function () {
65605
+ var __extends$D = (window && window.__extends) || (function () {
65590
65606
  var extendStatics = function (d, b) {
65591
65607
  extendStatics = Object.setPrototypeOf ||
65592
65608
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65605,7 +65621,7 @@ uniform ${precision} ${type} u_${name};
65605
65621
  * Overlays an image on the map with each corner anchored to a coordinate on the map. Also known as a ground or image overlay.
65606
65622
  */
65607
65623
  var ImageLayer = /** @class */ (function (_super) {
65608
- __extends$B(ImageLayer, _super);
65624
+ __extends$D(ImageLayer, _super);
65609
65625
  /**
65610
65626
  * Constructs a new ImageLayer.
65611
65627
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -65813,7 +65829,7 @@ uniform ${precision} ${type} u_${name};
65813
65829
  return ImageLayer;
65814
65830
  }(SourceBuildingLayer));
65815
65831
 
65816
- var __extends$A = (window && window.__extends) || (function () {
65832
+ var __extends$C = (window && window.__extends) || (function () {
65817
65833
  var extendStatics = function (d, b) {
65818
65834
  extendStatics = Object.setPrototypeOf ||
65819
65835
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65833,7 +65849,7 @@ uniform ${precision} ${type} u_${name};
65833
65849
  * LineString, MultiLineString, Polygon, and MultiPolygon objects in a line layer.
65834
65850
  */
65835
65851
  var LineLayerOptions = /** @class */ (function (_super) {
65836
- __extends$A(LineLayerOptions, _super);
65852
+ __extends$C(LineLayerOptions, _super);
65837
65853
  function LineLayerOptions() {
65838
65854
  var _this = _super !== null && _super.apply(this, arguments) || this;
65839
65855
  /**
@@ -65933,7 +65949,7 @@ uniform ${precision} ${type} u_${name};
65933
65949
  return LineLayerOptions;
65934
65950
  }(LayerOptions$1));
65935
65951
 
65936
- var __extends$z = (window && window.__extends) || (function () {
65952
+ var __extends$B = (window && window.__extends) || (function () {
65937
65953
  var extendStatics = function (d, b) {
65938
65954
  extendStatics = Object.setPrototypeOf ||
65939
65955
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65964,7 +65980,7 @@ uniform ${precision} ${type} u_${name};
65964
65980
  * CirclePolygon, LineString, MultiLineString, Polygon, and MultiPolygon objects.
65965
65981
  */
65966
65982
  var LineLayer = /** @class */ (function (_super) {
65967
- __extends$z(LineLayer, _super);
65983
+ __extends$B(LineLayer, _super);
65968
65984
  /**
65969
65985
  * Constructs a new LineLayer.
65970
65986
  * @param source The id or instance of a data source which the layer will render.
@@ -66055,7 +66071,7 @@ uniform ${precision} ${type} u_${name};
66055
66071
  return LineLayer;
66056
66072
  }(Layer));
66057
66073
 
66058
- var __extends$y = (window && window.__extends) || (function () {
66074
+ var __extends$A = (window && window.__extends) || (function () {
66059
66075
  var extendStatics = function (d, b) {
66060
66076
  extendStatics = Object.setPrototypeOf ||
66061
66077
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66074,7 +66090,7 @@ uniform ${precision} ${type} u_${name};
66074
66090
  * Options used when rendering `Polygon` and `MultiPolygon` objects in a `PolygonExtrusionLayer`.
66075
66091
  */
66076
66092
  var PolygonExtrusionLayerOptions = /** @class */ (function (_super) {
66077
- __extends$y(PolygonExtrusionLayerOptions, _super);
66093
+ __extends$A(PolygonExtrusionLayerOptions, _super);
66078
66094
  function PolygonExtrusionLayerOptions() {
66079
66095
  var _this = _super !== null && _super.apply(this, arguments) || this;
66080
66096
  /**
@@ -66147,7 +66163,7 @@ uniform ${precision} ${type} u_${name};
66147
66163
  return PolygonExtrusionLayerOptions;
66148
66164
  }(LayerOptions$1));
66149
66165
 
66150
- var __extends$x = (window && window.__extends) || (function () {
66166
+ var __extends$z = (window && window.__extends) || (function () {
66151
66167
  var extendStatics = function (d, b) {
66152
66168
  extendStatics = Object.setPrototypeOf ||
66153
66169
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66177,7 +66193,7 @@ uniform ${precision} ${type} u_${name};
66177
66193
  * Renders extruded filled `Polygon` and `MultiPolygon` objects on the map.
66178
66194
  */
66179
66195
  var PolygonExtrusionLayer = /** @class */ (function (_super) {
66180
- __extends$x(PolygonExtrusionLayer, _super);
66196
+ __extends$z(PolygonExtrusionLayer, _super);
66181
66197
  /**
66182
66198
  * Constructs a new PolygonExtrusionLayer.
66183
66199
  * @param source The id or instance of a data source which the layer will render.
@@ -66265,7 +66281,7 @@ uniform ${precision} ${type} u_${name};
66265
66281
  return PolygonExtrusionLayer;
66266
66282
  }(Layer));
66267
66283
 
66268
- var __extends$w = (window && window.__extends) || (function () {
66284
+ var __extends$y = (window && window.__extends) || (function () {
66269
66285
  var extendStatics = function (d, b) {
66270
66286
  extendStatics = Object.setPrototypeOf ||
66271
66287
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66284,7 +66300,7 @@ uniform ${precision} ${type} u_${name};
66284
66300
  * Options used when rendering Polygon and MultiPolygon objects in a PolygonLayer.
66285
66301
  */
66286
66302
  var PolygonLayerOptions$1 = /** @class */ (function (_super) {
66287
- __extends$w(PolygonLayerOptions, _super);
66303
+ __extends$y(PolygonLayerOptions, _super);
66288
66304
  function PolygonLayerOptions() {
66289
66305
  var _this = _super !== null && _super.apply(this, arguments) || this;
66290
66306
  /**
@@ -66324,7 +66340,7 @@ uniform ${precision} ${type} u_${name};
66324
66340
  return PolygonLayerOptions;
66325
66341
  }(LayerOptions$1));
66326
66342
 
66327
- var __extends$v = (window && window.__extends) || (function () {
66343
+ var __extends$x = (window && window.__extends) || (function () {
66328
66344
  var extendStatics = function (d, b) {
66329
66345
  extendStatics = Object.setPrototypeOf ||
66330
66346
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66343,7 +66359,7 @@ uniform ${precision} ${type} u_${name};
66343
66359
  * Renders filled Polygon and MultiPolygon objects on the map.
66344
66360
  */
66345
66361
  var PolygonLayer = /** @class */ (function (_super) {
66346
- __extends$v(PolygonLayer, _super);
66362
+ __extends$x(PolygonLayer, _super);
66347
66363
  /**
66348
66364
  * Constructs a new PolygonLayer.
66349
66365
  * @param source The id or instance of a data source which the layer will render.
@@ -66453,7 +66469,7 @@ uniform ${precision} ${type} u_${name};
66453
66469
  return PolygonLayer;
66454
66470
  }(Layer));
66455
66471
 
66456
- var __extends$u = (window && window.__extends) || (function () {
66472
+ var __extends$w = (window && window.__extends) || (function () {
66457
66473
  var extendStatics = function (d, b) {
66458
66474
  extendStatics = Object.setPrototypeOf ||
66459
66475
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66472,7 +66488,7 @@ uniform ${precision} ${type} u_${name};
66472
66488
  * Options used to customize the icons in a SymbolLayer
66473
66489
  */
66474
66490
  var IconOptions = /** @class */ (function (_super) {
66475
- __extends$u(IconOptions, _super);
66491
+ __extends$w(IconOptions, _super);
66476
66492
  function IconOptions() {
66477
66493
  var _this = _super !== null && _super.apply(this, arguments) || this;
66478
66494
  /**
@@ -66582,7 +66598,7 @@ uniform ${precision} ${type} u_${name};
66582
66598
  return IconOptions;
66583
66599
  }(Options));
66584
66600
 
66585
- var __extends$t = (window && window.__extends) || (function () {
66601
+ var __extends$v = (window && window.__extends) || (function () {
66586
66602
  var extendStatics = function (d, b) {
66587
66603
  extendStatics = Object.setPrototypeOf ||
66588
66604
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66601,7 +66617,7 @@ uniform ${precision} ${type} u_${name};
66601
66617
  * Options used to customize the text in a SymbolLayer
66602
66618
  */
66603
66619
  var TextOptions = /** @class */ (function (_super) {
66604
- __extends$t(TextOptions, _super);
66620
+ __extends$v(TextOptions, _super);
66605
66621
  function TextOptions() {
66606
66622
  var _this = _super !== null && _super.apply(this, arguments) || this;
66607
66623
  /**
@@ -66781,7 +66797,7 @@ uniform ${precision} ${type} u_${name};
66781
66797
  return TextOptions;
66782
66798
  }(Options));
66783
66799
 
66784
- var __extends$s = (window && window.__extends) || (function () {
66800
+ var __extends$u = (window && window.__extends) || (function () {
66785
66801
  var extendStatics = function (d, b) {
66786
66802
  extendStatics = Object.setPrototypeOf ||
66787
66803
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66800,7 +66816,7 @@ uniform ${precision} ${type} u_${name};
66800
66816
  * Options used when rendering geometries in a SymbolLayer.
66801
66817
  */
66802
66818
  var SymbolLayerOptions = /** @class */ (function (_super) {
66803
- __extends$s(SymbolLayerOptions, _super);
66819
+ __extends$u(SymbolLayerOptions, _super);
66804
66820
  function SymbolLayerOptions() {
66805
66821
  var _this = _super !== null && _super.apply(this, arguments) || this;
66806
66822
  /**
@@ -66865,7 +66881,7 @@ uniform ${precision} ${type} u_${name};
66865
66881
  return SymbolLayerOptions;
66866
66882
  }(LayerOptions$1));
66867
66883
 
66868
- var __extends$r = (window && window.__extends) || (function () {
66884
+ var __extends$t = (window && window.__extends) || (function () {
66869
66885
  var extendStatics = function (d, b) {
66870
66886
  extendStatics = Object.setPrototypeOf ||
66871
66887
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66896,7 +66912,7 @@ uniform ${precision} ${type} u_${name};
66896
66912
  * Symbols can also be created for line and polygon data as well.
66897
66913
  */
66898
66914
  var SymbolLayer = /** @class */ (function (_super) {
66899
- __extends$r(SymbolLayer, _super);
66915
+ __extends$t(SymbolLayer, _super);
66900
66916
  /**
66901
66917
  * Constructs a new SymbolLayer.
66902
66918
  * @param source The id or instance of a data source which the layer will render.
@@ -67038,7 +67054,7 @@ uniform ${precision} ${type} u_${name};
67038
67054
  return SymbolLayer;
67039
67055
  }(Layer));
67040
67056
 
67041
- var __extends$q = (window && window.__extends) || (function () {
67057
+ var __extends$s = (window && window.__extends) || (function () {
67042
67058
  var extendStatics = function (d, b) {
67043
67059
  extendStatics = Object.setPrototypeOf ||
67044
67060
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67069,7 +67085,7 @@ uniform ${precision} ${type} u_${name};
67069
67085
  * @private
67070
67086
  */
67071
67087
  var FundamentalMapSource = /** @class */ (function (_super) {
67072
- __extends$q(FundamentalMapSource, _super);
67088
+ __extends$s(FundamentalMapSource, _super);
67073
67089
  /**
67074
67090
  * Constructs a source from the contents of a layer resource file.
67075
67091
  * @param id The source's id.
@@ -67155,7 +67171,7 @@ uniform ${precision} ${type} u_${name};
67155
67171
  return FundamentalMapSource;
67156
67172
  }(Source));
67157
67173
 
67158
- var __extends$p = (window && window.__extends) || (function () {
67174
+ var __extends$r = (window && window.__extends) || (function () {
67159
67175
  var extendStatics = function (d, b) {
67160
67176
  extendStatics = Object.setPrototypeOf ||
67161
67177
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67174,7 +67190,7 @@ uniform ${precision} ${type} u_${name};
67174
67190
  * Options used when rendering raster tiled images in a TileLayer.
67175
67191
  */
67176
67192
  var TileLayerOptions = /** @class */ (function (_super) {
67177
- __extends$p(TileLayerOptions, _super);
67193
+ __extends$r(TileLayerOptions, _super);
67178
67194
  function TileLayerOptions() {
67179
67195
  var _this = _super !== null && _super.apply(this, arguments) || this;
67180
67196
  /**
@@ -67230,7 +67246,7 @@ uniform ${precision} ${type} u_${name};
67230
67246
  return TileLayerOptions;
67231
67247
  }(MediaLayerOptions));
67232
67248
 
67233
- var __extends$o = (window && window.__extends) || (function () {
67249
+ var __extends$q = (window && window.__extends) || (function () {
67234
67250
  var extendStatics = function (d, b) {
67235
67251
  extendStatics = Object.setPrototypeOf ||
67236
67252
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67271,7 +67287,7 @@ uniform ${precision} ${type} u_${name};
67271
67287
  * Renders raster tiled images on top of the map tiles.
67272
67288
  */
67273
67289
  var TileLayer = /** @class */ (function (_super) {
67274
- __extends$o(TileLayer, _super);
67290
+ __extends$q(TileLayer, _super);
67275
67291
  /**
67276
67292
  * Constructs a new TileLayer.
67277
67293
  * @param options The options for the tile layer.
@@ -67424,7 +67440,7 @@ uniform ${precision} ${type} u_${name};
67424
67440
  return TileLayer;
67425
67441
  }(SourceBuildingLayer));
67426
67442
 
67427
- var __extends$n = (window && window.__extends) || (function () {
67443
+ var __extends$p = (window && window.__extends) || (function () {
67428
67444
  var extendStatics = function (d, b) {
67429
67445
  extendStatics = Object.setPrototypeOf ||
67430
67446
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67443,7 +67459,7 @@ uniform ${precision} ${type} u_${name};
67443
67459
  * Options used to render graphics in a WebGLLayer.
67444
67460
  */
67445
67461
  var WebGLLayerOptions = /** @class */ (function (_super) {
67446
- __extends$n(WebGLLayerOptions, _super);
67462
+ __extends$p(WebGLLayerOptions, _super);
67447
67463
  function WebGLLayerOptions() {
67448
67464
  var _this = _super !== null && _super.apply(this, arguments) || this;
67449
67465
  /**
@@ -67455,7 +67471,7 @@ uniform ${precision} ${type} u_${name};
67455
67471
  return WebGLLayerOptions;
67456
67472
  }(LayerOptions$1));
67457
67473
 
67458
- var __extends$m = (window && window.__extends) || (function () {
67474
+ var __extends$o = (window && window.__extends) || (function () {
67459
67475
  var extendStatics = function (d, b) {
67460
67476
  extendStatics = Object.setPrototypeOf ||
67461
67477
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67474,7 +67490,7 @@ uniform ${precision} ${type} u_${name};
67474
67490
  * Enables custom rendering logic with access to the WebGL context of the map.
67475
67491
  */
67476
67492
  var WebGLLayer = /** @class */ (function (_super) {
67477
- __extends$m(WebGLLayer, _super);
67493
+ __extends$o(WebGLLayer, _super);
67478
67494
  /**
67479
67495
  * Constructs a new WebGLLayer.
67480
67496
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -67707,7 +67723,7 @@ uniform ${precision} ${type} u_${name};
67707
67723
 
67708
67724
  var isElement$1 = /*@__PURE__*/getDefaultExportFromCjs(isElement_1);
67709
67725
 
67710
- var __extends$l = (window && window.__extends) || (function () {
67726
+ var __extends$n = (window && window.__extends) || (function () {
67711
67727
  var extendStatics = function (d, b) {
67712
67728
  extendStatics = Object.setPrototypeOf ||
67713
67729
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67726,7 +67742,7 @@ uniform ${precision} ${type} u_${name};
67726
67742
  * The options for a popup.
67727
67743
  */
67728
67744
  var PopupOptions = /** @class */ (function (_super) {
67729
- __extends$l(PopupOptions, _super);
67745
+ __extends$n(PopupOptions, _super);
67730
67746
  function PopupOptions() {
67731
67747
  var _this = _super !== null && _super.apply(this, arguments) || this;
67732
67748
  /**
@@ -67795,7 +67811,7 @@ uniform ${precision} ${type} u_${name};
67795
67811
  return PopupOptions;
67796
67812
  }(Options));
67797
67813
 
67798
- var __extends$k = (window && window.__extends) || (function () {
67814
+ var __extends$m = (window && window.__extends) || (function () {
67799
67815
  var extendStatics = function (d, b) {
67800
67816
  extendStatics = Object.setPrototypeOf ||
67801
67817
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67830,7 +67846,7 @@ uniform ${precision} ${type} u_${name};
67830
67846
  * An information window anchored at a specified position on a map.
67831
67847
  */
67832
67848
  var Popup = /** @class */ (function (_super) {
67833
- __extends$k(Popup, _super);
67849
+ __extends$m(Popup, _super);
67834
67850
  /**
67835
67851
  * Constructs a Popup object and initializes it with the specified options.
67836
67852
  * @param options The options for the popup.
@@ -68304,7 +68320,7 @@ uniform ${precision} ${type} u_${name};
68304
68320
  return Popup;
68305
68321
  }(EventEmitter));
68306
68322
 
68307
- var __extends$j = (window && window.__extends) || (function () {
68323
+ var __extends$l = (window && window.__extends) || (function () {
68308
68324
  var extendStatics = function (d, b) {
68309
68325
  extendStatics = Object.setPrototypeOf ||
68310
68326
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -68323,7 +68339,7 @@ uniform ${precision} ${type} u_${name};
68323
68339
  * Options for rendering an HtmlMarker object
68324
68340
  */
68325
68341
  var HtmlMarkerOptions = /** @class */ (function (_super) {
68326
- __extends$j(HtmlMarkerOptions, _super);
68342
+ __extends$l(HtmlMarkerOptions, _super);
68327
68343
  function HtmlMarkerOptions() {
68328
68344
  var _this = _super !== null && _super.apply(this, arguments) || this;
68329
68345
  /**
@@ -68401,7 +68417,7 @@ uniform ${precision} ${type} u_${name};
68401
68417
  return HtmlMarkerOptions;
68402
68418
  }(Options));
68403
68419
 
68404
- var __extends$i = (window && window.__extends) || (function () {
68420
+ var __extends$k = (window && window.__extends) || (function () {
68405
68421
  var extendStatics = function (d, b) {
68406
68422
  extendStatics = Object.setPrototypeOf ||
68407
68423
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -68420,7 +68436,7 @@ uniform ${precision} ${type} u_${name};
68420
68436
  * This class wraps an HTML element that can be displayed on the map.
68421
68437
  */
68422
68438
  var HtmlMarker = /** @class */ (function (_super) {
68423
- __extends$i(HtmlMarker, _super);
68439
+ __extends$k(HtmlMarker, _super);
68424
68440
  /**
68425
68441
  * Constructs a new HtmlMarker.
68426
68442
  * @param options The options for the HtmlMarker.
@@ -68719,7 +68735,7 @@ uniform ${precision} ${type} u_${name};
68719
68735
  return Media;
68720
68736
  }());
68721
68737
 
68722
- var __extends$h = (window && window.__extends) || (function () {
68738
+ var __extends$j = (window && window.__extends) || (function () {
68723
68739
  var extendStatics = function (d, b) {
68724
68740
  extendStatics = Object.setPrototypeOf ||
68725
68741
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -68738,7 +68754,7 @@ uniform ${precision} ${type} u_${name};
68738
68754
  * The options for a CopyrightControl object.
68739
68755
  */
68740
68756
  var CopyrightControlOptions = /** @class */ (function (_super) {
68741
- __extends$h(CopyrightControlOptions, _super);
68757
+ __extends$j(CopyrightControlOptions, _super);
68742
68758
  function CopyrightControlOptions() {
68743
68759
  var _this = _super !== null && _super.apply(this, arguments) || this;
68744
68760
  /**
@@ -68767,7 +68783,7 @@ uniform ${precision} ${type} u_${name};
68767
68783
  return CopyrightControlOptions;
68768
68784
  }(Options));
68769
68785
 
68770
- var __extends$g = (window && window.__extends) || (function () {
68786
+ var __extends$i = (window && window.__extends) || (function () {
68771
68787
  var extendStatics = function (d, b) {
68772
68788
  extendStatics = Object.setPrototypeOf ||
68773
68789
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -68786,7 +68802,7 @@ uniform ${precision} ${type} u_${name};
68786
68802
  * @private
68787
68803
  */
68788
68804
  var CopyrightControl = /** @class */ (function (_super) {
68789
- __extends$g(CopyrightControl, _super);
68805
+ __extends$i(CopyrightControl, _super);
68790
68806
  function CopyrightControl(options) {
68791
68807
  var _this = _super.call(this) || this;
68792
68808
  _this.textAttribution = function (options) {
@@ -68808,13 +68824,10 @@ uniform ${precision} ${type} u_${name};
68808
68824
  CopyrightControl.prototype.onAdd = function (map) {
68809
68825
  this.map = map;
68810
68826
  this.container = this.buildContainer(map, exports.ControlStyle.auto);
68811
- this.container.className = "map-copyright";
68827
+ this.container.className = "map-copyright without-bg";
68812
68828
  this.copyrightDiv = this.buildCopyrightDiv();
68813
68829
  this.copyrightDiv.className = "azure-map-copyright";
68814
68830
  this.container.appendChild(this.copyrightDiv);
68815
- if (this.options.showLogo) {
68816
- this.addRemoveLogo(true);
68817
- }
68818
68831
  if (this.options.showFeedbackLink) {
68819
68832
  this.addRemoveFeedbackDiv(true);
68820
68833
  }
@@ -68844,12 +68857,6 @@ uniform ${precision} ${type} u_${name};
68844
68857
  }
68845
68858
  this.options.copyrightContent = newOptions.copyrightContent;
68846
68859
  }
68847
- if (!newOptions.showLogo && this.logoAnchor) {
68848
- this.addRemoveLogo(false);
68849
- }
68850
- else if (newOptions.showLogo && !this.logoAnchor) {
68851
- this.addRemoveLogo(true);
68852
- }
68853
68860
  if (!newOptions.showFeedbackLink && this.feedbackAnchor) {
68854
68861
  this.addRemoveFeedbackDiv(false);
68855
68862
  }
@@ -68875,31 +68882,138 @@ uniform ${precision} ${type} u_${name};
68875
68882
  var link = document.createElement("a");
68876
68883
  link.setAttribute("alt", "Provide Map Data Feedback");
68877
68884
  link.setAttribute("aria-label", "Provide Map Data Feedback");
68885
+ link.innerText = "Feedback";
68878
68886
  link.href = CopyrightControl.feedbackLink;
68879
68887
  link.target = "_blank";
68880
68888
  link.rel = "noopener";
68881
- link.className = "azure-map-feedback";
68889
+ link.className = "azure-map-feedback-text";
68882
68890
  return link;
68883
68891
  };
68884
68892
  CopyrightControl.prototype.addRemoveFeedbackDiv = function (add) {
68885
68893
  var _a, _b, _c, _d;
68886
68894
  if (add) {
68887
68895
  this.feedbackAnchor = this.buildFeedbackLink();
68888
- this.tooltip = buildAccessibleTooltip("Provide Map Data Feedback");
68896
+ this.feedbackTooltip = buildAccessibleTooltip("Provide Map Data Feedback");
68889
68897
  this.container.appendChild(this.feedbackAnchor);
68890
- this.container.appendChild(this.tooltip);
68891
- positionTooltip(this.tooltip, this.feedbackAnchor);
68898
+ this.container.appendChild(this.feedbackTooltip);
68899
+ positionTooltip(this.feedbackTooltip, this.feedbackAnchor);
68892
68900
  (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.add("moveend", this.updateFeedbackLink);
68893
68901
  }
68894
68902
  else {
68895
68903
  this.feedbackAnchor.remove();
68896
- this.tooltip.remove();
68897
- delete this.tooltip;
68904
+ this.feedbackTooltip.remove();
68905
+ delete this.feedbackTooltip;
68898
68906
  delete this.feedbackAnchor;
68899
68907
  (_d = (_c = this.map) === null || _c === void 0 ? void 0 : _c.events) === null || _d === void 0 ? void 0 : _d.remove("moveend", this.updateFeedbackLink);
68900
68908
  }
68901
68909
  };
68902
- CopyrightControl.prototype.addRemoveLogo = function (add) {
68910
+ CopyrightControl.feedbackLink = "https://aka.ms/azuremaps-feedback?feedbackep=UrlAzureMapsWebSdk";
68911
+ return CopyrightControl;
68912
+ }(ControlBase));
68913
+
68914
+ var __extends$h = (window && window.__extends) || (function () {
68915
+ var extendStatics = function (d, b) {
68916
+ extendStatics = Object.setPrototypeOf ||
68917
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
68918
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
68919
+ return extendStatics(d, b);
68920
+ };
68921
+ return function (d, b) {
68922
+ if (typeof b !== "function" && b !== null)
68923
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
68924
+ extendStatics(d, b);
68925
+ function __() { this.constructor = d; }
68926
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
68927
+ };
68928
+ })();
68929
+ /**
68930
+ * The options for a LogoControl object.
68931
+ */
68932
+ var LogoControlOptions = /** @class */ (function (_super) {
68933
+ __extends$h(LogoControlOptions, _super);
68934
+ function LogoControlOptions() {
68935
+ var _this = _super !== null && _super.apply(this, arguments) || this;
68936
+ /**
68937
+ * If true will show the Microsoft logo.
68938
+ */
68939
+ _this.showLogo = true;
68940
+ return _this;
68941
+ }
68942
+ return LogoControlOptions;
68943
+ }(Options));
68944
+
68945
+ var __extends$g = (window && window.__extends) || (function () {
68946
+ var extendStatics = function (d, b) {
68947
+ extendStatics = Object.setPrototypeOf ||
68948
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
68949
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
68950
+ return extendStatics(d, b);
68951
+ };
68952
+ return function (d, b) {
68953
+ if (typeof b !== "function" && b !== null)
68954
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
68955
+ extendStatics(d, b);
68956
+ function __() { this.constructor = d; }
68957
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
68958
+ };
68959
+ })();
68960
+ /**
68961
+ * A control that displays the logo on the map.
68962
+ * @private
68963
+ */
68964
+ var LogoControl = /** @class */ (function (_super) {
68965
+ __extends$g(LogoControl, _super);
68966
+ /**
68967
+ * Construct a control
68968
+ */
68969
+ function LogoControl(options) {
68970
+ var _this = _super.call(this) || this;
68971
+ _this.map = null;
68972
+ /**
68973
+ * Set visibility of the control based on the container width.
68974
+ */
68975
+ _this._onResize = function () {
68976
+ var _a, _b;
68977
+ var width = ((_b = (_a = _this.map) === null || _a === void 0 ? void 0 : _a.getMapContainer()) === null || _b === void 0 ? void 0 : _b.clientWidth) || 0;
68978
+ _this._setVisiblity(_this.options.showLogo && width >= LogoControl.CONTAINER_MIN_WIDTH);
68979
+ };
68980
+ _this.options = new LogoControlOptions().merge(options);
68981
+ return _this;
68982
+ }
68983
+ /**
68984
+ * Initialization method for the control which is called when added to the map.
68985
+ * @param map The map that the control will be added to.
68986
+ * @param options The ControlOptions for this control.
68987
+ * @return An HTMLElement to be placed on the map for the control.
68988
+ */
68989
+ LogoControl.prototype.onAdd = function (map) {
68990
+ var _a;
68991
+ this.map = map;
68992
+ this.container = this.buildContainer(map, exports.ControlStyle.auto);
68993
+ this.container.className = "map-logo-control";
68994
+ (_a = this.map) === null || _a === void 0 ? void 0 : _a.events.add("resize", this._onResize);
68995
+ this._addRemoveLogo(this.options.showLogo);
68996
+ return this.container;
68997
+ };
68998
+ LogoControl.prototype.onRemove = function () {
68999
+ var _a;
69000
+ _super.prototype.onRemove.call(this);
69001
+ (_a = this.map) === null || _a === void 0 ? void 0 : _a.events.remove("resize", this._onResize);
69002
+ this.map = null;
69003
+ delete this.container;
69004
+ };
69005
+ LogoControl.prototype.setOptions = function (options) {
69006
+ var newOptions = new LogoControlOptions().merge(this.options, options);
69007
+ if (!newOptions.showLogo && this.logoAnchor) {
69008
+ this._addRemoveLogo(false);
69009
+ }
69010
+ else if (newOptions.showLogo && !this.logoAnchor) {
69011
+ this._addRemoveLogo(true);
69012
+ }
69013
+ this.options = newOptions;
69014
+ };
69015
+ LogoControl.prototype._addRemoveLogo = function (add) {
69016
+ var _a, _b;
68903
69017
  if (add) {
68904
69018
  this.logoAnchor = document.createElement("a");
68905
69019
  this.logoAnchor.className = "azure-map-logo";
@@ -68910,15 +69024,25 @@ uniform ${precision} ${type} u_${name};
68910
69024
  this.logoTooltip = buildAccessibleTooltip("Visit azure.microsoft.com");
68911
69025
  this.container.appendChild(this.logoTooltip);
68912
69026
  positionTooltip(this.logoTooltip, this.logoAnchor);
69027
+ this._setVisiblity(true);
68913
69028
  }
68914
69029
  else {
68915
- this.logoAnchor.remove();
68916
- this.logoTooltip.remove();
69030
+ (_a = this.logoAnchor) === null || _a === void 0 ? void 0 : _a.remove();
69031
+ (_b = this.logoTooltip) === null || _b === void 0 ? void 0 : _b.remove();
68917
69032
  delete this.logoAnchor;
69033
+ this._setVisiblity(false);
68918
69034
  }
68919
69035
  };
68920
- CopyrightControl.feedbackLink = "https://aka.ms/azuremapsdatafeedback?feedbackep=UrlAzureMapsWebSdk";
68921
- return CopyrightControl;
69036
+ /**
69037
+ * Set visibility of the control.
69038
+ */
69039
+ LogoControl.prototype._setVisiblity = function (visible) {
69040
+ if (this.container) {
69041
+ this.container.style.display = visible ? "flex" : "none";
69042
+ }
69043
+ };
69044
+ LogoControl.CONTAINER_MIN_WIDTH = 480; // The minimum width of the container to show the logo, 5 copyright texts, and the feedback link.
69045
+ return LogoControl;
68922
69046
  }(ControlBase));
68923
69047
 
68924
69048
  var __assign$4 = (window && window.__assign) || function () {
@@ -70552,6 +70676,17 @@ uniform ${precision} ${type} u_${name};
70552
70676
  _this.layers = mbLayers;
70553
70677
  return _this;
70554
70678
  }
70679
+ /**
70680
+ * Gets the options of the layer.
70681
+ */
70682
+ FundamentalMapLayer.prototype.getOptions = function () {
70683
+ return {};
70684
+ };
70685
+ /**
70686
+ * Sets the options of the layer.
70687
+ * @param options The new options of the layer.
70688
+ */
70689
+ FundamentalMapLayer.prototype.setOptions = function (options) { return; };
70555
70690
  /**
70556
70691
  * @internal
70557
70692
  */
@@ -73413,7 +73548,7 @@ uniform ${precision} ${type} u_${name};
73413
73548
  if (!_this.indoorState) {
73414
73549
  return !style.name.includes('indoor');
73415
73550
  // NOTE: azure-maps-indoor prior to 2.0.7 will not pass theme auto
73416
- // the IndoorModule will request getTheme() from StyleManager and will call StyleManager.setStyleSet(theme == 'dark ? 'indoor_dark' : 'indoor') as approperaite
73551
+ // the IndoorModule will request getTheme() from StyleManager and will call StyleManager.setStyleSet(theme == 'dark ? 'indoor_dark' : 'indoor') as approperaite
73417
73552
  }
73418
73553
  else if (_this.indoorState.theme === 'auto') {
73419
73554
  return style.name.endsWith(style.theme === 'dark' ? '_indoor_dark' : '_indoor');
@@ -73438,7 +73573,7 @@ uniform ${precision} ${type} u_${name};
73438
73573
  styleVersion: definitions.version !== undefined && definitions.version !== null
73439
73574
  ? definitions.version
73440
73575
  : _this.serviceOptions.styleDefinitionsVersion,
73441
- // thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
73576
+ // thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
73442
73577
  //language: styleOptions.language
73443
73578
  // add MapControlVersion to make sure we have different local cache between map control versions
73444
73579
  mcv: version.replace(/\./g, '')
@@ -73555,7 +73690,14 @@ uniform ${precision} ${type} u_${name};
73555
73690
  }
73556
73691
  if (layer) {
73557
73692
  var sourcesToCopy = new Set(Array.from(userLayer.layer._getSourceIds())
73558
- .map(function (sourceId) { return previousStyle.sources[sourceId] ? { source: previousStyle.sources[sourceId], id: sourceId } : undefined; })
73693
+ .map(function (sourceId) {
73694
+ // If source is already present in the target style, skip copy
73695
+ if (style.sources[sourceId]) {
73696
+ return undefined;
73697
+ }
73698
+ var source = previousStyle.sources[sourceId];
73699
+ return source ? { source: source, id: sourceId } : undefined;
73700
+ })
73559
73701
  .filter(function (source) { return source !== undefined; }));
73560
73702
  var insertIdx = beforeLayerId ? style.layers.findIndex(function (layer) { return layer.id === beforeLayerId; }) : -1;
73561
73703
  if (insertIdx > -1) {
@@ -73591,7 +73733,7 @@ uniform ${precision} ${type} u_${name};
73591
73733
  // FIXME: below diffing will be soon fixed on the maplibre side
73592
73734
  // If there was a previous styledata change event attached, remove it.
73593
73735
  // When the sprite url changes between style changes then maplibre can't perform the diff
73594
- // In such cases it recalculate the style again. Removing previous attached
73736
+ // In such cases it recalculate the style again. Removing previous attached
73595
73737
  // event listener makes sure that style changed event is not fired twice in these cases.
73596
73738
  _this.map.events.remove("styledata", styleDataCallback);
73597
73739
  _this.map.events.addOnce("styledata", styleDataCallback);
@@ -74067,7 +74209,7 @@ uniform ${precision} ${type} u_${name};
74067
74209
  /**
74068
74210
  * The callback used when styleOptions.autoResize is true.
74069
74211
  */
74070
- _this._windowResizeCallback = function () { return _this.resize(); };
74212
+ _this._resizeCallback = function () { return _this.resize(); };
74071
74213
  // Update global defaults based on which options were specified to this constructor.
74072
74214
  _this._updateGlobalDefaults(options);
74073
74215
  _this.serviceOptions = new ServiceOptions().merge(options);
@@ -74158,6 +74300,13 @@ uniform ${precision} ${type} u_${name};
74158
74300
  _this.controls.add(_this.copyrightControl, {
74159
74301
  position: exports.ControlPosition.NonFixed
74160
74302
  });
74303
+ // Add logo control to occupy the bottom left corner of the map.
74304
+ _this.logoControl = new LogoControl({
74305
+ showLogo: _this.styleOptions.showLogo
74306
+ });
74307
+ _this.controls.add(_this.logoControl, {
74308
+ position: exports.ControlPosition.BottomLeft
74309
+ });
74161
74310
  // Initialize state of map
74162
74311
  // --> Initialize the authentication manager
74163
74312
  var authManInit = _this.authentication ?
@@ -74343,8 +74492,9 @@ uniform ${precision} ${type} u_${name};
74343
74492
  if ('maxPitch' in options) {
74344
74493
  this.map.setMaxPitch(options.maxPitch);
74345
74494
  }
74346
- this.map.setMaxZoom(cameraBoundsOptions.maxZoom);
74347
- this._invokeEvent("maxzoomchanged", this.map.getMaxZoom());
74495
+ if ('minZoom' in options) {
74496
+ this.map.setMinZoom(options.minZoom);
74497
+ }
74348
74498
  maxBounds = this._generateSafeBounds(cameraBoundsOptions.maxBounds);
74349
74499
  }
74350
74500
  else {
@@ -74465,6 +74615,7 @@ uniform ${precision} ${type} u_${name};
74465
74615
  // Add or remove the logo if needed.
74466
74616
  if (newOptions.showLogo !== this.styleOptions.showLogo) {
74467
74617
  this.copyrightControl.setOptions({ showLogo: newOptions.showLogo });
74618
+ this.logoControl.setOptions({ showLogo: newOptions.showLogo });
74468
74619
  }
74469
74620
  // Update showing tile boundaries if needed.
74470
74621
  if (newOptions.showTileBoundaries !== this.styleOptions.showTileBoundaries) {
@@ -75043,13 +75194,14 @@ uniform ${precision} ${type} u_${name};
75043
75194
  * Clean up the map's resources. Map will not function correctly after calling this method.
75044
75195
  */
75045
75196
  Map.prototype.dispose = function () {
75046
- var _a;
75197
+ var _a, _b;
75047
75198
  this.clear();
75048
75199
  this.map.remove();
75049
75200
  (_a = this.authentication) === null || _a === void 0 ? void 0 : _a.dispose();
75050
75201
  this.removed = true;
75051
75202
  // Remove event listeners
75052
- window.removeEventListener("resize", this._windowResizeCallback);
75203
+ (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
75204
+ this.resizeObserver = null;
75053
75205
  while (this.getMapContainer().firstChild) {
75054
75206
  var currChild = this.getMapContainer().firstChild;
75055
75207
  this.getMapContainer().removeChild(currChild);
@@ -75278,10 +75430,15 @@ uniform ${precision} ${type} u_${name};
75278
75430
  */
75279
75431
  Map.prototype._setAutoResize = function (autoResize) {
75280
75432
  if (autoResize) {
75281
- window.addEventListener("resize", this._windowResizeCallback);
75433
+ if (!this.resizeObserver) {
75434
+ this.resizeObserver = new ResizeObserver(this._resizeCallback);
75435
+ }
75436
+ this.resizeObserver.observe(this.map.getContainer());
75282
75437
  }
75283
75438
  else {
75284
- window.removeEventListener("resize", this._windowResizeCallback);
75439
+ if (this.resizeObserver) {
75440
+ this.resizeObserver.unobserve(this.map.getContainer());
75441
+ }
75285
75442
  }
75286
75443
  };
75287
75444
  /**
@@ -76006,6 +76163,7 @@ uniform ${precision} ${type} u_${name};
76006
76163
  exports._hasSetView = _hasSetView;
76007
76164
  exports._hasWorkerCount = _hasWorkerCount;
76008
76165
  exports.addImageTemplate = addImageTemplate;
76166
+ exports.addProtocol = addProtocol;
76009
76167
  exports.clearPrewarmedResources = clearPrewarmedResources;
76010
76168
  exports.control = index$2;
76011
76169
  exports.data = index$4;
@@ -76030,6 +76188,7 @@ uniform ${precision} ${type} u_${name};
76030
76188
  exports.layer = index;
76031
76189
  exports.math = index$3;
76032
76190
  exports.prewarm = prewarm;
76191
+ exports.removeProtocol = removeProtocol;
76033
76192
  exports.setAuthenticationOptions = setAuthenticationOptions;
76034
76193
  exports.setDomain = setDomain;
76035
76194
  exports.setLanguage = setLanguage;