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.
- package/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +235 -52
- package/dist/atlas-core-bare.js +236 -53
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +235 -52
- package/dist/atlas-core.js +236 -53
- package/dist/atlas-core.min.js +3 -3
- package/dist/atlas-esm.js +3539 -6020
- package/dist/atlas-esm.min.js +3 -3
- package/dist/atlas.css +27 -1
- package/dist/atlas.js +3538 -6019
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +2 -2
- package/package.json +10 -9
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +79 -1
package/dist/atlas-core.js
CHANGED
|
@@ -51655,7 +51655,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
51655
51655
|
return Options;
|
|
51656
51656
|
}());
|
|
51657
51657
|
|
|
51658
|
-
var __extends$
|
|
51658
|
+
var __extends$1n = (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$
|
|
51693
|
+
__extends$1n(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$2 = "3.
|
|
52220
|
+
var version$2 = "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$
|
|
52252
|
+
var __extends$1m = (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$
|
|
52326
|
+
__extends$1m(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$
|
|
53182
|
+
var __extends$1l = (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$
|
|
53232
|
+
__extends$1l(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$
|
|
53376
|
+
var __extends$1k = (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$
|
|
53396
|
+
__extends$1k(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$
|
|
53498
|
+
var __extends$1j = (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$
|
|
53517
|
+
__extends$1j(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$
|
|
53542
|
+
var __extends$1i = (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$
|
|
53561
|
+
__extends$1i(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$
|
|
53746
|
+
var __extends$1h = (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$
|
|
53765
|
+
__extends$1h(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$
|
|
53790
|
+
var __extends$1g = (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$
|
|
53809
|
+
__extends$1g(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$
|
|
54037
|
+
var __extends$1f = (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$
|
|
54056
|
+
__extends$1f(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$
|
|
57574
|
+
var __extends$1e = (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$
|
|
57593
|
+
__extends$1e(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$
|
|
57638
|
+
var __extends$1d = (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$
|
|
57709
|
+
__extends$1d(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$
|
|
58074
|
+
var __extends$1c = (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$
|
|
58093
|
+
__extends$1c(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$
|
|
58118
|
+
var __extends$1b = (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$
|
|
58137
|
+
__extends$1b(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$
|
|
58157
|
+
var __extends$1a = (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$
|
|
58176
|
+
__extends$1a(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$
|
|
58303
|
+
var __extends$19 = (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$
|
|
58333
|
+
__extends$19(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$
|
|
59067
|
+
var __extends$18 = (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$
|
|
59086
|
+
__extends$18(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$
|
|
61306
|
+
var __extends$17 = (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$
|
|
61326
|
+
__extends$17(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$
|
|
61518
|
+
var __extends$16 = (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$
|
|
61548
|
+
__extends$16(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$
|
|
61844
|
+
var __extends$15 = (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$
|
|
61877
|
+
__extends$15(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$
|
|
62594
|
+
var __extends$14 = (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$
|
|
62625
|
+
__extends$14(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$
|
|
63114
|
+
var __extends$13 = (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$
|
|
63133
|
+
__extends$13(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$
|
|
63153
|
+
var __extends$12 = (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$
|
|
63172
|
+
__extends$12(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$11 = (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$11(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$10 = (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$10(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,
|
|
@@ -74638,7 +74812,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
74638
74812
|
this.loadAttributionOnceSourcesLoaded = function () {
|
|
74639
74813
|
var sources = _this.getMapStyleVisibleSources();
|
|
74640
74814
|
Promise.all(sources.map(function (source) { return new Promise(function (resolve, reject) {
|
|
74641
|
-
if ('tiles' in source) {
|
|
74815
|
+
if ('tiles' in source || (source === null || source === void 0 ? void 0 : source.type) === 'geojson') {
|
|
74642
74816
|
resolve(source);
|
|
74643
74817
|
// TileJSON source may yet be unresolved
|
|
74644
74818
|
}
|
|
@@ -97855,7 +98029,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
97855
98029
|
/**
|
|
97856
98030
|
* The callback used when styleOptions.autoResize is true.
|
|
97857
98031
|
*/
|
|
97858
|
-
_this.
|
|
98032
|
+
_this._resizeCallback = function () { return _this.resize(); };
|
|
97859
98033
|
// Update global defaults based on which options were specified to this constructor.
|
|
97860
98034
|
_this._updateGlobalDefaults(options);
|
|
97861
98035
|
_this.serviceOptions = new ServiceOptions().merge(options);
|
|
@@ -98144,8 +98318,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
98144
98318
|
if ('maxPitch' in options) {
|
|
98145
98319
|
this.map.setMaxPitch(options.maxPitch);
|
|
98146
98320
|
}
|
|
98147
|
-
|
|
98148
|
-
|
|
98321
|
+
if ('minZoom' in options) {
|
|
98322
|
+
this.map.setMinZoom(options.minZoom);
|
|
98323
|
+
}
|
|
98149
98324
|
maxBounds = this._generateSafeBounds(cameraBoundsOptions.maxBounds);
|
|
98150
98325
|
}
|
|
98151
98326
|
else {
|
|
@@ -98845,13 +99020,14 @@ uniform ${precision} ${type} u_${name};
|
|
|
98845
99020
|
* Clean up the map's resources. Map will not function correctly after calling this method.
|
|
98846
99021
|
*/
|
|
98847
99022
|
Map.prototype.dispose = function () {
|
|
98848
|
-
var _a;
|
|
99023
|
+
var _a, _b;
|
|
98849
99024
|
this.clear();
|
|
98850
99025
|
this.map.remove();
|
|
98851
99026
|
(_a = this.authentication) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
98852
99027
|
this.removed = true;
|
|
98853
99028
|
// Remove event listeners
|
|
98854
|
-
|
|
99029
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
99030
|
+
this.resizeObserver = null;
|
|
98855
99031
|
while (this.getMapContainer().firstChild) {
|
|
98856
99032
|
var currChild = this.getMapContainer().firstChild;
|
|
98857
99033
|
this.getMapContainer().removeChild(currChild);
|
|
@@ -99080,10 +99256,15 @@ uniform ${precision} ${type} u_${name};
|
|
|
99080
99256
|
*/
|
|
99081
99257
|
Map.prototype._setAutoResize = function (autoResize) {
|
|
99082
99258
|
if (autoResize) {
|
|
99083
|
-
|
|
99259
|
+
if (!this.resizeObserver) {
|
|
99260
|
+
this.resizeObserver = new ResizeObserver(this._resizeCallback);
|
|
99261
|
+
}
|
|
99262
|
+
this.resizeObserver.observe(this.map.getContainer());
|
|
99084
99263
|
}
|
|
99085
99264
|
else {
|
|
99086
|
-
|
|
99265
|
+
if (this.resizeObserver) {
|
|
99266
|
+
this.resizeObserver.unobserve(this.map.getContainer());
|
|
99267
|
+
}
|
|
99087
99268
|
}
|
|
99088
99269
|
};
|
|
99089
99270
|
/**
|
|
@@ -99813,6 +99994,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
99813
99994
|
exports._hasSetView = _hasSetView;
|
|
99814
99995
|
exports._hasWorkerCount = _hasWorkerCount;
|
|
99815
99996
|
exports.addImageTemplate = addImageTemplate;
|
|
99997
|
+
exports.addProtocol = addProtocol;
|
|
99816
99998
|
exports.clearPrewarmedResources = clearPrewarmedResources;
|
|
99817
99999
|
exports.control = index$2;
|
|
99818
100000
|
exports.data = index$4;
|
|
@@ -99837,6 +100019,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
99837
100019
|
exports.layer = index;
|
|
99838
100020
|
exports.math = index$3;
|
|
99839
100021
|
exports.prewarm = prewarm;
|
|
100022
|
+
exports.removeProtocol = removeProtocol;
|
|
99840
100023
|
exports.setAuthenticationOptions = setAuthenticationOptions;
|
|
99841
100024
|
exports.setDomain = setDomain;
|
|
99842
100025
|
exports.setLanguage = setLanguage;
|