azure-maps-control 3.3.0 → 3.5.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$1i = (window && window.__extends) || (function () {
51658
+ var __extends$1k = (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$1i(UrlOptions, _super);
51693
+ __extends$1k(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.3.0";
52220
+ var version = "3.5.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$1h = (window && window.__extends) || (function () {
52252
+ var __extends$1j = (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$1h(AuthenticationOptions, _super);
52326
+ __extends$1j(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$1g = (window && window.__extends) || (function () {
53182
+ var __extends$1i = (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$1g(ControlOptions, _super);
53232
+ __extends$1i(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$1f = (window && window.__extends) || (function () {
53376
+ var __extends$1h = (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$1f(ControlBase, _super);
53396
+ __extends$1h(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$1e = (window && window.__extends) || (function () {
53498
+ var __extends$1g = (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$1e(CompassControlOptions, _super);
53517
+ __extends$1g(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$1d = (window && window.__extends) || (function () {
53542
+ var __extends$1f = (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$1d(CompassControl, _super);
53561
+ __extends$1f(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$1c = (window && window.__extends) || (function () {
53746
+ var __extends$1e = (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$1c(PitchControlOptions, _super);
53765
+ __extends$1e(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$1b = (window && window.__extends) || (function () {
53790
+ var __extends$1d = (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$1b(PitchControl, _super);
53809
+ __extends$1d(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$1a = (window && window.__extends) || (function () {
54037
+ var __extends$1c = (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$1a(ScaleControl, _super);
54056
+ __extends$1c(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$19 = (window && window.__extends) || (function () {
57574
+ var __extends$1b = (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$19(StyleControlOptions, _super);
57593
+ __extends$1b(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$18 = (window && window.__extends) || (function () {
57638
+ var __extends$1a = (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$18(StyleControl, _super);
57709
+ __extends$1a(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$17 = (window && window.__extends) || (function () {
58074
+ var __extends$19 = (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$17(TrafficOptions, _super);
58093
+ __extends$19(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$16 = (window && window.__extends) || (function () {
58118
+ var __extends$18 = (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$16(TrafficControlOptions, _super);
58137
+ __extends$18(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$15 = (window && window.__extends) || (function () {
58157
+ var __extends$17 = (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$15(TrafficControl, _super);
58176
+ __extends$17(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$14 = (window && window.__extends) || (function () {
58303
+ var __extends$16 = (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$14(TrafficLegendControl, _super);
58333
+ __extends$16(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$13 = (window && window.__extends) || (function () {
59067
+ var __extends$15 = (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$13(Pixel, _super);
59086
+ __extends$15(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$12 = (window && window.__extends) || (function () {
61306
+ var __extends$14 = (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$12(Position, _super);
61326
+ __extends$14(Position, _super);
61312
61327
  /**
61313
61328
  * Constructs a Position.
61314
61329
  * @param longitude The position's longitude.
@@ -61500,7 +61515,7 @@ uniform ${precision} ${type} u_${name};
61500
61515
  return Polygon;
61501
61516
  }());
61502
61517
 
61503
- var __extends$11 = (window && window.__extends) || (function () {
61518
+ var __extends$13 = (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$11(Shape, _super);
61548
+ __extends$13(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$10 = (window && window.__extends) || (function () {
61844
+ var __extends$12 = (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$10(BoundingBox, _super);
61877
+ __extends$12(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$$ = (window && window.__extends) || (function () {
62594
+ var __extends$11 = (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$$(MercatorPoint, _super);
62625
+ __extends$11(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$_ = (window && window.__extends) || (function () {
63114
+ var __extends$10 = (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$_(ZoomControlOptions, _super);
63133
+ __extends$10(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$Z = (window && window.__extends) || (function () {
63153
+ var __extends$$ = (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$Z(ZoomControl, _super);
63172
+ __extends$$(ZoomControl, _super);
63158
63173
  /**
63159
63174
  * Constructs a ZoomControl.
63160
63175
  * @param options The options for the control.
@@ -63268,10 +63283,169 @@ uniform ${precision} ${type} u_${name};
63268
63283
  return ZoomControl;
63269
63284
  }(ControlBase));
63270
63285
 
63286
+ var __extends$_ = (window && window.__extends) || (function () {
63287
+ var extendStatics = function (d, b) {
63288
+ extendStatics = Object.setPrototypeOf ||
63289
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
63290
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
63291
+ return extendStatics(d, b);
63292
+ };
63293
+ return function (d, b) {
63294
+ if (typeof b !== "function" && b !== null)
63295
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
63296
+ extendStatics(d, b);
63297
+ function __() { this.constructor = d; }
63298
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63299
+ };
63300
+ })();
63301
+ /**
63302
+ * The options for a FullscreenControl object.
63303
+ */
63304
+ var FullscreenControlOptions = /** @class */ (function (_super) {
63305
+ __extends$_(FullscreenControlOptions, _super);
63306
+ function FullscreenControlOptions() {
63307
+ var _this = _super !== null && _super.apply(this, arguments) || this;
63308
+ /**
63309
+ * The style of the control.
63310
+ * Default `ControlStyle.light`
63311
+ * @default ControlStyle.light
63312
+ */
63313
+ _this.style = exports.ControlStyle.light;
63314
+ /**
63315
+ * Indicates if the control should be hidden if the browser does not support fullscreen mode.
63316
+ * Default `false`
63317
+ * @default false
63318
+ */
63319
+ _this.hideIfUnsupported = false;
63320
+ /**
63321
+ * The HTML element which should be made full screen.
63322
+ * If not specified, the map container element will be used.
63323
+ */
63324
+ _this.container = undefined;
63325
+ return _this;
63326
+ }
63327
+ return FullscreenControlOptions;
63328
+ }(Options));
63329
+
63330
+ var __extends$Z = (window && window.__extends) || (function () {
63331
+ var extendStatics = function (d, b) {
63332
+ extendStatics = Object.setPrototypeOf ||
63333
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
63334
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
63335
+ return extendStatics(d, b);
63336
+ };
63337
+ return function (d, b) {
63338
+ if (typeof b !== "function" && b !== null)
63339
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
63340
+ extendStatics(d, b);
63341
+ function __() { this.constructor = d; }
63342
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63343
+ };
63344
+ })();
63345
+ /**
63346
+ * A control to make the map or a specified element fullscreen.
63347
+ */
63348
+ var FullscreenControl = /** @class */ (function (_super) {
63349
+ __extends$Z(FullscreenControl, _super);
63350
+ /**
63351
+ * A control to make the map or a specified element fullscreen.
63352
+ * @param options Options for defining how the control is rendered and the container to be made fullscreen.
63353
+ */
63354
+ function FullscreenControl(options) {
63355
+ var _this = _super.call(this) || this;
63356
+ _this.map = null;
63357
+ _this.isFullscreenState = false;
63358
+ _this.options = new FullscreenControlOptions().merge(options);
63359
+ _this.control = new maplibregl.FullscreenControl({
63360
+ container: _this.options.container,
63361
+ });
63362
+ return _this;
63363
+ }
63364
+ /**
63365
+ * Initialization method for the control which is called when added to the map.
63366
+ * @param map The map that the control will be added to.
63367
+ * @param options The ControlOptions for this control.
63368
+ * @return An HTMLElement to be placed on the map for the control.
63369
+ */
63370
+ FullscreenControl.prototype.onAdd = function (map) {
63371
+ var _this = this;
63372
+ var _a, _b;
63373
+ this.map = map;
63374
+ (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a._getMap()) === null || _b === void 0 ? void 0 : _b.addControl(this.control);
63375
+ var container = this.buildContainer(map, this.options.style, "Fullscreen Control");
63376
+ var fullscreenButton = this.control._fullscreenButton;
63377
+ if (fullscreenButton) {
63378
+ var icon_1 = fullscreenButton.querySelector("span");
63379
+ if (icon_1) {
63380
+ var tooltip_1 = buildAccessibleTooltip("Enter Fullscreen");
63381
+ container.appendChild(fullscreenButton);
63382
+ // Add classes for styling.
63383
+ fullscreenButton.classList.add("azure-maps-control-button", "fullscreen");
63384
+ icon_1.classList.add("fullscreen-icon", "fullscreen-end");
63385
+ // Add the tooltip and prevent the default one set by Maplibre.
63386
+ fullscreenButton.removeAttribute("title"); // A title attribute will be converted to a tooltip by the browser.
63387
+ container.appendChild(tooltip_1);
63388
+ positionTooltip(tooltip_1, fullscreenButton);
63389
+ // Update the icon and the tooltip based on the fullscreen state.
63390
+ this.control.on("fullscreenstart", function () {
63391
+ // Remove the title attribute added automatically whenever fullscreen event is fired
63392
+ fullscreenButton.removeAttribute("title");
63393
+ icon_1.classList.remove("fullscreen-end");
63394
+ icon_1.classList.add("fullscreen-start");
63395
+ tooltip_1.innerText = "Exit Fullscreen";
63396
+ _this.isFullscreenState = true;
63397
+ });
63398
+ this.control.on("fullscreenend", function () {
63399
+ fullscreenButton.removeAttribute("title");
63400
+ icon_1.classList.remove("fullscreen-start");
63401
+ icon_1.classList.add("fullscreen-end");
63402
+ tooltip_1.innerText = "Enter Fullscreen";
63403
+ _this.isFullscreenState = false;
63404
+ });
63405
+ }
63406
+ }
63407
+ // Invisiblize the control if the browser does not support fullscreen mode.
63408
+ if (this.options.hideIfUnsupported && !FullscreenControl.isSupported()) {
63409
+ container.style.display = "none";
63410
+ }
63411
+ return container;
63412
+ };
63413
+ /**
63414
+ * Method that is called when the control is removed from the map. Should perform any necessary cleanup for the
63415
+ * control.
63416
+ */
63417
+ FullscreenControl.prototype.onRemove = function () {
63418
+ var _a, _b;
63419
+ _super.prototype.onRemove.call(this);
63420
+ (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a._getMap()) === null || _b === void 0 ? void 0 : _b.removeControl(this.control);
63421
+ this.map = null;
63422
+ };
63423
+ /**
63424
+ * Gets the current fullscreen state of the map.
63425
+ * @returns A boolean indicating if the map is in fullscreen mode.
63426
+ */
63427
+ FullscreenControl.prototype.isFullscreen = function () {
63428
+ return this.isFullscreenState;
63429
+ };
63430
+ /**
63431
+ * Checks to see if the browser supports going into fullscreen mode.
63432
+ * @returns A boolean indicating if the browser supports fullscreen mode.
63433
+ */
63434
+ FullscreenControl.isSupported = function () {
63435
+ var d = document;
63436
+ return d['fullscreenEnabled'] ||
63437
+ d['msFullscreenEnabled'] ||
63438
+ d['mozFullScreenEnabled'] ||
63439
+ d['webkitFullscreenEnabled'];
63440
+ };
63441
+ return FullscreenControl;
63442
+ }(ControlBase));
63443
+
63271
63444
  var index$2 = /*#__PURE__*/Object.freeze({
63272
63445
  __proto__: null,
63273
63446
  CompassControl: CompassControl,
63274
63447
  ControlBase: ControlBase,
63448
+ FullscreenControl: FullscreenControl,
63275
63449
  PitchControl: PitchControl,
63276
63450
  ScaleControl: ScaleControl,
63277
63451
  StyleControl: StyleControl,
@@ -74194,7 +74368,7 @@ uniform ${precision} ${type} u_${name};
74194
74368
  /**
74195
74369
  * The callback used when styleOptions.autoResize is true.
74196
74370
  */
74197
- _this._windowResizeCallback = function () { return _this.resize(); };
74371
+ _this._resizeCallback = function () { return _this.resize(); };
74198
74372
  // Update global defaults based on which options were specified to this constructor.
74199
74373
  _this._updateGlobalDefaults(options);
74200
74374
  _this.serviceOptions = new ServiceOptions().merge(options);
@@ -74477,8 +74651,9 @@ uniform ${precision} ${type} u_${name};
74477
74651
  if ('maxPitch' in options) {
74478
74652
  this.map.setMaxPitch(options.maxPitch);
74479
74653
  }
74480
- this.map.setMaxZoom(cameraBoundsOptions.maxZoom);
74481
- this._invokeEvent("maxzoomchanged", this.map.getMaxZoom());
74654
+ if ('minZoom' in options) {
74655
+ this.map.setMinZoom(options.minZoom);
74656
+ }
74482
74657
  maxBounds = this._generateSafeBounds(cameraBoundsOptions.maxBounds);
74483
74658
  }
74484
74659
  else {
@@ -75178,13 +75353,14 @@ uniform ${precision} ${type} u_${name};
75178
75353
  * Clean up the map's resources. Map will not function correctly after calling this method.
75179
75354
  */
75180
75355
  Map.prototype.dispose = function () {
75181
- var _a;
75356
+ var _a, _b;
75182
75357
  this.clear();
75183
75358
  this.map.remove();
75184
75359
  (_a = this.authentication) === null || _a === void 0 ? void 0 : _a.dispose();
75185
75360
  this.removed = true;
75186
75361
  // Remove event listeners
75187
- window.removeEventListener("resize", this._windowResizeCallback);
75362
+ (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
75363
+ this.resizeObserver = null;
75188
75364
  while (this.getMapContainer().firstChild) {
75189
75365
  var currChild = this.getMapContainer().firstChild;
75190
75366
  this.getMapContainer().removeChild(currChild);
@@ -75413,10 +75589,15 @@ uniform ${precision} ${type} u_${name};
75413
75589
  */
75414
75590
  Map.prototype._setAutoResize = function (autoResize) {
75415
75591
  if (autoResize) {
75416
- window.addEventListener("resize", this._windowResizeCallback);
75592
+ if (!this.resizeObserver) {
75593
+ this.resizeObserver = new ResizeObserver(this._resizeCallback);
75594
+ }
75595
+ this.resizeObserver.observe(this.map.getContainer());
75417
75596
  }
75418
75597
  else {
75419
- window.removeEventListener("resize", this._windowResizeCallback);
75598
+ if (this.resizeObserver) {
75599
+ this.resizeObserver.unobserve(this.map.getContainer());
75600
+ }
75420
75601
  }
75421
75602
  };
75422
75603
  /**
@@ -76141,6 +76322,7 @@ uniform ${precision} ${type} u_${name};
76141
76322
  exports._hasSetView = _hasSetView;
76142
76323
  exports._hasWorkerCount = _hasWorkerCount;
76143
76324
  exports.addImageTemplate = addImageTemplate;
76325
+ exports.addProtocol = addProtocol;
76144
76326
  exports.clearPrewarmedResources = clearPrewarmedResources;
76145
76327
  exports.control = index$2;
76146
76328
  exports.data = index$4;
@@ -76165,6 +76347,7 @@ uniform ${precision} ${type} u_${name};
76165
76347
  exports.layer = index;
76166
76348
  exports.math = index$3;
76167
76349
  exports.prewarm = prewarm;
76350
+ exports.removeProtocol = removeProtocol;
76168
76351
  exports.setAuthenticationOptions = setAuthenticationOptions;
76169
76352
  exports.setDomain = setDomain;
76170
76353
  exports.setLanguage = setLanguage;