azure-maps-control 3.3.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +235 -52
- package/dist/atlas-core-bare.js +236 -53
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +235 -52
- package/dist/atlas-core.js +236 -53
- package/dist/atlas-core.min.js +3 -3
- package/dist/atlas-esm.js +3539 -6020
- package/dist/atlas-esm.min.js +3 -3
- package/dist/atlas.css +27 -1
- package/dist/atlas.js +3538 -6019
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +2 -2
- package/package.json +10 -9
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +79 -1
package/dist/atlas-core-bare.js
CHANGED
|
@@ -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$1n = (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$1n(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$2 = "3.
|
|
889
|
+
var version$2 = "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$1m = (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$1m(AuthenticationOptions, _super);
|
|
996
996
|
function AuthenticationOptions() {
|
|
997
997
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
998
998
|
/**
|
|
@@ -1608,6 +1608,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1608
1608
|
function clearPrewarmedResources() {
|
|
1609
1609
|
maplibregl.clearPrewarmedResources();
|
|
1610
1610
|
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Adds a custom load resource function that will be called when using a URL that starts with a custom url schema.
|
|
1613
|
+
* @param customProtocol - the protocol to hook, for example 'custom'
|
|
1614
|
+
* @param loadFn - the function to use when trying to fetch a tile specified by the customProtocol
|
|
1615
|
+
*/
|
|
1616
|
+
function addProtocol(customProtocol, loadFn) {
|
|
1617
|
+
maplibregl.addProtocol(customProtocol, loadFn);
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* Removes a previously added protocol in the main thread.
|
|
1621
|
+
* @param customProtocol - the custom protocol to remove registration for
|
|
1622
|
+
*/
|
|
1623
|
+
function removeProtocol(customProtocol) {
|
|
1624
|
+
maplibregl.removeProtocol(customProtocol);
|
|
1625
|
+
}
|
|
1611
1626
|
/**
|
|
1612
1627
|
* Returns if authentication options are set.
|
|
1613
1628
|
* @internal
|
|
@@ -1833,7 +1848,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1833
1848
|
eventTarget.addEventListener("keydown", dismissTooltip);
|
|
1834
1849
|
};
|
|
1835
1850
|
|
|
1836
|
-
var __extends$
|
|
1851
|
+
var __extends$1l = (window && window.__extends) || (function () {
|
|
1837
1852
|
var extendStatics = function (d, b) {
|
|
1838
1853
|
extendStatics = Object.setPrototypeOf ||
|
|
1839
1854
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -1883,7 +1898,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1883
1898
|
* The options for adding a control to the map.
|
|
1884
1899
|
*/
|
|
1885
1900
|
var ControlOptions = /** @class */ (function (_super) {
|
|
1886
|
-
__extends$
|
|
1901
|
+
__extends$1l(ControlOptions, _super);
|
|
1887
1902
|
function ControlOptions() {
|
|
1888
1903
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1889
1904
|
/**
|
|
@@ -2027,7 +2042,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2027
2042
|
EventEmitter: EventEmitter
|
|
2028
2043
|
});
|
|
2029
2044
|
|
|
2030
|
-
var __extends$
|
|
2045
|
+
var __extends$1k = (window && window.__extends) || (function () {
|
|
2031
2046
|
var extendStatics = function (d, b) {
|
|
2032
2047
|
extendStatics = Object.setPrototypeOf ||
|
|
2033
2048
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2047,7 +2062,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2047
2062
|
* Implements control interface and provides support for automatic styling based on the map style.
|
|
2048
2063
|
*/
|
|
2049
2064
|
var ControlBase = /** @class */ (function (_super) {
|
|
2050
|
-
__extends$
|
|
2065
|
+
__extends$1k(ControlBase, _super);
|
|
2051
2066
|
function ControlBase() {
|
|
2052
2067
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2053
2068
|
/**
|
|
@@ -2149,7 +2164,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2149
2164
|
return ControlBase;
|
|
2150
2165
|
}(EventEmitter));
|
|
2151
2166
|
|
|
2152
|
-
var __extends$
|
|
2167
|
+
var __extends$1j = (window && window.__extends) || (function () {
|
|
2153
2168
|
var extendStatics = function (d, b) {
|
|
2154
2169
|
extendStatics = Object.setPrototypeOf ||
|
|
2155
2170
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2168,7 +2183,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2168
2183
|
* The options for a CompassControl object.
|
|
2169
2184
|
*/
|
|
2170
2185
|
var CompassControlOptions = /** @class */ (function (_super) {
|
|
2171
|
-
__extends$
|
|
2186
|
+
__extends$1j(CompassControlOptions, _super);
|
|
2172
2187
|
function CompassControlOptions() {
|
|
2173
2188
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2174
2189
|
/**
|
|
@@ -2193,7 +2208,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2193
2208
|
return CompassControlOptions;
|
|
2194
2209
|
}(Options));
|
|
2195
2210
|
|
|
2196
|
-
var __extends$
|
|
2211
|
+
var __extends$1i = (window && window.__extends) || (function () {
|
|
2197
2212
|
var extendStatics = function (d, b) {
|
|
2198
2213
|
extendStatics = Object.setPrototypeOf ||
|
|
2199
2214
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2212,7 +2227,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2212
2227
|
* A control for changing the rotation of the map.
|
|
2213
2228
|
*/
|
|
2214
2229
|
var CompassControl = /** @class */ (function (_super) {
|
|
2215
|
-
__extends$
|
|
2230
|
+
__extends$1i(CompassControl, _super);
|
|
2216
2231
|
/**
|
|
2217
2232
|
* Constructs a CompassControl.
|
|
2218
2233
|
* @param options The options for the control.
|
|
@@ -2397,7 +2412,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2397
2412
|
return CompassControl;
|
|
2398
2413
|
}(ControlBase));
|
|
2399
2414
|
|
|
2400
|
-
var __extends$
|
|
2415
|
+
var __extends$1h = (window && window.__extends) || (function () {
|
|
2401
2416
|
var extendStatics = function (d, b) {
|
|
2402
2417
|
extendStatics = Object.setPrototypeOf ||
|
|
2403
2418
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2416,7 +2431,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2416
2431
|
* The options for a PitchControl object.
|
|
2417
2432
|
*/
|
|
2418
2433
|
var PitchControlOptions = /** @class */ (function (_super) {
|
|
2419
|
-
__extends$
|
|
2434
|
+
__extends$1h(PitchControlOptions, _super);
|
|
2420
2435
|
function PitchControlOptions() {
|
|
2421
2436
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
2422
2437
|
/**
|
|
@@ -2441,7 +2456,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2441
2456
|
return PitchControlOptions;
|
|
2442
2457
|
}(Options));
|
|
2443
2458
|
|
|
2444
|
-
var __extends$
|
|
2459
|
+
var __extends$1g = (window && window.__extends) || (function () {
|
|
2445
2460
|
var extendStatics = function (d, b) {
|
|
2446
2461
|
extendStatics = Object.setPrototypeOf ||
|
|
2447
2462
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2460,7 +2475,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2460
2475
|
* A control for changing the pitch of the map.
|
|
2461
2476
|
*/
|
|
2462
2477
|
var PitchControl = /** @class */ (function (_super) {
|
|
2463
|
-
__extends$
|
|
2478
|
+
__extends$1g(PitchControl, _super);
|
|
2464
2479
|
/**
|
|
2465
2480
|
* Constructs a PitchControl.
|
|
2466
2481
|
* @param options The options for the control.
|
|
@@ -2688,7 +2703,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2688
2703
|
return PitchControl;
|
|
2689
2704
|
}(ControlBase));
|
|
2690
2705
|
|
|
2691
|
-
var __extends$
|
|
2706
|
+
var __extends$1f = (window && window.__extends) || (function () {
|
|
2692
2707
|
var extendStatics = function (d, b) {
|
|
2693
2708
|
extendStatics = Object.setPrototypeOf ||
|
|
2694
2709
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2707,7 +2722,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2707
2722
|
* A control to display a scale bar on the map.
|
|
2708
2723
|
*/
|
|
2709
2724
|
var ScaleControl = /** @class */ (function (_super) {
|
|
2710
|
-
__extends$
|
|
2725
|
+
__extends$1f(ScaleControl, _super);
|
|
2711
2726
|
/**
|
|
2712
2727
|
* A control to displays a scale bar relative to the pixel resolution at the center of the map.
|
|
2713
2728
|
* @param options Options for defining how the control is rendered and functions.
|
|
@@ -6225,7 +6240,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6225
6240
|
|
|
6226
6241
|
var merge$1 = /*@__PURE__*/getDefaultExportFromCjs(merge_1);
|
|
6227
6242
|
|
|
6228
|
-
var __extends$
|
|
6243
|
+
var __extends$1e = (window && window.__extends) || (function () {
|
|
6229
6244
|
var extendStatics = function (d, b) {
|
|
6230
6245
|
extendStatics = Object.setPrototypeOf ||
|
|
6231
6246
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6244,7 +6259,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6244
6259
|
* The options for a StyleControl object.
|
|
6245
6260
|
*/
|
|
6246
6261
|
var StyleControlOptions = /** @class */ (function (_super) {
|
|
6247
|
-
__extends$
|
|
6262
|
+
__extends$1e(StyleControlOptions, _super);
|
|
6248
6263
|
function StyleControlOptions() {
|
|
6249
6264
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
6250
6265
|
/**
|
|
@@ -6289,7 +6304,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6289
6304
|
return StyleControlOptions;
|
|
6290
6305
|
}(Options));
|
|
6291
6306
|
|
|
6292
|
-
var __extends$
|
|
6307
|
+
var __extends$1d = (window && window.__extends) || (function () {
|
|
6293
6308
|
var extendStatics = function (d, b) {
|
|
6294
6309
|
extendStatics = Object.setPrototypeOf ||
|
|
6295
6310
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6360,7 +6375,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6360
6375
|
* A control for changing the style of the map.
|
|
6361
6376
|
*/
|
|
6362
6377
|
var StyleControl = /** @class */ (function (_super) {
|
|
6363
|
-
__extends$
|
|
6378
|
+
__extends$1d(StyleControl, _super);
|
|
6364
6379
|
/**
|
|
6365
6380
|
* Constructs a StyleControl.
|
|
6366
6381
|
* @param options The options for the control.
|
|
@@ -6725,7 +6740,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6725
6740
|
return StyleControl;
|
|
6726
6741
|
}(ControlBase));
|
|
6727
6742
|
|
|
6728
|
-
var __extends$
|
|
6743
|
+
var __extends$1c = (window && window.__extends) || (function () {
|
|
6729
6744
|
var extendStatics = function (d, b) {
|
|
6730
6745
|
extendStatics = Object.setPrototypeOf ||
|
|
6731
6746
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6744,7 +6759,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6744
6759
|
* The options for setting traffic on the map.
|
|
6745
6760
|
*/
|
|
6746
6761
|
var TrafficOptions = /** @class */ (function (_super) {
|
|
6747
|
-
__extends$
|
|
6762
|
+
__extends$1c(TrafficOptions, _super);
|
|
6748
6763
|
function TrafficOptions() {
|
|
6749
6764
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
6750
6765
|
/**
|
|
@@ -6769,7 +6784,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6769
6784
|
return TrafficOptions;
|
|
6770
6785
|
}(Options));
|
|
6771
6786
|
|
|
6772
|
-
var __extends$
|
|
6787
|
+
var __extends$1b = (window && window.__extends) || (function () {
|
|
6773
6788
|
var extendStatics = function (d, b) {
|
|
6774
6789
|
extendStatics = Object.setPrototypeOf ||
|
|
6775
6790
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6788,7 +6803,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6788
6803
|
* The options for a TrafficControl object.
|
|
6789
6804
|
*/
|
|
6790
6805
|
var TrafficControlOptions = /** @class */ (function (_super) {
|
|
6791
|
-
__extends$
|
|
6806
|
+
__extends$1b(TrafficControlOptions, _super);
|
|
6792
6807
|
function TrafficControlOptions() {
|
|
6793
6808
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
6794
6809
|
/**
|
|
@@ -6808,7 +6823,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6808
6823
|
return TrafficControlOptions;
|
|
6809
6824
|
}(TrafficOptions));
|
|
6810
6825
|
|
|
6811
|
-
var __extends$
|
|
6826
|
+
var __extends$1a = (window && window.__extends) || (function () {
|
|
6812
6827
|
var extendStatics = function (d, b) {
|
|
6813
6828
|
extendStatics = Object.setPrototypeOf ||
|
|
6814
6829
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6827,7 +6842,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6827
6842
|
* A control that toggles traffic data on the map.
|
|
6828
6843
|
*/
|
|
6829
6844
|
var TrafficControl = /** @class */ (function (_super) {
|
|
6830
|
-
__extends$
|
|
6845
|
+
__extends$1a(TrafficControl, _super);
|
|
6831
6846
|
/**
|
|
6832
6847
|
* Constructs a TrafficControl
|
|
6833
6848
|
* @param options The options for the control.
|
|
@@ -6954,7 +6969,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6954
6969
|
return TrafficControl;
|
|
6955
6970
|
}(ControlBase));
|
|
6956
6971
|
|
|
6957
|
-
var __extends$
|
|
6972
|
+
var __extends$19 = (window && window.__extends) || (function () {
|
|
6958
6973
|
var extendStatics = function (d, b) {
|
|
6959
6974
|
extendStatics = Object.setPrototypeOf ||
|
|
6960
6975
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -6984,7 +6999,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6984
6999
|
* A control that display traffic legend on the map.
|
|
6985
7000
|
*/
|
|
6986
7001
|
var TrafficLegendControl = /** @class */ (function (_super) {
|
|
6987
|
-
__extends$
|
|
7002
|
+
__extends$19(TrafficLegendControl, _super);
|
|
6988
7003
|
/**
|
|
6989
7004
|
* Construct a traffic legend control
|
|
6990
7005
|
*/
|
|
@@ -7718,7 +7733,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
7718
7733
|
return Feature;
|
|
7719
7734
|
}());
|
|
7720
7735
|
|
|
7721
|
-
var __extends$
|
|
7736
|
+
var __extends$18 = (window && window.__extends) || (function () {
|
|
7722
7737
|
var extendStatics = function (d, b) {
|
|
7723
7738
|
extendStatics = Object.setPrototypeOf ||
|
|
7724
7739
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -7737,7 +7752,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
7737
7752
|
* Represent a pixel coordinate or offset. Extends an array of [x, y].
|
|
7738
7753
|
*/
|
|
7739
7754
|
var Pixel = /** @class */ (function (_super) {
|
|
7740
|
-
__extends$
|
|
7755
|
+
__extends$18(Pixel, _super);
|
|
7741
7756
|
/**
|
|
7742
7757
|
* Constructs a Pixel object and initializes it with the specified x and y coordinates.
|
|
7743
7758
|
* @param x The horizontal pixel offset.
|
|
@@ -9957,7 +9972,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9957
9972
|
return result;
|
|
9958
9973
|
}
|
|
9959
9974
|
|
|
9960
|
-
var __extends$
|
|
9975
|
+
var __extends$17 = (window && window.__extends) || (function () {
|
|
9961
9976
|
var extendStatics = function (d, b) {
|
|
9962
9977
|
extendStatics = Object.setPrototypeOf ||
|
|
9963
9978
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -9977,7 +9992,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
9977
9992
|
* full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
|
|
9978
9993
|
*/
|
|
9979
9994
|
var Position = /** @class */ (function (_super) {
|
|
9980
|
-
__extends$
|
|
9995
|
+
__extends$17(Position, _super);
|
|
9981
9996
|
/**
|
|
9982
9997
|
* Constructs a Position.
|
|
9983
9998
|
* @param longitude The position's longitude.
|
|
@@ -10169,7 +10184,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10169
10184
|
return Polygon;
|
|
10170
10185
|
}());
|
|
10171
10186
|
|
|
10172
|
-
var __extends$
|
|
10187
|
+
var __extends$16 = (window && window.__extends) || (function () {
|
|
10173
10188
|
var extendStatics = function (d, b) {
|
|
10174
10189
|
extendStatics = Object.setPrototypeOf ||
|
|
10175
10190
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -10199,7 +10214,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10199
10214
|
* A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
|
|
10200
10215
|
*/
|
|
10201
10216
|
var Shape = /** @class */ (function (_super) {
|
|
10202
|
-
__extends$
|
|
10217
|
+
__extends$16(Shape, _super);
|
|
10203
10218
|
function Shape(data, id, properties) {
|
|
10204
10219
|
var _this = _super.call(this) || this;
|
|
10205
10220
|
var geometry;
|
|
@@ -10495,7 +10510,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10495
10510
|
return Shape;
|
|
10496
10511
|
}(EventEmitter));
|
|
10497
10512
|
|
|
10498
|
-
var __extends$
|
|
10513
|
+
var __extends$15 = (window && window.__extends) || (function () {
|
|
10499
10514
|
var extendStatics = function (d, b) {
|
|
10500
10515
|
extendStatics = Object.setPrototypeOf ||
|
|
10501
10516
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -10528,7 +10543,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10528
10543
|
* [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
|
|
10529
10544
|
*/
|
|
10530
10545
|
var BoundingBox = /** @class */ (function (_super) {
|
|
10531
|
-
__extends$
|
|
10546
|
+
__extends$15(BoundingBox, _super);
|
|
10532
10547
|
function BoundingBox(southwestPositionOrPositions, northeastPosition) {
|
|
10533
10548
|
var _this = this;
|
|
10534
10549
|
if (southwestPositionOrPositions && northeastPosition) {
|
|
@@ -11245,7 +11260,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11245
11260
|
return MultiPolygon;
|
|
11246
11261
|
}());
|
|
11247
11262
|
|
|
11248
|
-
var __extends$
|
|
11263
|
+
var __extends$14 = (window && window.__extends) || (function () {
|
|
11249
11264
|
var extendStatics = function (d, b) {
|
|
11250
11265
|
extendStatics = Object.setPrototypeOf ||
|
|
11251
11266
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11276,7 +11291,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11276
11291
|
* The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
|
|
11277
11292
|
*/
|
|
11278
11293
|
var MercatorPoint = /** @class */ (function (_super) {
|
|
11279
|
-
__extends$
|
|
11294
|
+
__extends$14(MercatorPoint, _super);
|
|
11280
11295
|
/**
|
|
11281
11296
|
* Constructs a MercatorPoint.
|
|
11282
11297
|
* @param x A points x position in mercator units.
|
|
@@ -11765,7 +11780,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11765
11780
|
simplify: simplify
|
|
11766
11781
|
});
|
|
11767
11782
|
|
|
11768
|
-
var __extends$
|
|
11783
|
+
var __extends$13 = (window && window.__extends) || (function () {
|
|
11769
11784
|
var extendStatics = function (d, b) {
|
|
11770
11785
|
extendStatics = Object.setPrototypeOf ||
|
|
11771
11786
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11784,7 +11799,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11784
11799
|
* The options for a ZoomControl object.
|
|
11785
11800
|
*/
|
|
11786
11801
|
var ZoomControlOptions = /** @class */ (function (_super) {
|
|
11787
|
-
__extends$
|
|
11802
|
+
__extends$13(ZoomControlOptions, _super);
|
|
11788
11803
|
function ZoomControlOptions() {
|
|
11789
11804
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11790
11805
|
/**
|
|
@@ -11804,7 +11819,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11804
11819
|
return ZoomControlOptions;
|
|
11805
11820
|
}(Options));
|
|
11806
11821
|
|
|
11807
|
-
var __extends$
|
|
11822
|
+
var __extends$12 = (window && window.__extends) || (function () {
|
|
11808
11823
|
var extendStatics = function (d, b) {
|
|
11809
11824
|
extendStatics = Object.setPrototypeOf ||
|
|
11810
11825
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11823,7 +11838,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11823
11838
|
* A control for changing the zoom of the map.
|
|
11824
11839
|
*/
|
|
11825
11840
|
var ZoomControl = /** @class */ (function (_super) {
|
|
11826
|
-
__extends$
|
|
11841
|
+
__extends$12(ZoomControl, _super);
|
|
11827
11842
|
/**
|
|
11828
11843
|
* Constructs a ZoomControl.
|
|
11829
11844
|
* @param options The options for the control.
|
|
@@ -11937,10 +11952,169 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
11937
11952
|
return ZoomControl;
|
|
11938
11953
|
}(ControlBase));
|
|
11939
11954
|
|
|
11955
|
+
var __extends$11 = (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$11(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$10 = (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$10(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
|
+
|
|
11940
12113
|
var index$2 = /*#__PURE__*/Object.freeze({
|
|
11941
12114
|
__proto__: null,
|
|
11942
12115
|
CompassControl: CompassControl,
|
|
11943
12116
|
ControlBase: ControlBase,
|
|
12117
|
+
FullscreenControl: FullscreenControl,
|
|
11944
12118
|
PitchControl: PitchControl,
|
|
11945
12119
|
ScaleControl: ScaleControl,
|
|
11946
12120
|
StyleControl: StyleControl,
|
|
@@ -23307,7 +23481,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
23307
23481
|
this.loadAttributionOnceSourcesLoaded = function () {
|
|
23308
23482
|
var sources = _this.getMapStyleVisibleSources();
|
|
23309
23483
|
Promise.all(sources.map(function (source) { return new Promise(function (resolve, reject) {
|
|
23310
|
-
if ('tiles' in source) {
|
|
23484
|
+
if ('tiles' in source || (source === null || source === void 0 ? void 0 : source.type) === 'geojson') {
|
|
23311
23485
|
resolve(source);
|
|
23312
23486
|
// TileJSON source may yet be unresolved
|
|
23313
23487
|
}
|
|
@@ -46524,7 +46698,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
46524
46698
|
/**
|
|
46525
46699
|
* The callback used when styleOptions.autoResize is true.
|
|
46526
46700
|
*/
|
|
46527
|
-
_this.
|
|
46701
|
+
_this._resizeCallback = function () { return _this.resize(); };
|
|
46528
46702
|
// Update global defaults based on which options were specified to this constructor.
|
|
46529
46703
|
_this._updateGlobalDefaults(options);
|
|
46530
46704
|
_this.serviceOptions = new ServiceOptions().merge(options);
|
|
@@ -46813,8 +46987,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
46813
46987
|
if ('maxPitch' in options) {
|
|
46814
46988
|
this.map.setMaxPitch(options.maxPitch);
|
|
46815
46989
|
}
|
|
46816
|
-
|
|
46817
|
-
|
|
46990
|
+
if ('minZoom' in options) {
|
|
46991
|
+
this.map.setMinZoom(options.minZoom);
|
|
46992
|
+
}
|
|
46818
46993
|
maxBounds = this._generateSafeBounds(cameraBoundsOptions.maxBounds);
|
|
46819
46994
|
}
|
|
46820
46995
|
else {
|
|
@@ -47514,13 +47689,14 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47514
47689
|
* Clean up the map's resources. Map will not function correctly after calling this method.
|
|
47515
47690
|
*/
|
|
47516
47691
|
Map.prototype.dispose = function () {
|
|
47517
|
-
var _a;
|
|
47692
|
+
var _a, _b;
|
|
47518
47693
|
this.clear();
|
|
47519
47694
|
this.map.remove();
|
|
47520
47695
|
(_a = this.authentication) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
47521
47696
|
this.removed = true;
|
|
47522
47697
|
// Remove event listeners
|
|
47523
|
-
|
|
47698
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
47699
|
+
this.resizeObserver = null;
|
|
47524
47700
|
while (this.getMapContainer().firstChild) {
|
|
47525
47701
|
var currChild = this.getMapContainer().firstChild;
|
|
47526
47702
|
this.getMapContainer().removeChild(currChild);
|
|
@@ -47749,10 +47925,15 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
47749
47925
|
*/
|
|
47750
47926
|
Map.prototype._setAutoResize = function (autoResize) {
|
|
47751
47927
|
if (autoResize) {
|
|
47752
|
-
|
|
47928
|
+
if (!this.resizeObserver) {
|
|
47929
|
+
this.resizeObserver = new ResizeObserver(this._resizeCallback);
|
|
47930
|
+
}
|
|
47931
|
+
this.resizeObserver.observe(this.map.getContainer());
|
|
47753
47932
|
}
|
|
47754
47933
|
else {
|
|
47755
|
-
|
|
47934
|
+
if (this.resizeObserver) {
|
|
47935
|
+
this.resizeObserver.unobserve(this.map.getContainer());
|
|
47936
|
+
}
|
|
47756
47937
|
}
|
|
47757
47938
|
};
|
|
47758
47939
|
/**
|
|
@@ -48482,6 +48663,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
48482
48663
|
exports._hasSetView = _hasSetView;
|
|
48483
48664
|
exports._hasWorkerCount = _hasWorkerCount;
|
|
48484
48665
|
exports.addImageTemplate = addImageTemplate;
|
|
48666
|
+
exports.addProtocol = addProtocol;
|
|
48485
48667
|
exports.clearPrewarmedResources = clearPrewarmedResources;
|
|
48486
48668
|
exports.control = index$2;
|
|
48487
48669
|
exports.data = index$4;
|
|
@@ -48506,6 +48688,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
48506
48688
|
exports.layer = index;
|
|
48507
48689
|
exports.math = index$3;
|
|
48508
48690
|
exports.prewarm = prewarm;
|
|
48691
|
+
exports.removeProtocol = removeProtocol;
|
|
48509
48692
|
exports.setAuthenticationOptions = setAuthenticationOptions;
|
|
48510
48693
|
exports.setDomain = setDomain;
|
|
48511
48694
|
exports.setLanguage = setLanguage;
|