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
|
@@ -324,7 +324,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
324
324
|
return Options;
|
|
325
325
|
}());
|
|
326
326
|
|
|
327
|
-
var __extends$
|
|
327
|
+
var __extends$1k = (window && window.__extends) || (function () {
|
|
328
328
|
var extendStatics = function (d, b) {
|
|
329
329
|
extendStatics = Object.setPrototypeOf ||
|
|
330
330
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -359,7 +359,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
359
359
|
* @private
|
|
360
360
|
*/
|
|
361
361
|
var UrlOptions = /** @class */ (function (_super) {
|
|
362
|
-
__extends$
|
|
362
|
+
__extends$1k(UrlOptions, _super);
|
|
363
363
|
function UrlOptions() {
|
|
364
364
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
365
365
|
_this.domain = undefined;
|
|
@@ -886,7 +886,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
886
886
|
return UserAgent;
|
|
887
887
|
}());
|
|
888
888
|
|
|
889
|
-
var version = "3.
|
|
889
|
+
var version = "3.5.0";
|
|
890
890
|
|
|
891
891
|
/**
|
|
892
892
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -918,7 +918,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
918
918
|
return Version;
|
|
919
919
|
}());
|
|
920
920
|
|
|
921
|
-
var __extends$
|
|
921
|
+
var __extends$1j = (window && window.__extends) || (function () {
|
|
922
922
|
var extendStatics = function (d, b) {
|
|
923
923
|
extendStatics = Object.setPrototypeOf ||
|
|
924
924
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -992,7 +992,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
992
992
|
* Options for specifying how the map control should authenticate with the Azure Maps services.
|
|
993
993
|
*/
|
|
994
994
|
var AuthenticationOptions = /** @class */ (function (_super) {
|
|
995
|
-
__extends$
|
|
995
|
+
__extends$1j(AuthenticationOptions, _super);
|
|
996
996
|
function AuthenticationOptions() {
|
|
997
997
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
998
998
|
/**
|
|
@@ -1848,7 +1848,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1848
1848
|
eventTarget.addEventListener("keydown", dismissTooltip);
|
|
1849
1849
|
};
|
|
1850
1850
|
|
|
1851
|
-
var __extends$
|
|
1851
|
+
var __extends$1i = (window && window.__extends) || (function () {
|
|
1852
1852
|
var extendStatics = function (d, b) {
|
|
1853
1853
|
extendStatics = Object.setPrototypeOf ||
|
|
1854
1854
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -1898,7 +1898,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1898
1898
|
* The options for adding a control to the map.
|
|
1899
1899
|
*/
|
|
1900
1900
|
var ControlOptions = /** @class */ (function (_super) {
|
|
1901
|
-
__extends$
|
|
1901
|
+
__extends$1i(ControlOptions, _super);
|
|
1902
1902
|
function ControlOptions() {
|
|
1903
1903
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1904
1904
|
/**
|
|
@@ -2042,7 +2042,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2042
2042
|
EventEmitter: EventEmitter
|
|
2043
2043
|
});
|
|
2044
2044
|
|
|
2045
|
-
var __extends$
|
|
2045
|
+
var __extends$1h = (window && window.__extends) || (function () {
|
|
2046
2046
|
var extendStatics = function (d, b) {
|
|
2047
2047
|
extendStatics = Object.setPrototypeOf ||
|
|
2048
2048
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2062,7 +2062,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2062
2062
|
* Implements control interface and provides support for automatic styling based on the map style.
|
|
2063
2063
|
*/
|
|
2064
2064
|
var ControlBase = /** @class */ (function (_super) {
|
|
2065
|
-
__extends$
|
|
2065
|
+
__extends$1h(ControlBase, _super);
|
|
2066
2066
|
function ControlBase() {
|
|
2067
2067
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2068
2068
|
/**
|
|
@@ -2164,7 +2164,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2164
2164
|
return ControlBase;
|
|
2165
2165
|
}(EventEmitter));
|
|
2166
2166
|
|
|
2167
|
-
var __extends$
|
|
2167
|
+
var __extends$1g = (window && window.__extends) || (function () {
|
|
2168
2168
|
var extendStatics = function (d, b) {
|
|
2169
2169
|
extendStatics = Object.setPrototypeOf ||
|
|
2170
2170
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2183,7 +2183,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2183
2183
|
* The options for a CompassControl object.
|
|
2184
2184
|
*/
|
|
2185
2185
|
var CompassControlOptions = /** @class */ (function (_super) {
|
|
2186
|
-
__extends$
|
|
2186
|
+
__extends$1g(CompassControlOptions, _super);
|
|
2187
2187
|
function CompassControlOptions() {
|
|
2188
2188
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2189
2189
|
/**
|
|
@@ -2208,7 +2208,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2208
2208
|
return CompassControlOptions;
|
|
2209
2209
|
}(Options));
|
|
2210
2210
|
|
|
2211
|
-
var __extends$
|
|
2211
|
+
var __extends$1f = (window && window.__extends) || (function () {
|
|
2212
2212
|
var extendStatics = function (d, b) {
|
|
2213
2213
|
extendStatics = Object.setPrototypeOf ||
|
|
2214
2214
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2227,7 +2227,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2227
2227
|
* A control for changing the rotation of the map.
|
|
2228
2228
|
*/
|
|
2229
2229
|
var CompassControl = /** @class */ (function (_super) {
|
|
2230
|
-
__extends$
|
|
2230
|
+
__extends$1f(CompassControl, _super);
|
|
2231
2231
|
/**
|
|
2232
2232
|
* Constructs a CompassControl.
|
|
2233
2233
|
* @param options The options for the control.
|
|
@@ -2412,7 +2412,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2412
2412
|
return CompassControl;
|
|
2413
2413
|
}(ControlBase));
|
|
2414
2414
|
|
|
2415
|
-
var __extends$
|
|
2415
|
+
var __extends$1e = (window && window.__extends) || (function () {
|
|
2416
2416
|
var extendStatics = function (d, b) {
|
|
2417
2417
|
extendStatics = Object.setPrototypeOf ||
|
|
2418
2418
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2431,7 +2431,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2431
2431
|
* The options for a PitchControl object.
|
|
2432
2432
|
*/
|
|
2433
2433
|
var PitchControlOptions = /** @class */ (function (_super) {
|
|
2434
|
-
__extends$
|
|
2434
|
+
__extends$1e(PitchControlOptions, _super);
|
|
2435
2435
|
function PitchControlOptions() {
|
|
2436
2436
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2437
2437
|
/**
|
|
@@ -2456,7 +2456,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2456
2456
|
return PitchControlOptions;
|
|
2457
2457
|
}(Options));
|
|
2458
2458
|
|
|
2459
|
-
var __extends$
|
|
2459
|
+
var __extends$1d = (window && window.__extends) || (function () {
|
|
2460
2460
|
var extendStatics = function (d, b) {
|
|
2461
2461
|
extendStatics = Object.setPrototypeOf ||
|
|
2462
2462
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2475,7 +2475,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2475
2475
|
* A control for changing the pitch of the map.
|
|
2476
2476
|
*/
|
|
2477
2477
|
var PitchControl = /** @class */ (function (_super) {
|
|
2478
|
-
__extends$
|
|
2478
|
+
__extends$1d(PitchControl, _super);
|
|
2479
2479
|
/**
|
|
2480
2480
|
* Constructs a PitchControl.
|
|
2481
2481
|
* @param options The options for the control.
|
|
@@ -2703,7 +2703,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2703
2703
|
return PitchControl;
|
|
2704
2704
|
}(ControlBase));
|
|
2705
2705
|
|
|
2706
|
-
var __extends$
|
|
2706
|
+
var __extends$1c = (window && window.__extends) || (function () {
|
|
2707
2707
|
var extendStatics = function (d, b) {
|
|
2708
2708
|
extendStatics = Object.setPrototypeOf ||
|
|
2709
2709
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2722,7 +2722,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2722
2722
|
* A control to display a scale bar on the map.
|
|
2723
2723
|
*/
|
|
2724
2724
|
var ScaleControl = /** @class */ (function (_super) {
|
|
2725
|
-
__extends$
|
|
2725
|
+
__extends$1c(ScaleControl, _super);
|
|
2726
2726
|
/**
|
|
2727
2727
|
* A control to displays a scale bar relative to the pixel resolution at the center of the map.
|
|
2728
2728
|
* @param options Options for defining how the control is rendered and functions.
|
|
@@ -6240,7 +6240,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6240
6240
|
|
|
6241
6241
|
var merge$1 = /*@__PURE__*/getDefaultExportFromCjs(merge_1);
|
|
6242
6242
|
|
|
6243
|
-
var __extends$
|
|
6243
|
+
var __extends$1b = (window && window.__extends) || (function () {
|
|
6244
6244
|
var extendStatics = function (d, b) {
|
|
6245
6245
|
extendStatics = Object.setPrototypeOf ||
|
|
6246
6246
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6259,7 +6259,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6259
6259
|
* The options for a StyleControl object.
|
|
6260
6260
|
*/
|
|
6261
6261
|
var StyleControlOptions = /** @class */ (function (_super) {
|
|
6262
|
-
__extends$
|
|
6262
|
+
__extends$1b(StyleControlOptions, _super);
|
|
6263
6263
|
function StyleControlOptions() {
|
|
6264
6264
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
6265
6265
|
/**
|
|
@@ -6304,7 +6304,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6304
6304
|
return StyleControlOptions;
|
|
6305
6305
|
}(Options));
|
|
6306
6306
|
|
|
6307
|
-
var __extends$
|
|
6307
|
+
var __extends$1a = (window && window.__extends) || (function () {
|
|
6308
6308
|
var extendStatics = function (d, b) {
|
|
6309
6309
|
extendStatics = Object.setPrototypeOf ||
|
|
6310
6310
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6375,7 +6375,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6375
6375
|
* A control for changing the style of the map.
|
|
6376
6376
|
*/
|
|
6377
6377
|
var StyleControl = /** @class */ (function (_super) {
|
|
6378
|
-
__extends$
|
|
6378
|
+
__extends$1a(StyleControl, _super);
|
|
6379
6379
|
/**
|
|
6380
6380
|
* Constructs a StyleControl.
|
|
6381
6381
|
* @param options The options for the control.
|
|
@@ -6740,7 +6740,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6740
6740
|
return StyleControl;
|
|
6741
6741
|
}(ControlBase));
|
|
6742
6742
|
|
|
6743
|
-
var __extends$
|
|
6743
|
+
var __extends$19 = (window && window.__extends) || (function () {
|
|
6744
6744
|
var extendStatics = function (d, b) {
|
|
6745
6745
|
extendStatics = Object.setPrototypeOf ||
|
|
6746
6746
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6759,7 +6759,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6759
6759
|
* The options for setting traffic on the map.
|
|
6760
6760
|
*/
|
|
6761
6761
|
var TrafficOptions = /** @class */ (function (_super) {
|
|
6762
|
-
__extends$
|
|
6762
|
+
__extends$19(TrafficOptions, _super);
|
|
6763
6763
|
function TrafficOptions() {
|
|
6764
6764
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
6765
6765
|
/**
|
|
@@ -6784,7 +6784,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6784
6784
|
return TrafficOptions;
|
|
6785
6785
|
}(Options));
|
|
6786
6786
|
|
|
6787
|
-
var __extends$
|
|
6787
|
+
var __extends$18 = (window && window.__extends) || (function () {
|
|
6788
6788
|
var extendStatics = function (d, b) {
|
|
6789
6789
|
extendStatics = Object.setPrototypeOf ||
|
|
6790
6790
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6803,7 +6803,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6803
6803
|
* The options for a TrafficControl object.
|
|
6804
6804
|
*/
|
|
6805
6805
|
var TrafficControlOptions = /** @class */ (function (_super) {
|
|
6806
|
-
__extends$
|
|
6806
|
+
__extends$18(TrafficControlOptions, _super);
|
|
6807
6807
|
function TrafficControlOptions() {
|
|
6808
6808
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
6809
6809
|
/**
|
|
@@ -6823,7 +6823,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6823
6823
|
return TrafficControlOptions;
|
|
6824
6824
|
}(TrafficOptions));
|
|
6825
6825
|
|
|
6826
|
-
var __extends$
|
|
6826
|
+
var __extends$17 = (window && window.__extends) || (function () {
|
|
6827
6827
|
var extendStatics = function (d, b) {
|
|
6828
6828
|
extendStatics = Object.setPrototypeOf ||
|
|
6829
6829
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6842,7 +6842,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6842
6842
|
* A control that toggles traffic data on the map.
|
|
6843
6843
|
*/
|
|
6844
6844
|
var TrafficControl = /** @class */ (function (_super) {
|
|
6845
|
-
__extends$
|
|
6845
|
+
__extends$17(TrafficControl, _super);
|
|
6846
6846
|
/**
|
|
6847
6847
|
* Constructs a TrafficControl
|
|
6848
6848
|
* @param options The options for the control.
|
|
@@ -6969,7 +6969,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6969
6969
|
return TrafficControl;
|
|
6970
6970
|
}(ControlBase));
|
|
6971
6971
|
|
|
6972
|
-
var __extends$
|
|
6972
|
+
var __extends$16 = (window && window.__extends) || (function () {
|
|
6973
6973
|
var extendStatics = function (d, b) {
|
|
6974
6974
|
extendStatics = Object.setPrototypeOf ||
|
|
6975
6975
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6999,7 +6999,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6999
6999
|
* A control that display traffic legend on the map.
|
|
7000
7000
|
*/
|
|
7001
7001
|
var TrafficLegendControl = /** @class */ (function (_super) {
|
|
7002
|
-
__extends$
|
|
7002
|
+
__extends$16(TrafficLegendControl, _super);
|
|
7003
7003
|
/**
|
|
7004
7004
|
* Construct a traffic legend control
|
|
7005
7005
|
*/
|
|
@@ -7733,7 +7733,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
7733
7733
|
return Feature;
|
|
7734
7734
|
}());
|
|
7735
7735
|
|
|
7736
|
-
var __extends$
|
|
7736
|
+
var __extends$15 = (window && window.__extends) || (function () {
|
|
7737
7737
|
var extendStatics = function (d, b) {
|
|
7738
7738
|
extendStatics = Object.setPrototypeOf ||
|
|
7739
7739
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -7752,7 +7752,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
7752
7752
|
* Represent a pixel coordinate or offset. Extends an array of [x, y].
|
|
7753
7753
|
*/
|
|
7754
7754
|
var Pixel = /** @class */ (function (_super) {
|
|
7755
|
-
__extends$
|
|
7755
|
+
__extends$15(Pixel, _super);
|
|
7756
7756
|
/**
|
|
7757
7757
|
* Constructs a Pixel object and initializes it with the specified x and y coordinates.
|
|
7758
7758
|
* @param x The horizontal pixel offset.
|
|
@@ -9972,7 +9972,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9972
9972
|
return result;
|
|
9973
9973
|
}
|
|
9974
9974
|
|
|
9975
|
-
var __extends$
|
|
9975
|
+
var __extends$14 = (window && window.__extends) || (function () {
|
|
9976
9976
|
var extendStatics = function (d, b) {
|
|
9977
9977
|
extendStatics = Object.setPrototypeOf ||
|
|
9978
9978
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -9992,7 +9992,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9992
9992
|
* full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
|
|
9993
9993
|
*/
|
|
9994
9994
|
var Position = /** @class */ (function (_super) {
|
|
9995
|
-
__extends$
|
|
9995
|
+
__extends$14(Position, _super);
|
|
9996
9996
|
/**
|
|
9997
9997
|
* Constructs a Position.
|
|
9998
9998
|
* @param longitude The position's longitude.
|
|
@@ -10184,7 +10184,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10184
10184
|
return Polygon;
|
|
10185
10185
|
}());
|
|
10186
10186
|
|
|
10187
|
-
var __extends$
|
|
10187
|
+
var __extends$13 = (window && window.__extends) || (function () {
|
|
10188
10188
|
var extendStatics = function (d, b) {
|
|
10189
10189
|
extendStatics = Object.setPrototypeOf ||
|
|
10190
10190
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -10214,7 +10214,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10214
10214
|
* A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
|
|
10215
10215
|
*/
|
|
10216
10216
|
var Shape = /** @class */ (function (_super) {
|
|
10217
|
-
__extends$
|
|
10217
|
+
__extends$13(Shape, _super);
|
|
10218
10218
|
function Shape(data, id, properties) {
|
|
10219
10219
|
var _this = _super.call(this) || this;
|
|
10220
10220
|
var geometry;
|
|
@@ -10510,7 +10510,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10510
10510
|
return Shape;
|
|
10511
10511
|
}(EventEmitter));
|
|
10512
10512
|
|
|
10513
|
-
var __extends$
|
|
10513
|
+
var __extends$12 = (window && window.__extends) || (function () {
|
|
10514
10514
|
var extendStatics = function (d, b) {
|
|
10515
10515
|
extendStatics = Object.setPrototypeOf ||
|
|
10516
10516
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -10543,7 +10543,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10543
10543
|
* [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
|
|
10544
10544
|
*/
|
|
10545
10545
|
var BoundingBox = /** @class */ (function (_super) {
|
|
10546
|
-
__extends$
|
|
10546
|
+
__extends$12(BoundingBox, _super);
|
|
10547
10547
|
function BoundingBox(southwestPositionOrPositions, northeastPosition) {
|
|
10548
10548
|
var _this = this;
|
|
10549
10549
|
if (southwestPositionOrPositions && northeastPosition) {
|
|
@@ -11260,7 +11260,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11260
11260
|
return MultiPolygon;
|
|
11261
11261
|
}());
|
|
11262
11262
|
|
|
11263
|
-
var __extends
|
|
11263
|
+
var __extends$11 = (window && window.__extends) || (function () {
|
|
11264
11264
|
var extendStatics = function (d, b) {
|
|
11265
11265
|
extendStatics = Object.setPrototypeOf ||
|
|
11266
11266
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11291,7 +11291,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11291
11291
|
* The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
|
|
11292
11292
|
*/
|
|
11293
11293
|
var MercatorPoint = /** @class */ (function (_super) {
|
|
11294
|
-
__extends
|
|
11294
|
+
__extends$11(MercatorPoint, _super);
|
|
11295
11295
|
/**
|
|
11296
11296
|
* Constructs a MercatorPoint.
|
|
11297
11297
|
* @param x A points x position in mercator units.
|
|
@@ -11780,7 +11780,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11780
11780
|
simplify: simplify
|
|
11781
11781
|
});
|
|
11782
11782
|
|
|
11783
|
-
var __extends$
|
|
11783
|
+
var __extends$10 = (window && window.__extends) || (function () {
|
|
11784
11784
|
var extendStatics = function (d, b) {
|
|
11785
11785
|
extendStatics = Object.setPrototypeOf ||
|
|
11786
11786
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11799,7 +11799,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11799
11799
|
* The options for a ZoomControl object.
|
|
11800
11800
|
*/
|
|
11801
11801
|
var ZoomControlOptions = /** @class */ (function (_super) {
|
|
11802
|
-
__extends$
|
|
11802
|
+
__extends$10(ZoomControlOptions, _super);
|
|
11803
11803
|
function ZoomControlOptions() {
|
|
11804
11804
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11805
11805
|
/**
|
|
@@ -11819,7 +11819,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11819
11819
|
return ZoomControlOptions;
|
|
11820
11820
|
}(Options));
|
|
11821
11821
|
|
|
11822
|
-
var __extends
|
|
11822
|
+
var __extends$$ = (window && window.__extends) || (function () {
|
|
11823
11823
|
var extendStatics = function (d, b) {
|
|
11824
11824
|
extendStatics = Object.setPrototypeOf ||
|
|
11825
11825
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11838,7 +11838,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11838
11838
|
* A control for changing the zoom of the map.
|
|
11839
11839
|
*/
|
|
11840
11840
|
var ZoomControl = /** @class */ (function (_super) {
|
|
11841
|
-
__extends
|
|
11841
|
+
__extends$$(ZoomControl, _super);
|
|
11842
11842
|
/**
|
|
11843
11843
|
* Constructs a ZoomControl.
|
|
11844
11844
|
* @param options The options for the control.
|
|
@@ -11952,10 +11952,169 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11952
11952
|
return ZoomControl;
|
|
11953
11953
|
}(ControlBase));
|
|
11954
11954
|
|
|
11955
|
+
var __extends$_ = (window && window.__extends) || (function () {
|
|
11956
|
+
var extendStatics = function (d, b) {
|
|
11957
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11958
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11959
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11960
|
+
return extendStatics(d, b);
|
|
11961
|
+
};
|
|
11962
|
+
return function (d, b) {
|
|
11963
|
+
if (typeof b !== "function" && b !== null)
|
|
11964
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11965
|
+
extendStatics(d, b);
|
|
11966
|
+
function __() { this.constructor = d; }
|
|
11967
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11968
|
+
};
|
|
11969
|
+
})();
|
|
11970
|
+
/**
|
|
11971
|
+
* The options for a FullscreenControl object.
|
|
11972
|
+
*/
|
|
11973
|
+
var FullscreenControlOptions = /** @class */ (function (_super) {
|
|
11974
|
+
__extends$_(FullscreenControlOptions, _super);
|
|
11975
|
+
function FullscreenControlOptions() {
|
|
11976
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11977
|
+
/**
|
|
11978
|
+
* The style of the control.
|
|
11979
|
+
* Default `ControlStyle.light`
|
|
11980
|
+
* @default ControlStyle.light
|
|
11981
|
+
*/
|
|
11982
|
+
_this.style = exports.ControlStyle.light;
|
|
11983
|
+
/**
|
|
11984
|
+
* Indicates if the control should be hidden if the browser does not support fullscreen mode.
|
|
11985
|
+
* Default `false`
|
|
11986
|
+
* @default false
|
|
11987
|
+
*/
|
|
11988
|
+
_this.hideIfUnsupported = false;
|
|
11989
|
+
/**
|
|
11990
|
+
* The HTML element which should be made full screen.
|
|
11991
|
+
* If not specified, the map container element will be used.
|
|
11992
|
+
*/
|
|
11993
|
+
_this.container = undefined;
|
|
11994
|
+
return _this;
|
|
11995
|
+
}
|
|
11996
|
+
return FullscreenControlOptions;
|
|
11997
|
+
}(Options));
|
|
11998
|
+
|
|
11999
|
+
var __extends$Z = (window && window.__extends) || (function () {
|
|
12000
|
+
var extendStatics = function (d, b) {
|
|
12001
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12002
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12003
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12004
|
+
return extendStatics(d, b);
|
|
12005
|
+
};
|
|
12006
|
+
return function (d, b) {
|
|
12007
|
+
if (typeof b !== "function" && b !== null)
|
|
12008
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12009
|
+
extendStatics(d, b);
|
|
12010
|
+
function __() { this.constructor = d; }
|
|
12011
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12012
|
+
};
|
|
12013
|
+
})();
|
|
12014
|
+
/**
|
|
12015
|
+
* A control to make the map or a specified element fullscreen.
|
|
12016
|
+
*/
|
|
12017
|
+
var FullscreenControl = /** @class */ (function (_super) {
|
|
12018
|
+
__extends$Z(FullscreenControl, _super);
|
|
12019
|
+
/**
|
|
12020
|
+
* A control to make the map or a specified element fullscreen.
|
|
12021
|
+
* @param options Options for defining how the control is rendered and the container to be made fullscreen.
|
|
12022
|
+
*/
|
|
12023
|
+
function FullscreenControl(options) {
|
|
12024
|
+
var _this = _super.call(this) || this;
|
|
12025
|
+
_this.map = null;
|
|
12026
|
+
_this.isFullscreenState = false;
|
|
12027
|
+
_this.options = new FullscreenControlOptions().merge(options);
|
|
12028
|
+
_this.control = new maplibregl.FullscreenControl({
|
|
12029
|
+
container: _this.options.container,
|
|
12030
|
+
});
|
|
12031
|
+
return _this;
|
|
12032
|
+
}
|
|
12033
|
+
/**
|
|
12034
|
+
* Initialization method for the control which is called when added to the map.
|
|
12035
|
+
* @param map The map that the control will be added to.
|
|
12036
|
+
* @param options The ControlOptions for this control.
|
|
12037
|
+
* @return An HTMLElement to be placed on the map for the control.
|
|
12038
|
+
*/
|
|
12039
|
+
FullscreenControl.prototype.onAdd = function (map) {
|
|
12040
|
+
var _this = this;
|
|
12041
|
+
var _a, _b;
|
|
12042
|
+
this.map = map;
|
|
12043
|
+
(_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a._getMap()) === null || _b === void 0 ? void 0 : _b.addControl(this.control);
|
|
12044
|
+
var container = this.buildContainer(map, this.options.style, "Fullscreen Control");
|
|
12045
|
+
var fullscreenButton = this.control._fullscreenButton;
|
|
12046
|
+
if (fullscreenButton) {
|
|
12047
|
+
var icon_1 = fullscreenButton.querySelector("span");
|
|
12048
|
+
if (icon_1) {
|
|
12049
|
+
var tooltip_1 = buildAccessibleTooltip("Enter Fullscreen");
|
|
12050
|
+
container.appendChild(fullscreenButton);
|
|
12051
|
+
// Add classes for styling.
|
|
12052
|
+
fullscreenButton.classList.add("azure-maps-control-button", "fullscreen");
|
|
12053
|
+
icon_1.classList.add("fullscreen-icon", "fullscreen-end");
|
|
12054
|
+
// Add the tooltip and prevent the default one set by Maplibre.
|
|
12055
|
+
fullscreenButton.removeAttribute("title"); // A title attribute will be converted to a tooltip by the browser.
|
|
12056
|
+
container.appendChild(tooltip_1);
|
|
12057
|
+
positionTooltip(tooltip_1, fullscreenButton);
|
|
12058
|
+
// Update the icon and the tooltip based on the fullscreen state.
|
|
12059
|
+
this.control.on("fullscreenstart", function () {
|
|
12060
|
+
// Remove the title attribute added automatically whenever fullscreen event is fired
|
|
12061
|
+
fullscreenButton.removeAttribute("title");
|
|
12062
|
+
icon_1.classList.remove("fullscreen-end");
|
|
12063
|
+
icon_1.classList.add("fullscreen-start");
|
|
12064
|
+
tooltip_1.innerText = "Exit Fullscreen";
|
|
12065
|
+
_this.isFullscreenState = true;
|
|
12066
|
+
});
|
|
12067
|
+
this.control.on("fullscreenend", function () {
|
|
12068
|
+
fullscreenButton.removeAttribute("title");
|
|
12069
|
+
icon_1.classList.remove("fullscreen-start");
|
|
12070
|
+
icon_1.classList.add("fullscreen-end");
|
|
12071
|
+
tooltip_1.innerText = "Enter Fullscreen";
|
|
12072
|
+
_this.isFullscreenState = false;
|
|
12073
|
+
});
|
|
12074
|
+
}
|
|
12075
|
+
}
|
|
12076
|
+
// Invisiblize the control if the browser does not support fullscreen mode.
|
|
12077
|
+
if (this.options.hideIfUnsupported && !FullscreenControl.isSupported()) {
|
|
12078
|
+
container.style.display = "none";
|
|
12079
|
+
}
|
|
12080
|
+
return container;
|
|
12081
|
+
};
|
|
12082
|
+
/**
|
|
12083
|
+
* Method that is called when the control is removed from the map. Should perform any necessary cleanup for the
|
|
12084
|
+
* control.
|
|
12085
|
+
*/
|
|
12086
|
+
FullscreenControl.prototype.onRemove = function () {
|
|
12087
|
+
var _a, _b;
|
|
12088
|
+
_super.prototype.onRemove.call(this);
|
|
12089
|
+
(_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a._getMap()) === null || _b === void 0 ? void 0 : _b.removeControl(this.control);
|
|
12090
|
+
this.map = null;
|
|
12091
|
+
};
|
|
12092
|
+
/**
|
|
12093
|
+
* Gets the current fullscreen state of the map.
|
|
12094
|
+
* @returns A boolean indicating if the map is in fullscreen mode.
|
|
12095
|
+
*/
|
|
12096
|
+
FullscreenControl.prototype.isFullscreen = function () {
|
|
12097
|
+
return this.isFullscreenState;
|
|
12098
|
+
};
|
|
12099
|
+
/**
|
|
12100
|
+
* Checks to see if the browser supports going into fullscreen mode.
|
|
12101
|
+
* @returns A boolean indicating if the browser supports fullscreen mode.
|
|
12102
|
+
*/
|
|
12103
|
+
FullscreenControl.isSupported = function () {
|
|
12104
|
+
var d = document;
|
|
12105
|
+
return d['fullscreenEnabled'] ||
|
|
12106
|
+
d['msFullscreenEnabled'] ||
|
|
12107
|
+
d['mozFullScreenEnabled'] ||
|
|
12108
|
+
d['webkitFullscreenEnabled'];
|
|
12109
|
+
};
|
|
12110
|
+
return FullscreenControl;
|
|
12111
|
+
}(ControlBase));
|
|
12112
|
+
|
|
11955
12113
|
var index$2 = /*#__PURE__*/Object.freeze({
|
|
11956
12114
|
__proto__: null,
|
|
11957
12115
|
CompassControl: CompassControl,
|
|
11958
12116
|
ControlBase: ControlBase,
|
|
12117
|
+
FullscreenControl: FullscreenControl,
|
|
11959
12118
|
PitchControl: PitchControl,
|
|
11960
12119
|
ScaleControl: ScaleControl,
|
|
11961
12120
|
StyleControl: StyleControl,
|