azure-maps-control 3.4.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 +204 -45
- package/dist/atlas-core-bare.js +204 -45
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +204 -45
- package/dist/atlas-core.js +204 -45
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas-esm.js +204 -45
- package/dist/atlas-esm.min.js +1 -1
- package/dist/atlas.css +22 -0
- package/dist/atlas.js +204 -45
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +1 -1
- package/package.json +7 -7
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +67 -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
|
/**
|
|
@@ -53179,7 +53179,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53179
53179
|
eventTarget.addEventListener("keydown", dismissTooltip);
|
|
53180
53180
|
};
|
|
53181
53181
|
|
|
53182
|
-
var __extends$
|
|
53182
|
+
var __extends$1l = (window && window.__extends) || (function () {
|
|
53183
53183
|
var extendStatics = function (d, b) {
|
|
53184
53184
|
extendStatics = Object.setPrototypeOf ||
|
|
53185
53185
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53229,7 +53229,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53229
53229
|
* The options for adding a control to the map.
|
|
53230
53230
|
*/
|
|
53231
53231
|
var ControlOptions = /** @class */ (function (_super) {
|
|
53232
|
-
__extends$
|
|
53232
|
+
__extends$1l(ControlOptions, _super);
|
|
53233
53233
|
function ControlOptions() {
|
|
53234
53234
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53235
53235
|
/**
|
|
@@ -53373,7 +53373,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53373
53373
|
EventEmitter: EventEmitter
|
|
53374
53374
|
});
|
|
53375
53375
|
|
|
53376
|
-
var __extends$
|
|
53376
|
+
var __extends$1k = (window && window.__extends) || (function () {
|
|
53377
53377
|
var extendStatics = function (d, b) {
|
|
53378
53378
|
extendStatics = Object.setPrototypeOf ||
|
|
53379
53379
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53393,7 +53393,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53393
53393
|
* Implements control interface and provides support for automatic styling based on the map style.
|
|
53394
53394
|
*/
|
|
53395
53395
|
var ControlBase = /** @class */ (function (_super) {
|
|
53396
|
-
__extends$
|
|
53396
|
+
__extends$1k(ControlBase, _super);
|
|
53397
53397
|
function ControlBase() {
|
|
53398
53398
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53399
53399
|
/**
|
|
@@ -53495,7 +53495,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53495
53495
|
return ControlBase;
|
|
53496
53496
|
}(EventEmitter));
|
|
53497
53497
|
|
|
53498
|
-
var __extends$
|
|
53498
|
+
var __extends$1j = (window && window.__extends) || (function () {
|
|
53499
53499
|
var extendStatics = function (d, b) {
|
|
53500
53500
|
extendStatics = Object.setPrototypeOf ||
|
|
53501
53501
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53514,7 +53514,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53514
53514
|
* The options for a CompassControl object.
|
|
53515
53515
|
*/
|
|
53516
53516
|
var CompassControlOptions = /** @class */ (function (_super) {
|
|
53517
|
-
__extends$
|
|
53517
|
+
__extends$1j(CompassControlOptions, _super);
|
|
53518
53518
|
function CompassControlOptions() {
|
|
53519
53519
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53520
53520
|
/**
|
|
@@ -53539,7 +53539,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53539
53539
|
return CompassControlOptions;
|
|
53540
53540
|
}(Options));
|
|
53541
53541
|
|
|
53542
|
-
var __extends$
|
|
53542
|
+
var __extends$1i = (window && window.__extends) || (function () {
|
|
53543
53543
|
var extendStatics = function (d, b) {
|
|
53544
53544
|
extendStatics = Object.setPrototypeOf ||
|
|
53545
53545
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53558,7 +53558,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53558
53558
|
* A control for changing the rotation of the map.
|
|
53559
53559
|
*/
|
|
53560
53560
|
var CompassControl = /** @class */ (function (_super) {
|
|
53561
|
-
__extends$
|
|
53561
|
+
__extends$1i(CompassControl, _super);
|
|
53562
53562
|
/**
|
|
53563
53563
|
* Constructs a CompassControl.
|
|
53564
53564
|
* @param options The options for the control.
|
|
@@ -53743,7 +53743,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53743
53743
|
return CompassControl;
|
|
53744
53744
|
}(ControlBase));
|
|
53745
53745
|
|
|
53746
|
-
var __extends$
|
|
53746
|
+
var __extends$1h = (window && window.__extends) || (function () {
|
|
53747
53747
|
var extendStatics = function (d, b) {
|
|
53748
53748
|
extendStatics = Object.setPrototypeOf ||
|
|
53749
53749
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53762,7 +53762,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53762
53762
|
* The options for a PitchControl object.
|
|
53763
53763
|
*/
|
|
53764
53764
|
var PitchControlOptions = /** @class */ (function (_super) {
|
|
53765
|
-
__extends$
|
|
53765
|
+
__extends$1h(PitchControlOptions, _super);
|
|
53766
53766
|
function PitchControlOptions() {
|
|
53767
53767
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53768
53768
|
/**
|
|
@@ -53787,7 +53787,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53787
53787
|
return PitchControlOptions;
|
|
53788
53788
|
}(Options));
|
|
53789
53789
|
|
|
53790
|
-
var __extends$
|
|
53790
|
+
var __extends$1g = (window && window.__extends) || (function () {
|
|
53791
53791
|
var extendStatics = function (d, b) {
|
|
53792
53792
|
extendStatics = Object.setPrototypeOf ||
|
|
53793
53793
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53806,7 +53806,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53806
53806
|
* A control for changing the pitch of the map.
|
|
53807
53807
|
*/
|
|
53808
53808
|
var PitchControl = /** @class */ (function (_super) {
|
|
53809
|
-
__extends$
|
|
53809
|
+
__extends$1g(PitchControl, _super);
|
|
53810
53810
|
/**
|
|
53811
53811
|
* Constructs a PitchControl.
|
|
53812
53812
|
* @param options The options for the control.
|
|
@@ -54034,7 +54034,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
54034
54034
|
return PitchControl;
|
|
54035
54035
|
}(ControlBase));
|
|
54036
54036
|
|
|
54037
|
-
var __extends$
|
|
54037
|
+
var __extends$1f = (window && window.__extends) || (function () {
|
|
54038
54038
|
var extendStatics = function (d, b) {
|
|
54039
54039
|
extendStatics = Object.setPrototypeOf ||
|
|
54040
54040
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -54053,7 +54053,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
54053
54053
|
* A control to display a scale bar on the map.
|
|
54054
54054
|
*/
|
|
54055
54055
|
var ScaleControl = /** @class */ (function (_super) {
|
|
54056
|
-
__extends$
|
|
54056
|
+
__extends$1f(ScaleControl, _super);
|
|
54057
54057
|
/**
|
|
54058
54058
|
* A control to displays a scale bar relative to the pixel resolution at the center of the map.
|
|
54059
54059
|
* @param options Options for defining how the control is rendered and functions.
|
|
@@ -57571,7 +57571,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57571
57571
|
|
|
57572
57572
|
var merge$1 = /*@__PURE__*/getDefaultExportFromCjs(merge_1);
|
|
57573
57573
|
|
|
57574
|
-
var __extends$
|
|
57574
|
+
var __extends$1e = (window && window.__extends) || (function () {
|
|
57575
57575
|
var extendStatics = function (d, b) {
|
|
57576
57576
|
extendStatics = Object.setPrototypeOf ||
|
|
57577
57577
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -57590,7 +57590,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57590
57590
|
* The options for a StyleControl object.
|
|
57591
57591
|
*/
|
|
57592
57592
|
var StyleControlOptions = /** @class */ (function (_super) {
|
|
57593
|
-
__extends$
|
|
57593
|
+
__extends$1e(StyleControlOptions, _super);
|
|
57594
57594
|
function StyleControlOptions() {
|
|
57595
57595
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57596
57596
|
/**
|
|
@@ -57635,7 +57635,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57635
57635
|
return StyleControlOptions;
|
|
57636
57636
|
}(Options));
|
|
57637
57637
|
|
|
57638
|
-
var __extends$
|
|
57638
|
+
var __extends$1d = (window && window.__extends) || (function () {
|
|
57639
57639
|
var extendStatics = function (d, b) {
|
|
57640
57640
|
extendStatics = Object.setPrototypeOf ||
|
|
57641
57641
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -57706,7 +57706,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57706
57706
|
* A control for changing the style of the map.
|
|
57707
57707
|
*/
|
|
57708
57708
|
var StyleControl = /** @class */ (function (_super) {
|
|
57709
|
-
__extends$
|
|
57709
|
+
__extends$1d(StyleControl, _super);
|
|
57710
57710
|
/**
|
|
57711
57711
|
* Constructs a StyleControl.
|
|
57712
57712
|
* @param options The options for the control.
|
|
@@ -58071,7 +58071,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58071
58071
|
return StyleControl;
|
|
58072
58072
|
}(ControlBase));
|
|
58073
58073
|
|
|
58074
|
-
var __extends$
|
|
58074
|
+
var __extends$1c = (window && window.__extends) || (function () {
|
|
58075
58075
|
var extendStatics = function (d, b) {
|
|
58076
58076
|
extendStatics = Object.setPrototypeOf ||
|
|
58077
58077
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58090,7 +58090,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58090
58090
|
* The options for setting traffic on the map.
|
|
58091
58091
|
*/
|
|
58092
58092
|
var TrafficOptions = /** @class */ (function (_super) {
|
|
58093
|
-
__extends$
|
|
58093
|
+
__extends$1c(TrafficOptions, _super);
|
|
58094
58094
|
function TrafficOptions() {
|
|
58095
58095
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
58096
58096
|
/**
|
|
@@ -58115,7 +58115,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58115
58115
|
return TrafficOptions;
|
|
58116
58116
|
}(Options));
|
|
58117
58117
|
|
|
58118
|
-
var __extends$
|
|
58118
|
+
var __extends$1b = (window && window.__extends) || (function () {
|
|
58119
58119
|
var extendStatics = function (d, b) {
|
|
58120
58120
|
extendStatics = Object.setPrototypeOf ||
|
|
58121
58121
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58134,7 +58134,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58134
58134
|
* The options for a TrafficControl object.
|
|
58135
58135
|
*/
|
|
58136
58136
|
var TrafficControlOptions = /** @class */ (function (_super) {
|
|
58137
|
-
__extends$
|
|
58137
|
+
__extends$1b(TrafficControlOptions, _super);
|
|
58138
58138
|
function TrafficControlOptions() {
|
|
58139
58139
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
58140
58140
|
/**
|
|
@@ -58154,7 +58154,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58154
58154
|
return TrafficControlOptions;
|
|
58155
58155
|
}(TrafficOptions));
|
|
58156
58156
|
|
|
58157
|
-
var __extends$
|
|
58157
|
+
var __extends$1a = (window && window.__extends) || (function () {
|
|
58158
58158
|
var extendStatics = function (d, b) {
|
|
58159
58159
|
extendStatics = Object.setPrototypeOf ||
|
|
58160
58160
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58173,7 +58173,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58173
58173
|
* A control that toggles traffic data on the map.
|
|
58174
58174
|
*/
|
|
58175
58175
|
var TrafficControl = /** @class */ (function (_super) {
|
|
58176
|
-
__extends$
|
|
58176
|
+
__extends$1a(TrafficControl, _super);
|
|
58177
58177
|
/**
|
|
58178
58178
|
* Constructs a TrafficControl
|
|
58179
58179
|
* @param options The options for the control.
|
|
@@ -58300,7 +58300,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58300
58300
|
return TrafficControl;
|
|
58301
58301
|
}(ControlBase));
|
|
58302
58302
|
|
|
58303
|
-
var __extends$
|
|
58303
|
+
var __extends$19 = (window && window.__extends) || (function () {
|
|
58304
58304
|
var extendStatics = function (d, b) {
|
|
58305
58305
|
extendStatics = Object.setPrototypeOf ||
|
|
58306
58306
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58330,7 +58330,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58330
58330
|
* A control that display traffic legend on the map.
|
|
58331
58331
|
*/
|
|
58332
58332
|
var TrafficLegendControl = /** @class */ (function (_super) {
|
|
58333
|
-
__extends$
|
|
58333
|
+
__extends$19(TrafficLegendControl, _super);
|
|
58334
58334
|
/**
|
|
58335
58335
|
* Construct a traffic legend control
|
|
58336
58336
|
*/
|
|
@@ -59064,7 +59064,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
59064
59064
|
return Feature;
|
|
59065
59065
|
}());
|
|
59066
59066
|
|
|
59067
|
-
var __extends$
|
|
59067
|
+
var __extends$18 = (window && window.__extends) || (function () {
|
|
59068
59068
|
var extendStatics = function (d, b) {
|
|
59069
59069
|
extendStatics = Object.setPrototypeOf ||
|
|
59070
59070
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -59083,7 +59083,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
59083
59083
|
* Represent a pixel coordinate or offset. Extends an array of [x, y].
|
|
59084
59084
|
*/
|
|
59085
59085
|
var Pixel = /** @class */ (function (_super) {
|
|
59086
|
-
__extends$
|
|
59086
|
+
__extends$18(Pixel, _super);
|
|
59087
59087
|
/**
|
|
59088
59088
|
* Constructs a Pixel object and initializes it with the specified x and y coordinates.
|
|
59089
59089
|
* @param x The horizontal pixel offset.
|
|
@@ -61303,7 +61303,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61303
61303
|
return result;
|
|
61304
61304
|
}
|
|
61305
61305
|
|
|
61306
|
-
var __extends$
|
|
61306
|
+
var __extends$17 = (window && window.__extends) || (function () {
|
|
61307
61307
|
var extendStatics = function (d, b) {
|
|
61308
61308
|
extendStatics = Object.setPrototypeOf ||
|
|
61309
61309
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61323,7 +61323,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61323
61323
|
* full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
|
|
61324
61324
|
*/
|
|
61325
61325
|
var Position = /** @class */ (function (_super) {
|
|
61326
|
-
__extends$
|
|
61326
|
+
__extends$17(Position, _super);
|
|
61327
61327
|
/**
|
|
61328
61328
|
* Constructs a Position.
|
|
61329
61329
|
* @param longitude The position's longitude.
|
|
@@ -61515,7 +61515,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61515
61515
|
return Polygon;
|
|
61516
61516
|
}());
|
|
61517
61517
|
|
|
61518
|
-
var __extends$
|
|
61518
|
+
var __extends$16 = (window && window.__extends) || (function () {
|
|
61519
61519
|
var extendStatics = function (d, b) {
|
|
61520
61520
|
extendStatics = Object.setPrototypeOf ||
|
|
61521
61521
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61545,7 +61545,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61545
61545
|
* A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
|
|
61546
61546
|
*/
|
|
61547
61547
|
var Shape = /** @class */ (function (_super) {
|
|
61548
|
-
__extends$
|
|
61548
|
+
__extends$16(Shape, _super);
|
|
61549
61549
|
function Shape(data, id, properties) {
|
|
61550
61550
|
var _this = _super.call(this) || this;
|
|
61551
61551
|
var geometry;
|
|
@@ -61841,7 +61841,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61841
61841
|
return Shape;
|
|
61842
61842
|
}(EventEmitter));
|
|
61843
61843
|
|
|
61844
|
-
var __extends$
|
|
61844
|
+
var __extends$15 = (window && window.__extends) || (function () {
|
|
61845
61845
|
var extendStatics = function (d, b) {
|
|
61846
61846
|
extendStatics = Object.setPrototypeOf ||
|
|
61847
61847
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61874,7 +61874,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61874
61874
|
* [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
|
|
61875
61875
|
*/
|
|
61876
61876
|
var BoundingBox = /** @class */ (function (_super) {
|
|
61877
|
-
__extends$
|
|
61877
|
+
__extends$15(BoundingBox, _super);
|
|
61878
61878
|
function BoundingBox(southwestPositionOrPositions, northeastPosition) {
|
|
61879
61879
|
var _this = this;
|
|
61880
61880
|
if (southwestPositionOrPositions && northeastPosition) {
|
|
@@ -62591,7 +62591,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
62591
62591
|
return MultiPolygon;
|
|
62592
62592
|
}());
|
|
62593
62593
|
|
|
62594
|
-
var __extends$
|
|
62594
|
+
var __extends$14 = (window && window.__extends) || (function () {
|
|
62595
62595
|
var extendStatics = function (d, b) {
|
|
62596
62596
|
extendStatics = Object.setPrototypeOf ||
|
|
62597
62597
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -62622,7 +62622,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
62622
62622
|
* The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
|
|
62623
62623
|
*/
|
|
62624
62624
|
var MercatorPoint = /** @class */ (function (_super) {
|
|
62625
|
-
__extends$
|
|
62625
|
+
__extends$14(MercatorPoint, _super);
|
|
62626
62626
|
/**
|
|
62627
62627
|
* Constructs a MercatorPoint.
|
|
62628
62628
|
* @param x A points x position in mercator units.
|
|
@@ -63111,7 +63111,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63111
63111
|
simplify: simplify
|
|
63112
63112
|
});
|
|
63113
63113
|
|
|
63114
|
-
var __extends$
|
|
63114
|
+
var __extends$13 = (window && window.__extends) || (function () {
|
|
63115
63115
|
var extendStatics = function (d, b) {
|
|
63116
63116
|
extendStatics = Object.setPrototypeOf ||
|
|
63117
63117
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -63130,7 +63130,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63130
63130
|
* The options for a ZoomControl object.
|
|
63131
63131
|
*/
|
|
63132
63132
|
var ZoomControlOptions = /** @class */ (function (_super) {
|
|
63133
|
-
__extends$
|
|
63133
|
+
__extends$13(ZoomControlOptions, _super);
|
|
63134
63134
|
function ZoomControlOptions() {
|
|
63135
63135
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63136
63136
|
/**
|
|
@@ -63150,7 +63150,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63150
63150
|
return ZoomControlOptions;
|
|
63151
63151
|
}(Options));
|
|
63152
63152
|
|
|
63153
|
-
var __extends$
|
|
63153
|
+
var __extends$12 = (window && window.__extends) || (function () {
|
|
63154
63154
|
var extendStatics = function (d, b) {
|
|
63155
63155
|
extendStatics = Object.setPrototypeOf ||
|
|
63156
63156
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -63169,7 +63169,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63169
63169
|
* A control for changing the zoom of the map.
|
|
63170
63170
|
*/
|
|
63171
63171
|
var ZoomControl = /** @class */ (function (_super) {
|
|
63172
|
-
__extends$
|
|
63172
|
+
__extends$12(ZoomControl, _super);
|
|
63173
63173
|
/**
|
|
63174
63174
|
* Constructs a ZoomControl.
|
|
63175
63175
|
* @param options The options for the control.
|
|
@@ -63283,10 +63283,169 @@ uniform ${precision} ${type} u_${name};
|
|
|
63283
63283
|
return ZoomControl;
|
|
63284
63284
|
}(ControlBase));
|
|
63285
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
|
+
|
|
63286
63444
|
var index$2 = /*#__PURE__*/Object.freeze({
|
|
63287
63445
|
__proto__: null,
|
|
63288
63446
|
CompassControl: CompassControl,
|
|
63289
63447
|
ControlBase: ControlBase,
|
|
63448
|
+
FullscreenControl: FullscreenControl,
|
|
63290
63449
|
PitchControl: PitchControl,
|
|
63291
63450
|
ScaleControl: ScaleControl,
|
|
63292
63451
|
StyleControl: StyleControl,
|