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-esm.js
CHANGED
|
@@ -51649,7 +51649,7 @@ var Options = /** @class */ (function () {
|
|
|
51649
51649
|
return Options;
|
|
51650
51650
|
}());
|
|
51651
51651
|
|
|
51652
|
-
var __extends$
|
|
51652
|
+
var __extends$1n = (window && window.__extends) || (function () {
|
|
51653
51653
|
var extendStatics = function (d, b) {
|
|
51654
51654
|
extendStatics = Object.setPrototypeOf ||
|
|
51655
51655
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -51684,7 +51684,7 @@ var __read$h = (window && window.__read) || function (o, n) {
|
|
|
51684
51684
|
* @private
|
|
51685
51685
|
*/
|
|
51686
51686
|
var UrlOptions = /** @class */ (function (_super) {
|
|
51687
|
-
__extends$
|
|
51687
|
+
__extends$1n(UrlOptions, _super);
|
|
51688
51688
|
function UrlOptions() {
|
|
51689
51689
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
51690
51690
|
_this.domain = undefined;
|
|
@@ -52211,7 +52211,7 @@ var UserAgent = /** @class */ (function () {
|
|
|
52211
52211
|
return UserAgent;
|
|
52212
52212
|
}());
|
|
52213
52213
|
|
|
52214
|
-
var version$3 = "3.
|
|
52214
|
+
var version$3 = "3.5.0";
|
|
52215
52215
|
|
|
52216
52216
|
/**
|
|
52217
52217
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -52243,7 +52243,7 @@ var Version$1 = /** @class */ (function () {
|
|
|
52243
52243
|
return Version;
|
|
52244
52244
|
}());
|
|
52245
52245
|
|
|
52246
|
-
var __extends$
|
|
52246
|
+
var __extends$1m = (window && window.__extends) || (function () {
|
|
52247
52247
|
var extendStatics = function (d, b) {
|
|
52248
52248
|
extendStatics = Object.setPrototypeOf ||
|
|
52249
52249
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -52317,7 +52317,7 @@ var AuthenticationType;
|
|
|
52317
52317
|
* Options for specifying how the map control should authenticate with the Azure Maps services.
|
|
52318
52318
|
*/
|
|
52319
52319
|
var AuthenticationOptions = /** @class */ (function (_super) {
|
|
52320
|
-
__extends$
|
|
52320
|
+
__extends$1m(AuthenticationOptions, _super);
|
|
52321
52321
|
function AuthenticationOptions() {
|
|
52322
52322
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
52323
52323
|
/**
|
|
@@ -53182,7 +53182,7 @@ var positionTooltip = function (tooltip, eventTarget, forceAbsolute) {
|
|
|
53182
53182
|
eventTarget.addEventListener("keydown", dismissTooltip);
|
|
53183
53183
|
};
|
|
53184
53184
|
|
|
53185
|
-
var __extends$
|
|
53185
|
+
var __extends$1l = (window && window.__extends) || (function () {
|
|
53186
53186
|
var extendStatics = function (d, b) {
|
|
53187
53187
|
extendStatics = Object.setPrototypeOf ||
|
|
53188
53188
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53232,7 +53232,7 @@ var ControlPosition;
|
|
|
53232
53232
|
* The options for adding a control to the map.
|
|
53233
53233
|
*/
|
|
53234
53234
|
var ControlOptions = /** @class */ (function (_super) {
|
|
53235
|
-
__extends$
|
|
53235
|
+
__extends$1l(ControlOptions, _super);
|
|
53236
53236
|
function ControlOptions() {
|
|
53237
53237
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53238
53238
|
/**
|
|
@@ -53376,7 +53376,7 @@ var index$5 = /*#__PURE__*/Object.freeze({
|
|
|
53376
53376
|
EventEmitter: EventEmitter
|
|
53377
53377
|
});
|
|
53378
53378
|
|
|
53379
|
-
var __extends$
|
|
53379
|
+
var __extends$1k = (window && window.__extends) || (function () {
|
|
53380
53380
|
var extendStatics = function (d, b) {
|
|
53381
53381
|
extendStatics = Object.setPrototypeOf ||
|
|
53382
53382
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53396,7 +53396,7 @@ var __extends$1i = (window && window.__extends) || (function () {
|
|
|
53396
53396
|
* Implements control interface and provides support for automatic styling based on the map style.
|
|
53397
53397
|
*/
|
|
53398
53398
|
var ControlBase = /** @class */ (function (_super) {
|
|
53399
|
-
__extends$
|
|
53399
|
+
__extends$1k(ControlBase, _super);
|
|
53400
53400
|
function ControlBase() {
|
|
53401
53401
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53402
53402
|
/**
|
|
@@ -53498,7 +53498,7 @@ var ControlBase = /** @class */ (function (_super) {
|
|
|
53498
53498
|
return ControlBase;
|
|
53499
53499
|
}(EventEmitter));
|
|
53500
53500
|
|
|
53501
|
-
var __extends$
|
|
53501
|
+
var __extends$1j = (window && window.__extends) || (function () {
|
|
53502
53502
|
var extendStatics = function (d, b) {
|
|
53503
53503
|
extendStatics = Object.setPrototypeOf ||
|
|
53504
53504
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53517,7 +53517,7 @@ var __extends$1h = (window && window.__extends) || (function () {
|
|
|
53517
53517
|
* The options for a CompassControl object.
|
|
53518
53518
|
*/
|
|
53519
53519
|
var CompassControlOptions = /** @class */ (function (_super) {
|
|
53520
|
-
__extends$
|
|
53520
|
+
__extends$1j(CompassControlOptions, _super);
|
|
53521
53521
|
function CompassControlOptions() {
|
|
53522
53522
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53523
53523
|
/**
|
|
@@ -53542,7 +53542,7 @@ var CompassControlOptions = /** @class */ (function (_super) {
|
|
|
53542
53542
|
return CompassControlOptions;
|
|
53543
53543
|
}(Options));
|
|
53544
53544
|
|
|
53545
|
-
var __extends$
|
|
53545
|
+
var __extends$1i = (window && window.__extends) || (function () {
|
|
53546
53546
|
var extendStatics = function (d, b) {
|
|
53547
53547
|
extendStatics = Object.setPrototypeOf ||
|
|
53548
53548
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53561,7 +53561,7 @@ var __extends$1g = (window && window.__extends) || (function () {
|
|
|
53561
53561
|
* A control for changing the rotation of the map.
|
|
53562
53562
|
*/
|
|
53563
53563
|
var CompassControl = /** @class */ (function (_super) {
|
|
53564
|
-
__extends$
|
|
53564
|
+
__extends$1i(CompassControl, _super);
|
|
53565
53565
|
/**
|
|
53566
53566
|
* Constructs a CompassControl.
|
|
53567
53567
|
* @param options The options for the control.
|
|
@@ -53746,7 +53746,7 @@ var CompassControl = /** @class */ (function (_super) {
|
|
|
53746
53746
|
return CompassControl;
|
|
53747
53747
|
}(ControlBase));
|
|
53748
53748
|
|
|
53749
|
-
var __extends$
|
|
53749
|
+
var __extends$1h = (window && window.__extends) || (function () {
|
|
53750
53750
|
var extendStatics = function (d, b) {
|
|
53751
53751
|
extendStatics = Object.setPrototypeOf ||
|
|
53752
53752
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53765,7 +53765,7 @@ var __extends$1f = (window && window.__extends) || (function () {
|
|
|
53765
53765
|
* The options for a PitchControl object.
|
|
53766
53766
|
*/
|
|
53767
53767
|
var PitchControlOptions = /** @class */ (function (_super) {
|
|
53768
|
-
__extends$
|
|
53768
|
+
__extends$1h(PitchControlOptions, _super);
|
|
53769
53769
|
function PitchControlOptions() {
|
|
53770
53770
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53771
53771
|
/**
|
|
@@ -53790,7 +53790,7 @@ var PitchControlOptions = /** @class */ (function (_super) {
|
|
|
53790
53790
|
return PitchControlOptions;
|
|
53791
53791
|
}(Options));
|
|
53792
53792
|
|
|
53793
|
-
var __extends$
|
|
53793
|
+
var __extends$1g = (window && window.__extends) || (function () {
|
|
53794
53794
|
var extendStatics = function (d, b) {
|
|
53795
53795
|
extendStatics = Object.setPrototypeOf ||
|
|
53796
53796
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53809,7 +53809,7 @@ var __extends$1e = (window && window.__extends) || (function () {
|
|
|
53809
53809
|
* A control for changing the pitch of the map.
|
|
53810
53810
|
*/
|
|
53811
53811
|
var PitchControl = /** @class */ (function (_super) {
|
|
53812
|
-
__extends$
|
|
53812
|
+
__extends$1g(PitchControl, _super);
|
|
53813
53813
|
/**
|
|
53814
53814
|
* Constructs a PitchControl.
|
|
53815
53815
|
* @param options The options for the control.
|
|
@@ -54037,7 +54037,7 @@ var PitchControl = /** @class */ (function (_super) {
|
|
|
54037
54037
|
return PitchControl;
|
|
54038
54038
|
}(ControlBase));
|
|
54039
54039
|
|
|
54040
|
-
var __extends$
|
|
54040
|
+
var __extends$1f = (window && window.__extends) || (function () {
|
|
54041
54041
|
var extendStatics = function (d, b) {
|
|
54042
54042
|
extendStatics = Object.setPrototypeOf ||
|
|
54043
54043
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -54056,7 +54056,7 @@ var __extends$1d = (window && window.__extends) || (function () {
|
|
|
54056
54056
|
* A control to display a scale bar on the map.
|
|
54057
54057
|
*/
|
|
54058
54058
|
var ScaleControl = /** @class */ (function (_super) {
|
|
54059
|
-
__extends$
|
|
54059
|
+
__extends$1f(ScaleControl, _super);
|
|
54060
54060
|
/**
|
|
54061
54061
|
* A control to displays a scale bar relative to the pixel resolution at the center of the map.
|
|
54062
54062
|
* @param options Options for defining how the control is rendered and functions.
|
|
@@ -57574,7 +57574,7 @@ var merge_1 = merge;
|
|
|
57574
57574
|
|
|
57575
57575
|
var merge$1 = /*@__PURE__*/getDefaultExportFromCjs(merge_1);
|
|
57576
57576
|
|
|
57577
|
-
var __extends$
|
|
57577
|
+
var __extends$1e = (window && window.__extends) || (function () {
|
|
57578
57578
|
var extendStatics = function (d, b) {
|
|
57579
57579
|
extendStatics = Object.setPrototypeOf ||
|
|
57580
57580
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -57593,7 +57593,7 @@ var __extends$1c = (window && window.__extends) || (function () {
|
|
|
57593
57593
|
* The options for a StyleControl object.
|
|
57594
57594
|
*/
|
|
57595
57595
|
var StyleControlOptions = /** @class */ (function (_super) {
|
|
57596
|
-
__extends$
|
|
57596
|
+
__extends$1e(StyleControlOptions, _super);
|
|
57597
57597
|
function StyleControlOptions() {
|
|
57598
57598
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57599
57599
|
/**
|
|
@@ -57638,7 +57638,7 @@ var StyleControlOptions = /** @class */ (function (_super) {
|
|
|
57638
57638
|
return StyleControlOptions;
|
|
57639
57639
|
}(Options));
|
|
57640
57640
|
|
|
57641
|
-
var __extends$
|
|
57641
|
+
var __extends$1d = (window && window.__extends) || (function () {
|
|
57642
57642
|
var extendStatics = function (d, b) {
|
|
57643
57643
|
extendStatics = Object.setPrototypeOf ||
|
|
57644
57644
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -57709,7 +57709,7 @@ var __read$f = (window && window.__read) || function (o, n) {
|
|
|
57709
57709
|
* A control for changing the style of the map.
|
|
57710
57710
|
*/
|
|
57711
57711
|
var StyleControl = /** @class */ (function (_super) {
|
|
57712
|
-
__extends$
|
|
57712
|
+
__extends$1d(StyleControl, _super);
|
|
57713
57713
|
/**
|
|
57714
57714
|
* Constructs a StyleControl.
|
|
57715
57715
|
* @param options The options for the control.
|
|
@@ -58074,7 +58074,7 @@ var StyleControl = /** @class */ (function (_super) {
|
|
|
58074
58074
|
return StyleControl;
|
|
58075
58075
|
}(ControlBase));
|
|
58076
58076
|
|
|
58077
|
-
var __extends$
|
|
58077
|
+
var __extends$1c = (window && window.__extends) || (function () {
|
|
58078
58078
|
var extendStatics = function (d, b) {
|
|
58079
58079
|
extendStatics = Object.setPrototypeOf ||
|
|
58080
58080
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58093,7 +58093,7 @@ var __extends$1a = (window && window.__extends) || (function () {
|
|
|
58093
58093
|
* The options for setting traffic on the map.
|
|
58094
58094
|
*/
|
|
58095
58095
|
var TrafficOptions = /** @class */ (function (_super) {
|
|
58096
|
-
__extends$
|
|
58096
|
+
__extends$1c(TrafficOptions, _super);
|
|
58097
58097
|
function TrafficOptions() {
|
|
58098
58098
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
58099
58099
|
/**
|
|
@@ -58118,7 +58118,7 @@ var TrafficOptions = /** @class */ (function (_super) {
|
|
|
58118
58118
|
return TrafficOptions;
|
|
58119
58119
|
}(Options));
|
|
58120
58120
|
|
|
58121
|
-
var __extends$
|
|
58121
|
+
var __extends$1b = (window && window.__extends) || (function () {
|
|
58122
58122
|
var extendStatics = function (d, b) {
|
|
58123
58123
|
extendStatics = Object.setPrototypeOf ||
|
|
58124
58124
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58137,7 +58137,7 @@ var __extends$19 = (window && window.__extends) || (function () {
|
|
|
58137
58137
|
* The options for a TrafficControl object.
|
|
58138
58138
|
*/
|
|
58139
58139
|
var TrafficControlOptions = /** @class */ (function (_super) {
|
|
58140
|
-
__extends$
|
|
58140
|
+
__extends$1b(TrafficControlOptions, _super);
|
|
58141
58141
|
function TrafficControlOptions() {
|
|
58142
58142
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
58143
58143
|
/**
|
|
@@ -58157,7 +58157,7 @@ var TrafficControlOptions = /** @class */ (function (_super) {
|
|
|
58157
58157
|
return TrafficControlOptions;
|
|
58158
58158
|
}(TrafficOptions));
|
|
58159
58159
|
|
|
58160
|
-
var __extends$
|
|
58160
|
+
var __extends$1a = (window && window.__extends) || (function () {
|
|
58161
58161
|
var extendStatics = function (d, b) {
|
|
58162
58162
|
extendStatics = Object.setPrototypeOf ||
|
|
58163
58163
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58176,7 +58176,7 @@ var __extends$18 = (window && window.__extends) || (function () {
|
|
|
58176
58176
|
* A control that toggles traffic data on the map.
|
|
58177
58177
|
*/
|
|
58178
58178
|
var TrafficControl = /** @class */ (function (_super) {
|
|
58179
|
-
__extends$
|
|
58179
|
+
__extends$1a(TrafficControl, _super);
|
|
58180
58180
|
/**
|
|
58181
58181
|
* Constructs a TrafficControl
|
|
58182
58182
|
* @param options The options for the control.
|
|
@@ -58303,7 +58303,7 @@ var TrafficControl = /** @class */ (function (_super) {
|
|
|
58303
58303
|
return TrafficControl;
|
|
58304
58304
|
}(ControlBase));
|
|
58305
58305
|
|
|
58306
|
-
var __extends$
|
|
58306
|
+
var __extends$19 = (window && window.__extends) || (function () {
|
|
58307
58307
|
var extendStatics = function (d, b) {
|
|
58308
58308
|
extendStatics = Object.setPrototypeOf ||
|
|
58309
58309
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58333,7 +58333,7 @@ var __values$j = (window && window.__values) || function(o) {
|
|
|
58333
58333
|
* A control that display traffic legend on the map.
|
|
58334
58334
|
*/
|
|
58335
58335
|
var TrafficLegendControl = /** @class */ (function (_super) {
|
|
58336
|
-
__extends$
|
|
58336
|
+
__extends$19(TrafficLegendControl, _super);
|
|
58337
58337
|
/**
|
|
58338
58338
|
* Construct a traffic legend control
|
|
58339
58339
|
*/
|
|
@@ -59067,7 +59067,7 @@ var Feature = /** @class */ (function () {
|
|
|
59067
59067
|
return Feature;
|
|
59068
59068
|
}());
|
|
59069
59069
|
|
|
59070
|
-
var __extends$
|
|
59070
|
+
var __extends$18 = (window && window.__extends) || (function () {
|
|
59071
59071
|
var extendStatics = function (d, b) {
|
|
59072
59072
|
extendStatics = Object.setPrototypeOf ||
|
|
59073
59073
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -59086,7 +59086,7 @@ var __extends$16 = (window && window.__extends) || (function () {
|
|
|
59086
59086
|
* Represent a pixel coordinate or offset. Extends an array of [x, y].
|
|
59087
59087
|
*/
|
|
59088
59088
|
var Pixel = /** @class */ (function (_super) {
|
|
59089
|
-
__extends$
|
|
59089
|
+
__extends$18(Pixel, _super);
|
|
59090
59090
|
/**
|
|
59091
59091
|
* Constructs a Pixel object and initializes it with the specified x and y coordinates.
|
|
59092
59092
|
* @param x The horizontal pixel offset.
|
|
@@ -61306,7 +61306,7 @@ function getClosestPointOnGeometry(pt, geom, units, decimals) {
|
|
|
61306
61306
|
return result;
|
|
61307
61307
|
}
|
|
61308
61308
|
|
|
61309
|
-
var __extends$
|
|
61309
|
+
var __extends$17 = (window && window.__extends) || (function () {
|
|
61310
61310
|
var extendStatics = function (d, b) {
|
|
61311
61311
|
extendStatics = Object.setPrototypeOf ||
|
|
61312
61312
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61326,7 +61326,7 @@ var __extends$15 = (window && window.__extends) || (function () {
|
|
|
61326
61326
|
* full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
|
|
61327
61327
|
*/
|
|
61328
61328
|
var Position = /** @class */ (function (_super) {
|
|
61329
|
-
__extends$
|
|
61329
|
+
__extends$17(Position, _super);
|
|
61330
61330
|
/**
|
|
61331
61331
|
* Constructs a Position.
|
|
61332
61332
|
* @param longitude The position's longitude.
|
|
@@ -61518,7 +61518,7 @@ var Polygon = /** @class */ (function () {
|
|
|
61518
61518
|
return Polygon;
|
|
61519
61519
|
}());
|
|
61520
61520
|
|
|
61521
|
-
var __extends$
|
|
61521
|
+
var __extends$16 = (window && window.__extends) || (function () {
|
|
61522
61522
|
var extendStatics = function (d, b) {
|
|
61523
61523
|
extendStatics = Object.setPrototypeOf ||
|
|
61524
61524
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61548,7 +61548,7 @@ var __values$h = (window && window.__values) || function(o) {
|
|
|
61548
61548
|
* A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
|
|
61549
61549
|
*/
|
|
61550
61550
|
var Shape = /** @class */ (function (_super) {
|
|
61551
|
-
__extends$
|
|
61551
|
+
__extends$16(Shape, _super);
|
|
61552
61552
|
function Shape(data, id, properties) {
|
|
61553
61553
|
var _this = _super.call(this) || this;
|
|
61554
61554
|
var geometry;
|
|
@@ -61844,7 +61844,7 @@ var Shape = /** @class */ (function (_super) {
|
|
|
61844
61844
|
return Shape;
|
|
61845
61845
|
}(EventEmitter));
|
|
61846
61846
|
|
|
61847
|
-
var __extends$
|
|
61847
|
+
var __extends$15 = (window && window.__extends) || (function () {
|
|
61848
61848
|
var extendStatics = function (d, b) {
|
|
61849
61849
|
extendStatics = Object.setPrototypeOf ||
|
|
61850
61850
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61877,7 +61877,7 @@ var __values$g = (window && window.__values) || function(o) {
|
|
|
61877
61877
|
* [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
|
|
61878
61878
|
*/
|
|
61879
61879
|
var BoundingBox = /** @class */ (function (_super) {
|
|
61880
|
-
__extends$
|
|
61880
|
+
__extends$15(BoundingBox, _super);
|
|
61881
61881
|
function BoundingBox(southwestPositionOrPositions, northeastPosition) {
|
|
61882
61882
|
var _this = this;
|
|
61883
61883
|
if (southwestPositionOrPositions && northeastPosition) {
|
|
@@ -62594,7 +62594,7 @@ var MultiPolygon = /** @class */ (function () {
|
|
|
62594
62594
|
return MultiPolygon;
|
|
62595
62595
|
}());
|
|
62596
62596
|
|
|
62597
|
-
var __extends$
|
|
62597
|
+
var __extends$14 = (window && window.__extends) || (function () {
|
|
62598
62598
|
var extendStatics = function (d, b) {
|
|
62599
62599
|
extendStatics = Object.setPrototypeOf ||
|
|
62600
62600
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -62625,7 +62625,7 @@ var __extends$12 = (window && window.__extends) || (function () {
|
|
|
62625
62625
|
* The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
|
|
62626
62626
|
*/
|
|
62627
62627
|
var MercatorPoint = /** @class */ (function (_super) {
|
|
62628
|
-
__extends$
|
|
62628
|
+
__extends$14(MercatorPoint, _super);
|
|
62629
62629
|
/**
|
|
62630
62630
|
* Constructs a MercatorPoint.
|
|
62631
62631
|
* @param x A points x position in mercator units.
|
|
@@ -63114,7 +63114,7 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
63114
63114
|
simplify: simplify
|
|
63115
63115
|
});
|
|
63116
63116
|
|
|
63117
|
-
var __extends$
|
|
63117
|
+
var __extends$13 = (window && window.__extends) || (function () {
|
|
63118
63118
|
var extendStatics = function (d, b) {
|
|
63119
63119
|
extendStatics = Object.setPrototypeOf ||
|
|
63120
63120
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -63133,7 +63133,7 @@ var __extends$11 = (window && window.__extends) || (function () {
|
|
|
63133
63133
|
* The options for a ZoomControl object.
|
|
63134
63134
|
*/
|
|
63135
63135
|
var ZoomControlOptions = /** @class */ (function (_super) {
|
|
63136
|
-
__extends$
|
|
63136
|
+
__extends$13(ZoomControlOptions, _super);
|
|
63137
63137
|
function ZoomControlOptions() {
|
|
63138
63138
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63139
63139
|
/**
|
|
@@ -63153,7 +63153,7 @@ var ZoomControlOptions = /** @class */ (function (_super) {
|
|
|
63153
63153
|
return ZoomControlOptions;
|
|
63154
63154
|
}(Options));
|
|
63155
63155
|
|
|
63156
|
-
var __extends$
|
|
63156
|
+
var __extends$12 = (window && window.__extends) || (function () {
|
|
63157
63157
|
var extendStatics = function (d, b) {
|
|
63158
63158
|
extendStatics = Object.setPrototypeOf ||
|
|
63159
63159
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -63172,7 +63172,7 @@ var __extends$10 = (window && window.__extends) || (function () {
|
|
|
63172
63172
|
* A control for changing the zoom of the map.
|
|
63173
63173
|
*/
|
|
63174
63174
|
var ZoomControl = /** @class */ (function (_super) {
|
|
63175
|
-
__extends$
|
|
63175
|
+
__extends$12(ZoomControl, _super);
|
|
63176
63176
|
/**
|
|
63177
63177
|
* Constructs a ZoomControl.
|
|
63178
63178
|
* @param options The options for the control.
|
|
@@ -63286,10 +63286,169 @@ var ZoomControl = /** @class */ (function (_super) {
|
|
|
63286
63286
|
return ZoomControl;
|
|
63287
63287
|
}(ControlBase));
|
|
63288
63288
|
|
|
63289
|
+
var __extends$11 = (window && window.__extends) || (function () {
|
|
63290
|
+
var extendStatics = function (d, b) {
|
|
63291
|
+
extendStatics = Object.setPrototypeOf ||
|
|
63292
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
63293
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
63294
|
+
return extendStatics(d, b);
|
|
63295
|
+
};
|
|
63296
|
+
return function (d, b) {
|
|
63297
|
+
if (typeof b !== "function" && b !== null)
|
|
63298
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
63299
|
+
extendStatics(d, b);
|
|
63300
|
+
function __() { this.constructor = d; }
|
|
63301
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
63302
|
+
};
|
|
63303
|
+
})();
|
|
63304
|
+
/**
|
|
63305
|
+
* The options for a FullscreenControl object.
|
|
63306
|
+
*/
|
|
63307
|
+
var FullscreenControlOptions = /** @class */ (function (_super) {
|
|
63308
|
+
__extends$11(FullscreenControlOptions, _super);
|
|
63309
|
+
function FullscreenControlOptions() {
|
|
63310
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63311
|
+
/**
|
|
63312
|
+
* The style of the control.
|
|
63313
|
+
* Default `ControlStyle.light`
|
|
63314
|
+
* @default ControlStyle.light
|
|
63315
|
+
*/
|
|
63316
|
+
_this.style = ControlStyle.light;
|
|
63317
|
+
/**
|
|
63318
|
+
* Indicates if the control should be hidden if the browser does not support fullscreen mode.
|
|
63319
|
+
* Default `false`
|
|
63320
|
+
* @default false
|
|
63321
|
+
*/
|
|
63322
|
+
_this.hideIfUnsupported = false;
|
|
63323
|
+
/**
|
|
63324
|
+
* The HTML element which should be made full screen.
|
|
63325
|
+
* If not specified, the map container element will be used.
|
|
63326
|
+
*/
|
|
63327
|
+
_this.container = undefined;
|
|
63328
|
+
return _this;
|
|
63329
|
+
}
|
|
63330
|
+
return FullscreenControlOptions;
|
|
63331
|
+
}(Options));
|
|
63332
|
+
|
|
63333
|
+
var __extends$10 = (window && window.__extends) || (function () {
|
|
63334
|
+
var extendStatics = function (d, b) {
|
|
63335
|
+
extendStatics = Object.setPrototypeOf ||
|
|
63336
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
63337
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
63338
|
+
return extendStatics(d, b);
|
|
63339
|
+
};
|
|
63340
|
+
return function (d, b) {
|
|
63341
|
+
if (typeof b !== "function" && b !== null)
|
|
63342
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
63343
|
+
extendStatics(d, b);
|
|
63344
|
+
function __() { this.constructor = d; }
|
|
63345
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
63346
|
+
};
|
|
63347
|
+
})();
|
|
63348
|
+
/**
|
|
63349
|
+
* A control to make the map or a specified element fullscreen.
|
|
63350
|
+
*/
|
|
63351
|
+
var FullscreenControl = /** @class */ (function (_super) {
|
|
63352
|
+
__extends$10(FullscreenControl, _super);
|
|
63353
|
+
/**
|
|
63354
|
+
* A control to make the map or a specified element fullscreen.
|
|
63355
|
+
* @param options Options for defining how the control is rendered and the container to be made fullscreen.
|
|
63356
|
+
*/
|
|
63357
|
+
function FullscreenControl(options) {
|
|
63358
|
+
var _this = _super.call(this) || this;
|
|
63359
|
+
_this.map = null;
|
|
63360
|
+
_this.isFullscreenState = false;
|
|
63361
|
+
_this.options = new FullscreenControlOptions().merge(options);
|
|
63362
|
+
_this.control = new maplibregl.FullscreenControl({
|
|
63363
|
+
container: _this.options.container,
|
|
63364
|
+
});
|
|
63365
|
+
return _this;
|
|
63366
|
+
}
|
|
63367
|
+
/**
|
|
63368
|
+
* Initialization method for the control which is called when added to the map.
|
|
63369
|
+
* @param map The map that the control will be added to.
|
|
63370
|
+
* @param options The ControlOptions for this control.
|
|
63371
|
+
* @return An HTMLElement to be placed on the map for the control.
|
|
63372
|
+
*/
|
|
63373
|
+
FullscreenControl.prototype.onAdd = function (map) {
|
|
63374
|
+
var _this = this;
|
|
63375
|
+
var _a, _b;
|
|
63376
|
+
this.map = map;
|
|
63377
|
+
(_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a._getMap()) === null || _b === void 0 ? void 0 : _b.addControl(this.control);
|
|
63378
|
+
var container = this.buildContainer(map, this.options.style, "Fullscreen Control");
|
|
63379
|
+
var fullscreenButton = this.control._fullscreenButton;
|
|
63380
|
+
if (fullscreenButton) {
|
|
63381
|
+
var icon_1 = fullscreenButton.querySelector("span");
|
|
63382
|
+
if (icon_1) {
|
|
63383
|
+
var tooltip_1 = buildAccessibleTooltip("Enter Fullscreen");
|
|
63384
|
+
container.appendChild(fullscreenButton);
|
|
63385
|
+
// Add classes for styling.
|
|
63386
|
+
fullscreenButton.classList.add("azure-maps-control-button", "fullscreen");
|
|
63387
|
+
icon_1.classList.add("fullscreen-icon", "fullscreen-end");
|
|
63388
|
+
// Add the tooltip and prevent the default one set by Maplibre.
|
|
63389
|
+
fullscreenButton.removeAttribute("title"); // A title attribute will be converted to a tooltip by the browser.
|
|
63390
|
+
container.appendChild(tooltip_1);
|
|
63391
|
+
positionTooltip(tooltip_1, fullscreenButton);
|
|
63392
|
+
// Update the icon and the tooltip based on the fullscreen state.
|
|
63393
|
+
this.control.on("fullscreenstart", function () {
|
|
63394
|
+
// Remove the title attribute added automatically whenever fullscreen event is fired
|
|
63395
|
+
fullscreenButton.removeAttribute("title");
|
|
63396
|
+
icon_1.classList.remove("fullscreen-end");
|
|
63397
|
+
icon_1.classList.add("fullscreen-start");
|
|
63398
|
+
tooltip_1.innerText = "Exit Fullscreen";
|
|
63399
|
+
_this.isFullscreenState = true;
|
|
63400
|
+
});
|
|
63401
|
+
this.control.on("fullscreenend", function () {
|
|
63402
|
+
fullscreenButton.removeAttribute("title");
|
|
63403
|
+
icon_1.classList.remove("fullscreen-start");
|
|
63404
|
+
icon_1.classList.add("fullscreen-end");
|
|
63405
|
+
tooltip_1.innerText = "Enter Fullscreen";
|
|
63406
|
+
_this.isFullscreenState = false;
|
|
63407
|
+
});
|
|
63408
|
+
}
|
|
63409
|
+
}
|
|
63410
|
+
// Invisiblize the control if the browser does not support fullscreen mode.
|
|
63411
|
+
if (this.options.hideIfUnsupported && !FullscreenControl.isSupported()) {
|
|
63412
|
+
container.style.display = "none";
|
|
63413
|
+
}
|
|
63414
|
+
return container;
|
|
63415
|
+
};
|
|
63416
|
+
/**
|
|
63417
|
+
* Method that is called when the control is removed from the map. Should perform any necessary cleanup for the
|
|
63418
|
+
* control.
|
|
63419
|
+
*/
|
|
63420
|
+
FullscreenControl.prototype.onRemove = function () {
|
|
63421
|
+
var _a, _b;
|
|
63422
|
+
_super.prototype.onRemove.call(this);
|
|
63423
|
+
(_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a._getMap()) === null || _b === void 0 ? void 0 : _b.removeControl(this.control);
|
|
63424
|
+
this.map = null;
|
|
63425
|
+
};
|
|
63426
|
+
/**
|
|
63427
|
+
* Gets the current fullscreen state of the map.
|
|
63428
|
+
* @returns A boolean indicating if the map is in fullscreen mode.
|
|
63429
|
+
*/
|
|
63430
|
+
FullscreenControl.prototype.isFullscreen = function () {
|
|
63431
|
+
return this.isFullscreenState;
|
|
63432
|
+
};
|
|
63433
|
+
/**
|
|
63434
|
+
* Checks to see if the browser supports going into fullscreen mode.
|
|
63435
|
+
* @returns A boolean indicating if the browser supports fullscreen mode.
|
|
63436
|
+
*/
|
|
63437
|
+
FullscreenControl.isSupported = function () {
|
|
63438
|
+
var d = document;
|
|
63439
|
+
return d['fullscreenEnabled'] ||
|
|
63440
|
+
d['msFullscreenEnabled'] ||
|
|
63441
|
+
d['mozFullScreenEnabled'] ||
|
|
63442
|
+
d['webkitFullscreenEnabled'];
|
|
63443
|
+
};
|
|
63444
|
+
return FullscreenControl;
|
|
63445
|
+
}(ControlBase));
|
|
63446
|
+
|
|
63289
63447
|
var index$2 = /*#__PURE__*/Object.freeze({
|
|
63290
63448
|
__proto__: null,
|
|
63291
63449
|
CompassControl: CompassControl,
|
|
63292
63450
|
ControlBase: ControlBase,
|
|
63451
|
+
FullscreenControl: FullscreenControl,
|
|
63293
63452
|
PitchControl: PitchControl,
|
|
63294
63453
|
ScaleControl: ScaleControl,
|
|
63295
63454
|
StyleControl: StyleControl,
|