azure-maps-control 3.4.0 → 3.6.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 +260 -65
- package/dist/atlas-core-bare.js +260 -65
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +260 -65
- package/dist/atlas-core.js +260 -65
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas-esm.js +260 -65
- package/dist/atlas-esm.min.js +1 -1
- package/dist/atlas.css +23 -3
- package/dist/atlas.js +260 -65
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +1 -1
- package/package.json +8 -8
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +123 -4
package/dist/atlas.js
CHANGED
|
@@ -51655,7 +51655,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
51655
51655
|
return Options;
|
|
51656
51656
|
}());
|
|
51657
51657
|
|
|
51658
|
-
var __extends$
|
|
51658
|
+
var __extends$1n = (window && window.__extends) || (function () {
|
|
51659
51659
|
var extendStatics = function (d, b) {
|
|
51660
51660
|
extendStatics = Object.setPrototypeOf ||
|
|
51661
51661
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -51690,7 +51690,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
51690
51690
|
* @private
|
|
51691
51691
|
*/
|
|
51692
51692
|
var UrlOptions = /** @class */ (function (_super) {
|
|
51693
|
-
__extends$
|
|
51693
|
+
__extends$1n(UrlOptions, _super);
|
|
51694
51694
|
function UrlOptions() {
|
|
51695
51695
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
51696
51696
|
_this.domain = undefined;
|
|
@@ -52094,6 +52094,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
52094
52094
|
* @param locale The requested culture code.
|
|
52095
52095
|
*/
|
|
52096
52096
|
Localizer.getCode = function (locale) {
|
|
52097
|
+
// If locale is set to 'auto', use the browser's configured language.
|
|
52098
|
+
if (locale.localeCompare("auto", undefined, { sensitivity: "base" }) === 0) {
|
|
52099
|
+
locale = navigator.language;
|
|
52100
|
+
}
|
|
52097
52101
|
var code = CultureCode.parse(locale);
|
|
52098
52102
|
// If the requested culture code includes a sensitive region simply return the original code.
|
|
52099
52103
|
// This is to hopefully reduce the risk or providing bad content to users in a sensitive region.
|
|
@@ -52217,7 +52221,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52217
52221
|
return UserAgent;
|
|
52218
52222
|
}());
|
|
52219
52223
|
|
|
52220
|
-
var version$3 = "3.
|
|
52224
|
+
var version$3 = "3.6.0";
|
|
52221
52225
|
|
|
52222
52226
|
/**
|
|
52223
52227
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -52249,7 +52253,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52249
52253
|
return Version;
|
|
52250
52254
|
}());
|
|
52251
52255
|
|
|
52252
|
-
var __extends$
|
|
52256
|
+
var __extends$1m = (window && window.__extends) || (function () {
|
|
52253
52257
|
var extendStatics = function (d, b) {
|
|
52254
52258
|
extendStatics = Object.setPrototypeOf ||
|
|
52255
52259
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -52323,7 +52327,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52323
52327
|
* Options for specifying how the map control should authenticate with the Azure Maps services.
|
|
52324
52328
|
*/
|
|
52325
52329
|
var AuthenticationOptions = /** @class */ (function (_super) {
|
|
52326
|
-
__extends$
|
|
52330
|
+
__extends$1m(AuthenticationOptions, _super);
|
|
52327
52331
|
function AuthenticationOptions() {
|
|
52328
52332
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
52329
52333
|
/**
|
|
@@ -52831,10 +52835,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
52831
52835
|
* language is explicitly specified when using those parts of the API.
|
|
52832
52836
|
* If a Map is initialized with the language explicitly defined and
|
|
52833
52837
|
* setLanguage hasn't previously been called it will automatically be called by the Map constructor.
|
|
52834
|
-
* @param language The new default language.
|
|
52838
|
+
* @param language The new default language. If set to "auto", the browser's configured language will be used.
|
|
52835
52839
|
*/
|
|
52836
52840
|
function setLanguage(language) {
|
|
52837
|
-
// Find the best fit supported language.
|
|
52838
52841
|
defaultLanguage = Localizer.getCode(language);
|
|
52839
52842
|
hasSetLanguage = true;
|
|
52840
52843
|
}
|
|
@@ -53188,7 +53191,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53188
53191
|
eventTarget.addEventListener("keydown", dismissTooltip);
|
|
53189
53192
|
};
|
|
53190
53193
|
|
|
53191
|
-
var __extends$
|
|
53194
|
+
var __extends$1l = (window && window.__extends) || (function () {
|
|
53192
53195
|
var extendStatics = function (d, b) {
|
|
53193
53196
|
extendStatics = Object.setPrototypeOf ||
|
|
53194
53197
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53238,7 +53241,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53238
53241
|
* The options for adding a control to the map.
|
|
53239
53242
|
*/
|
|
53240
53243
|
var ControlOptions = /** @class */ (function (_super) {
|
|
53241
|
-
__extends$
|
|
53244
|
+
__extends$1l(ControlOptions, _super);
|
|
53242
53245
|
function ControlOptions() {
|
|
53243
53246
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53244
53247
|
/**
|
|
@@ -53382,7 +53385,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53382
53385
|
EventEmitter: EventEmitter
|
|
53383
53386
|
});
|
|
53384
53387
|
|
|
53385
|
-
var __extends$
|
|
53388
|
+
var __extends$1k = (window && window.__extends) || (function () {
|
|
53386
53389
|
var extendStatics = function (d, b) {
|
|
53387
53390
|
extendStatics = Object.setPrototypeOf ||
|
|
53388
53391
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53402,7 +53405,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53402
53405
|
* Implements control interface and provides support for automatic styling based on the map style.
|
|
53403
53406
|
*/
|
|
53404
53407
|
var ControlBase = /** @class */ (function (_super) {
|
|
53405
|
-
__extends$
|
|
53408
|
+
__extends$1k(ControlBase, _super);
|
|
53406
53409
|
function ControlBase() {
|
|
53407
53410
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53408
53411
|
/**
|
|
@@ -53504,7 +53507,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53504
53507
|
return ControlBase;
|
|
53505
53508
|
}(EventEmitter));
|
|
53506
53509
|
|
|
53507
|
-
var __extends$
|
|
53510
|
+
var __extends$1j = (window && window.__extends) || (function () {
|
|
53508
53511
|
var extendStatics = function (d, b) {
|
|
53509
53512
|
extendStatics = Object.setPrototypeOf ||
|
|
53510
53513
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53523,7 +53526,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53523
53526
|
* The options for a CompassControl object.
|
|
53524
53527
|
*/
|
|
53525
53528
|
var CompassControlOptions = /** @class */ (function (_super) {
|
|
53526
|
-
__extends$
|
|
53529
|
+
__extends$1j(CompassControlOptions, _super);
|
|
53527
53530
|
function CompassControlOptions() {
|
|
53528
53531
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53529
53532
|
/**
|
|
@@ -53548,7 +53551,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53548
53551
|
return CompassControlOptions;
|
|
53549
53552
|
}(Options));
|
|
53550
53553
|
|
|
53551
|
-
var __extends$
|
|
53554
|
+
var __extends$1i = (window && window.__extends) || (function () {
|
|
53552
53555
|
var extendStatics = function (d, b) {
|
|
53553
53556
|
extendStatics = Object.setPrototypeOf ||
|
|
53554
53557
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53567,7 +53570,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53567
53570
|
* A control for changing the rotation of the map.
|
|
53568
53571
|
*/
|
|
53569
53572
|
var CompassControl = /** @class */ (function (_super) {
|
|
53570
|
-
__extends$
|
|
53573
|
+
__extends$1i(CompassControl, _super);
|
|
53571
53574
|
/**
|
|
53572
53575
|
* Constructs a CompassControl.
|
|
53573
53576
|
* @param options The options for the control.
|
|
@@ -53594,12 +53597,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
53594
53597
|
var expandGrid = function (expanded) {
|
|
53595
53598
|
if (expanded) {
|
|
53596
53599
|
container.classList.add("in-use");
|
|
53597
|
-
grid.setAttribute("aria-hidden", "false");
|
|
53598
53600
|
grid.classList.remove("hidden-accessible-element");
|
|
53599
53601
|
}
|
|
53600
53602
|
else {
|
|
53601
53603
|
container.classList.remove("in-use");
|
|
53602
|
-
grid.setAttribute("aria-hidden", "true");
|
|
53603
53604
|
grid.classList.add("hidden-accessible-element");
|
|
53604
53605
|
}
|
|
53605
53606
|
};
|
|
@@ -53666,7 +53667,6 @@ uniform ${precision} ${type} u_${name};
|
|
|
53666
53667
|
var grid = document.createElement("div");
|
|
53667
53668
|
grid.classList.add("sub-container");
|
|
53668
53669
|
grid.classList.add("hidden-accessible-element");
|
|
53669
|
-
grid.setAttribute("aria-hidden", "true");
|
|
53670
53670
|
var rotationRightButton = this.constructRightRotationButton(map);
|
|
53671
53671
|
var rotationLeftButton = this.constructLeftRotationButton(map);
|
|
53672
53672
|
var tooltipLeft = buildAccessibleTooltip("Rotate Left");
|
|
@@ -53752,7 +53752,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53752
53752
|
return CompassControl;
|
|
53753
53753
|
}(ControlBase));
|
|
53754
53754
|
|
|
53755
|
-
var __extends$
|
|
53755
|
+
var __extends$1h = (window && window.__extends) || (function () {
|
|
53756
53756
|
var extendStatics = function (d, b) {
|
|
53757
53757
|
extendStatics = Object.setPrototypeOf ||
|
|
53758
53758
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53771,7 +53771,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53771
53771
|
* The options for a PitchControl object.
|
|
53772
53772
|
*/
|
|
53773
53773
|
var PitchControlOptions = /** @class */ (function (_super) {
|
|
53774
|
-
__extends$
|
|
53774
|
+
__extends$1h(PitchControlOptions, _super);
|
|
53775
53775
|
function PitchControlOptions() {
|
|
53776
53776
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
53777
53777
|
/**
|
|
@@ -53796,7 +53796,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53796
53796
|
return PitchControlOptions;
|
|
53797
53797
|
}(Options));
|
|
53798
53798
|
|
|
53799
|
-
var __extends$
|
|
53799
|
+
var __extends$1g = (window && window.__extends) || (function () {
|
|
53800
53800
|
var extendStatics = function (d, b) {
|
|
53801
53801
|
extendStatics = Object.setPrototypeOf ||
|
|
53802
53802
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -53815,7 +53815,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53815
53815
|
* A control for changing the pitch of the map.
|
|
53816
53816
|
*/
|
|
53817
53817
|
var PitchControl = /** @class */ (function (_super) {
|
|
53818
|
-
__extends$
|
|
53818
|
+
__extends$1g(PitchControl, _super);
|
|
53819
53819
|
/**
|
|
53820
53820
|
* Constructs a PitchControl.
|
|
53821
53821
|
* @param options The options for the control.
|
|
@@ -53872,12 +53872,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
53872
53872
|
var expandGrid = function (expanded) {
|
|
53873
53873
|
if (expanded) {
|
|
53874
53874
|
container.classList.add("in-use");
|
|
53875
|
-
grid.setAttribute("aria-hidden", "false");
|
|
53876
53875
|
grid.classList.remove("hidden-accessible-element");
|
|
53877
53876
|
}
|
|
53878
53877
|
else {
|
|
53879
53878
|
container.classList.remove("in-use");
|
|
53880
|
-
grid.setAttribute("aria-hidden", "true");
|
|
53881
53879
|
grid.classList.add("hidden-accessible-element");
|
|
53882
53880
|
}
|
|
53883
53881
|
};
|
|
@@ -53962,7 +53960,6 @@ uniform ${precision} ${type} u_${name};
|
|
|
53962
53960
|
var grid = document.createElement("div");
|
|
53963
53961
|
grid.classList.add("sub-container");
|
|
53964
53962
|
grid.classList.add("hidden-accessible-element");
|
|
53965
|
-
grid.setAttribute("aria-hidden", "true");
|
|
53966
53963
|
this.pitchIncrementButton = this.constructPitchIncrementButton(map);
|
|
53967
53964
|
this.pitchDecrementButton = this.constructPitchDecrementButton(map);
|
|
53968
53965
|
var tooltipIncrement = buildAccessibleTooltip("Increase Pitch");
|
|
@@ -54043,7 +54040,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
54043
54040
|
return PitchControl;
|
|
54044
54041
|
}(ControlBase));
|
|
54045
54042
|
|
|
54046
|
-
var __extends$
|
|
54043
|
+
var __extends$1f = (window && window.__extends) || (function () {
|
|
54047
54044
|
var extendStatics = function (d, b) {
|
|
54048
54045
|
extendStatics = Object.setPrototypeOf ||
|
|
54049
54046
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -54062,7 +54059,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
54062
54059
|
* A control to display a scale bar on the map.
|
|
54063
54060
|
*/
|
|
54064
54061
|
var ScaleControl = /** @class */ (function (_super) {
|
|
54065
|
-
__extends$
|
|
54062
|
+
__extends$1f(ScaleControl, _super);
|
|
54066
54063
|
/**
|
|
54067
54064
|
* A control to displays a scale bar relative to the pixel resolution at the center of the map.
|
|
54068
54065
|
* @param options Options for defining how the control is rendered and functions.
|
|
@@ -57580,7 +57577,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57580
57577
|
|
|
57581
57578
|
var merge$1 = /*@__PURE__*/getDefaultExportFromCjs(merge_1);
|
|
57582
57579
|
|
|
57583
|
-
var __extends$
|
|
57580
|
+
var __extends$1e = (window && window.__extends) || (function () {
|
|
57584
57581
|
var extendStatics = function (d, b) {
|
|
57585
57582
|
extendStatics = Object.setPrototypeOf ||
|
|
57586
57583
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -57599,7 +57596,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57599
57596
|
* The options for a StyleControl object.
|
|
57600
57597
|
*/
|
|
57601
57598
|
var StyleControlOptions = /** @class */ (function (_super) {
|
|
57602
|
-
__extends$
|
|
57599
|
+
__extends$1e(StyleControlOptions, _super);
|
|
57603
57600
|
function StyleControlOptions() {
|
|
57604
57601
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57605
57602
|
/**
|
|
@@ -57644,7 +57641,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57644
57641
|
return StyleControlOptions;
|
|
57645
57642
|
}(Options));
|
|
57646
57643
|
|
|
57647
|
-
var __extends$
|
|
57644
|
+
var __extends$1d = (window && window.__extends) || (function () {
|
|
57648
57645
|
var extendStatics = function (d, b) {
|
|
57649
57646
|
extendStatics = Object.setPrototypeOf ||
|
|
57650
57647
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -57715,7 +57712,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
57715
57712
|
* A control for changing the style of the map.
|
|
57716
57713
|
*/
|
|
57717
57714
|
var StyleControl = /** @class */ (function (_super) {
|
|
57718
|
-
__extends$
|
|
57715
|
+
__extends$1d(StyleControl, _super);
|
|
57719
57716
|
/**
|
|
57720
57717
|
* Constructs a StyleControl.
|
|
57721
57718
|
* @param options The options for the control.
|
|
@@ -57779,12 +57776,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
57779
57776
|
var expandGrid = function (expanded) {
|
|
57780
57777
|
if (expanded) {
|
|
57781
57778
|
container.classList.add(StyleControl.Css.inUse);
|
|
57782
|
-
styleOpsGrid.setAttribute("aria-hidden", "false");
|
|
57783
57779
|
styleOpsGrid.classList.remove("hidden-accessible-element");
|
|
57784
57780
|
}
|
|
57785
57781
|
else {
|
|
57786
57782
|
container.classList.remove(StyleControl.Css.inUse);
|
|
57787
|
-
styleOpsGrid.setAttribute("aria-hidden", "true");
|
|
57788
57783
|
styleOpsGrid.classList.add("hidden-accessible-element");
|
|
57789
57784
|
}
|
|
57790
57785
|
};
|
|
@@ -58010,7 +58005,6 @@ uniform ${precision} ${type} u_${name};
|
|
|
58010
58005
|
}
|
|
58011
58006
|
styleOpsGrid.setAttribute("aria-label", "Style Options");
|
|
58012
58007
|
styleOpsGrid.classList.add("hidden-accessible-element");
|
|
58013
|
-
styleOpsGrid.setAttribute("aria-hidden", "true");
|
|
58014
58008
|
// Once the map's style definition is initialized create a map between style names and icons.
|
|
58015
58009
|
// If a style is one of those to be shown by the style picker also create it's element.
|
|
58016
58010
|
this.map.styles.definitions().then(function (definitions) { return __awaiter$7(_this, void 0, void 0, function () {
|
|
@@ -58080,7 +58074,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58080
58074
|
return StyleControl;
|
|
58081
58075
|
}(ControlBase));
|
|
58082
58076
|
|
|
58083
|
-
var __extends$
|
|
58077
|
+
var __extends$1c = (window && window.__extends) || (function () {
|
|
58084
58078
|
var extendStatics = function (d, b) {
|
|
58085
58079
|
extendStatics = Object.setPrototypeOf ||
|
|
58086
58080
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58099,7 +58093,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58099
58093
|
* The options for setting traffic on the map.
|
|
58100
58094
|
*/
|
|
58101
58095
|
var TrafficOptions = /** @class */ (function (_super) {
|
|
58102
|
-
__extends$
|
|
58096
|
+
__extends$1c(TrafficOptions, _super);
|
|
58103
58097
|
function TrafficOptions() {
|
|
58104
58098
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
58105
58099
|
/**
|
|
@@ -58124,7 +58118,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58124
58118
|
return TrafficOptions;
|
|
58125
58119
|
}(Options));
|
|
58126
58120
|
|
|
58127
|
-
var __extends$
|
|
58121
|
+
var __extends$1b = (window && window.__extends) || (function () {
|
|
58128
58122
|
var extendStatics = function (d, b) {
|
|
58129
58123
|
extendStatics = Object.setPrototypeOf ||
|
|
58130
58124
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58143,7 +58137,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58143
58137
|
* The options for a TrafficControl object.
|
|
58144
58138
|
*/
|
|
58145
58139
|
var TrafficControlOptions = /** @class */ (function (_super) {
|
|
58146
|
-
__extends$
|
|
58140
|
+
__extends$1b(TrafficControlOptions, _super);
|
|
58147
58141
|
function TrafficControlOptions() {
|
|
58148
58142
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
58149
58143
|
/**
|
|
@@ -58163,7 +58157,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58163
58157
|
return TrafficControlOptions;
|
|
58164
58158
|
}(TrafficOptions));
|
|
58165
58159
|
|
|
58166
|
-
var __extends$
|
|
58160
|
+
var __extends$1a = (window && window.__extends) || (function () {
|
|
58167
58161
|
var extendStatics = function (d, b) {
|
|
58168
58162
|
extendStatics = Object.setPrototypeOf ||
|
|
58169
58163
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58182,7 +58176,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58182
58176
|
* A control that toggles traffic data on the map.
|
|
58183
58177
|
*/
|
|
58184
58178
|
var TrafficControl = /** @class */ (function (_super) {
|
|
58185
|
-
__extends$
|
|
58179
|
+
__extends$1a(TrafficControl, _super);
|
|
58186
58180
|
/**
|
|
58187
58181
|
* Constructs a TrafficControl
|
|
58188
58182
|
* @param options The options for the control.
|
|
@@ -58309,7 +58303,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58309
58303
|
return TrafficControl;
|
|
58310
58304
|
}(ControlBase));
|
|
58311
58305
|
|
|
58312
|
-
var __extends$
|
|
58306
|
+
var __extends$19 = (window && window.__extends) || (function () {
|
|
58313
58307
|
var extendStatics = function (d, b) {
|
|
58314
58308
|
extendStatics = Object.setPrototypeOf ||
|
|
58315
58309
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -58339,7 +58333,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58339
58333
|
* A control that display traffic legend on the map.
|
|
58340
58334
|
*/
|
|
58341
58335
|
var TrafficLegendControl = /** @class */ (function (_super) {
|
|
58342
|
-
__extends$
|
|
58336
|
+
__extends$19(TrafficLegendControl, _super);
|
|
58343
58337
|
/**
|
|
58344
58338
|
* Construct a traffic legend control
|
|
58345
58339
|
*/
|
|
@@ -59073,7 +59067,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
59073
59067
|
return Feature;
|
|
59074
59068
|
}());
|
|
59075
59069
|
|
|
59076
|
-
var __extends$
|
|
59070
|
+
var __extends$18 = (window && window.__extends) || (function () {
|
|
59077
59071
|
var extendStatics = function (d, b) {
|
|
59078
59072
|
extendStatics = Object.setPrototypeOf ||
|
|
59079
59073
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -59092,7 +59086,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
59092
59086
|
* Represent a pixel coordinate or offset. Extends an array of [x, y].
|
|
59093
59087
|
*/
|
|
59094
59088
|
var Pixel = /** @class */ (function (_super) {
|
|
59095
|
-
__extends$
|
|
59089
|
+
__extends$18(Pixel, _super);
|
|
59096
59090
|
/**
|
|
59097
59091
|
* Constructs a Pixel object and initializes it with the specified x and y coordinates.
|
|
59098
59092
|
* @param x The horizontal pixel offset.
|
|
@@ -61312,7 +61306,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61312
61306
|
return result;
|
|
61313
61307
|
}
|
|
61314
61308
|
|
|
61315
|
-
var __extends$
|
|
61309
|
+
var __extends$17 = (window && window.__extends) || (function () {
|
|
61316
61310
|
var extendStatics = function (d, b) {
|
|
61317
61311
|
extendStatics = Object.setPrototypeOf ||
|
|
61318
61312
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61332,7 +61326,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61332
61326
|
* full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
|
|
61333
61327
|
*/
|
|
61334
61328
|
var Position = /** @class */ (function (_super) {
|
|
61335
|
-
__extends$
|
|
61329
|
+
__extends$17(Position, _super);
|
|
61336
61330
|
/**
|
|
61337
61331
|
* Constructs a Position.
|
|
61338
61332
|
* @param longitude The position's longitude.
|
|
@@ -61524,7 +61518,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61524
61518
|
return Polygon;
|
|
61525
61519
|
}());
|
|
61526
61520
|
|
|
61527
|
-
var __extends$
|
|
61521
|
+
var __extends$16 = (window && window.__extends) || (function () {
|
|
61528
61522
|
var extendStatics = function (d, b) {
|
|
61529
61523
|
extendStatics = Object.setPrototypeOf ||
|
|
61530
61524
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61554,7 +61548,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61554
61548
|
* A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
|
|
61555
61549
|
*/
|
|
61556
61550
|
var Shape = /** @class */ (function (_super) {
|
|
61557
|
-
__extends$
|
|
61551
|
+
__extends$16(Shape, _super);
|
|
61558
61552
|
function Shape(data, id, properties) {
|
|
61559
61553
|
var _this = _super.call(this) || this;
|
|
61560
61554
|
var geometry;
|
|
@@ -61850,7 +61844,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61850
61844
|
return Shape;
|
|
61851
61845
|
}(EventEmitter));
|
|
61852
61846
|
|
|
61853
|
-
var __extends$
|
|
61847
|
+
var __extends$15 = (window && window.__extends) || (function () {
|
|
61854
61848
|
var extendStatics = function (d, b) {
|
|
61855
61849
|
extendStatics = Object.setPrototypeOf ||
|
|
61856
61850
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -61883,7 +61877,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
61883
61877
|
* [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
|
|
61884
61878
|
*/
|
|
61885
61879
|
var BoundingBox = /** @class */ (function (_super) {
|
|
61886
|
-
__extends$
|
|
61880
|
+
__extends$15(BoundingBox, _super);
|
|
61887
61881
|
function BoundingBox(southwestPositionOrPositions, northeastPosition) {
|
|
61888
61882
|
var _this = this;
|
|
61889
61883
|
if (southwestPositionOrPositions && northeastPosition) {
|
|
@@ -62600,7 +62594,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
62600
62594
|
return MultiPolygon;
|
|
62601
62595
|
}());
|
|
62602
62596
|
|
|
62603
|
-
var __extends$
|
|
62597
|
+
var __extends$14 = (window && window.__extends) || (function () {
|
|
62604
62598
|
var extendStatics = function (d, b) {
|
|
62605
62599
|
extendStatics = Object.setPrototypeOf ||
|
|
62606
62600
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -62631,7 +62625,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
62631
62625
|
* The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
|
|
62632
62626
|
*/
|
|
62633
62627
|
var MercatorPoint = /** @class */ (function (_super) {
|
|
62634
|
-
__extends$
|
|
62628
|
+
__extends$14(MercatorPoint, _super);
|
|
62635
62629
|
/**
|
|
62636
62630
|
* Constructs a MercatorPoint.
|
|
62637
62631
|
* @param x A points x position in mercator units.
|
|
@@ -63120,7 +63114,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63120
63114
|
simplify: simplify
|
|
63121
63115
|
});
|
|
63122
63116
|
|
|
63123
|
-
var __extends$
|
|
63117
|
+
var __extends$13 = (window && window.__extends) || (function () {
|
|
63124
63118
|
var extendStatics = function (d, b) {
|
|
63125
63119
|
extendStatics = Object.setPrototypeOf ||
|
|
63126
63120
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -63139,7 +63133,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63139
63133
|
* The options for a ZoomControl object.
|
|
63140
63134
|
*/
|
|
63141
63135
|
var ZoomControlOptions = /** @class */ (function (_super) {
|
|
63142
|
-
__extends$
|
|
63136
|
+
__extends$13(ZoomControlOptions, _super);
|
|
63143
63137
|
function ZoomControlOptions() {
|
|
63144
63138
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63145
63139
|
/**
|
|
@@ -63159,7 +63153,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63159
63153
|
return ZoomControlOptions;
|
|
63160
63154
|
}(Options));
|
|
63161
63155
|
|
|
63162
|
-
var __extends$
|
|
63156
|
+
var __extends$12 = (window && window.__extends) || (function () {
|
|
63163
63157
|
var extendStatics = function (d, b) {
|
|
63164
63158
|
extendStatics = Object.setPrototypeOf ||
|
|
63165
63159
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -63178,7 +63172,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63178
63172
|
* A control for changing the zoom of the map.
|
|
63179
63173
|
*/
|
|
63180
63174
|
var ZoomControl = /** @class */ (function (_super) {
|
|
63181
|
-
__extends$
|
|
63175
|
+
__extends$12(ZoomControl, _super);
|
|
63182
63176
|
/**
|
|
63183
63177
|
* Constructs a ZoomControl.
|
|
63184
63178
|
* @param options The options for the control.
|
|
@@ -63292,10 +63286,169 @@ uniform ${precision} ${type} u_${name};
|
|
|
63292
63286
|
return ZoomControl;
|
|
63293
63287
|
}(ControlBase));
|
|
63294
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 = exports.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
|
+
|
|
63295
63447
|
var index$2 = /*#__PURE__*/Object.freeze({
|
|
63296
63448
|
__proto__: null,
|
|
63297
63449
|
CompassControl: CompassControl,
|
|
63298
63450
|
ControlBase: ControlBase,
|
|
63451
|
+
FullscreenControl: FullscreenControl,
|
|
63299
63452
|
PitchControl: PitchControl,
|
|
63300
63453
|
ScaleControl: ScaleControl,
|
|
63301
63454
|
StyleControl: StyleControl,
|
|
@@ -65658,7 +65811,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
65658
65811
|
*/
|
|
65659
65812
|
ImageLayer.prototype.setOptions = function (options) {
|
|
65660
65813
|
var newOptions = new ImageLayerOptions().merge(this.options, cloneDeepWith$1(options, ImageLayerOptions._cloneCustomizer));
|
|
65661
|
-
var
|
|
65814
|
+
var reloadImage = (typeof options.url === "string" && options.url !== this.getOptions().url);
|
|
65662
65815
|
var coordChanged = (typeof options.coordinates !== "undefined" && options.coordinates !== this.getOptions().coordinates);
|
|
65663
65816
|
if (this.map) {
|
|
65664
65817
|
this._updateBaseProperties(newOptions, this.options);
|
|
@@ -65668,16 +65821,17 @@ uniform ${precision} ${type} u_${name};
|
|
|
65668
65821
|
this._updatePaintProperty("raster-brightness-max", newOptions.maxBrightness, this.options.maxBrightness);
|
|
65669
65822
|
this._updatePaintProperty("raster-opacity", newOptions.opacity, this.options.opacity);
|
|
65670
65823
|
this._updatePaintProperty("raster-saturation", newOptions.saturation, this.options.saturation);
|
|
65671
|
-
//
|
|
65672
|
-
// update "as any" to "as maplibregl.ImageSource" after the typing file is updated
|
|
65824
|
+
// Get the image source
|
|
65673
65825
|
var source = this.map._getMap().getSource(this._getSourceId());
|
|
65674
|
-
if
|
|
65826
|
+
// Check if the source exists and if we need to reload the image or if coordinates have changed
|
|
65827
|
+
if (source && (reloadImage || coordChanged)) {
|
|
65828
|
+
// Update the image with the new options
|
|
65675
65829
|
source.updateImage(newOptions);
|
|
65676
65830
|
}
|
|
65677
65831
|
}
|
|
65678
65832
|
this.options = newOptions;
|
|
65679
65833
|
// Modified to update transform if image url or coordinates change
|
|
65680
|
-
if (
|
|
65834
|
+
if (reloadImage) {
|
|
65681
65835
|
this.reloadImage();
|
|
65682
65836
|
}
|
|
65683
65837
|
else if (coordChanged) {
|
|
@@ -68209,6 +68363,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
68209
68363
|
ele.addEventListener("click", this.close);
|
|
68210
68364
|
ele.classList.add(Popup.Css.close);
|
|
68211
68365
|
ele.setAttribute("aria-label", "close");
|
|
68366
|
+
ele.setAttribute("type", "button");
|
|
68212
68367
|
ele.setAttribute("tabindex", "0");
|
|
68213
68368
|
ele.innerHTML = "×";
|
|
68214
68369
|
return ele;
|
|
@@ -113862,6 +114017,12 @@ uniform ${precision} ${type} u_${name};
|
|
|
113862
114017
|
* @deprecated use `view` instead.
|
|
113863
114018
|
*/
|
|
113864
114019
|
_this.userRegion = _this.view;
|
|
114020
|
+
/**
|
|
114021
|
+
* Override the default styles for the map elements.
|
|
114022
|
+
* Default `undefined`
|
|
114023
|
+
* @default undefined
|
|
114024
|
+
*/
|
|
114025
|
+
_this.styleOverrides = undefined;
|
|
113865
114026
|
/**
|
|
113866
114027
|
* allows substituting a default MapControl's style transformer with custom one
|
|
113867
114028
|
* Default style transformer is meant to update the incoming fetched style to desired state, as well as to synchronize the SDK state with style state
|
|
@@ -113999,10 +114160,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
113999
114160
|
/**
|
|
114000
114161
|
* Disable telemetry collection
|
|
114001
114162
|
* This option may only be set when initializing the map.
|
|
114002
|
-
* default:
|
|
114003
|
-
* @default
|
|
114163
|
+
* default: true
|
|
114164
|
+
* @default true
|
|
114004
114165
|
*/
|
|
114005
|
-
_this.disableTelemetry =
|
|
114166
|
+
_this.disableTelemetry = true;
|
|
114006
114167
|
/**
|
|
114007
114168
|
* Disable telemetry collection
|
|
114008
114169
|
* This option may only be set when initializing the map.
|
|
@@ -114495,6 +114656,16 @@ uniform ${precision} ${type} u_${name};
|
|
|
114495
114656
|
};
|
|
114496
114657
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
114497
114658
|
};
|
|
114659
|
+
/**
|
|
114660
|
+
* Mapping of styleOverrides options to style parameter values.
|
|
114661
|
+
*/
|
|
114662
|
+
var styleOverridesMapping = {
|
|
114663
|
+
countryRegion: "cr|bv:0",
|
|
114664
|
+
adminDistrict: "ad|bv:0",
|
|
114665
|
+
adminDistrict2: "ds|bv:0",
|
|
114666
|
+
buildingFootprint: "bld|v:0_adr|lv:0",
|
|
114667
|
+
roadDetails: "g|rasterDetailsVisible:0"
|
|
114668
|
+
};
|
|
114498
114669
|
/**
|
|
114499
114670
|
* @private
|
|
114500
114671
|
*/
|
|
@@ -115005,7 +115176,31 @@ uniform ${precision} ${type} u_${name};
|
|
|
115005
115176
|
return targetStyleWithUserLayers;
|
|
115006
115177
|
};
|
|
115007
115178
|
}
|
|
115008
|
-
|
|
115179
|
+
var styleUrl = targetDefinition.url;
|
|
115180
|
+
if (styleUrl && (styleOptions === null || styleOptions === void 0 ? void 0 : styleOptions.styleOverrides)) {
|
|
115181
|
+
// Append the st parameter in the url with the mapped value.
|
|
115182
|
+
// We loop through the styleOverrides and join the corresponding st parameter with "_".
|
|
115183
|
+
var url = new URL(styleUrl);
|
|
115184
|
+
var params = new URLSearchParams(url.search);
|
|
115185
|
+
var stParams = Object.entries(styleOptions === null || styleOptions === void 0 ? void 0 : styleOptions.styleOverrides)
|
|
115186
|
+
.filter(function (_a) {
|
|
115187
|
+
var _b = __read$2(_a, 2), key = _b[0], value = _b[1];
|
|
115188
|
+
return key in styleOverridesMapping &&
|
|
115189
|
+
( // bv stands for borderVisible
|
|
115190
|
+
(styleOverridesMapping[key].includes('bv') && (value === null || value === void 0 ? void 0 : value.borderVisible) === false) ||
|
|
115191
|
+
(!styleOverridesMapping[key].includes('bv') && (value === null || value === void 0 ? void 0 : value.visible) === false));
|
|
115192
|
+
})
|
|
115193
|
+
.map(function (_a) {
|
|
115194
|
+
var _b = __read$2(_a, 2), key = _b[0]; _b[1];
|
|
115195
|
+
return styleOverridesMapping[key];
|
|
115196
|
+
});
|
|
115197
|
+
if (stParams.length > 0) {
|
|
115198
|
+
params.set("st", stParams.join("_"));
|
|
115199
|
+
url.search = params.toString();
|
|
115200
|
+
styleUrl = url.toString();
|
|
115201
|
+
}
|
|
115202
|
+
}
|
|
115203
|
+
this.map._getMap().setStyle(styleUrl || targetDefinition.style, {
|
|
115009
115204
|
diff: diff,
|
|
115010
115205
|
validate: this.serviceOptions.validateStyle,
|
|
115011
115206
|
transformStyle: transformStyleFunc
|