azure-maps-control 3.5.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 +57 -21
- package/dist/atlas-core-bare.js +57 -21
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +57 -21
- package/dist/atlas-core.js +57 -21
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas-esm.js +57 -21
- package/dist/atlas-esm.min.js +1 -1
- package/dist/atlas.css +1 -3
- package/dist/atlas.js +57 -21
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +1 -1
- package/package.json +5 -5
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +61 -8
|
@@ -763,6 +763,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
763
763
|
* @param locale The requested culture code.
|
|
764
764
|
*/
|
|
765
765
|
Localizer.getCode = function (locale) {
|
|
766
|
+
// If locale is set to 'auto', use the browser's configured language.
|
|
767
|
+
if (locale.localeCompare("auto", undefined, { sensitivity: "base" }) === 0) {
|
|
768
|
+
locale = navigator.language;
|
|
769
|
+
}
|
|
766
770
|
var code = CultureCode.parse(locale);
|
|
767
771
|
// If the requested culture code includes a sensitive region simply return the original code.
|
|
768
772
|
// This is to hopefully reduce the risk or providing bad content to users in a sensitive region.
|
|
@@ -886,7 +890,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
886
890
|
return UserAgent;
|
|
887
891
|
}());
|
|
888
892
|
|
|
889
|
-
var version = "3.
|
|
893
|
+
var version = "3.6.0";
|
|
890
894
|
|
|
891
895
|
/**
|
|
892
896
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -1491,10 +1495,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1491
1495
|
* language is explicitly specified when using those parts of the API.
|
|
1492
1496
|
* If a Map is initialized with the language explicitly defined and
|
|
1493
1497
|
* setLanguage hasn't previously been called it will automatically be called by the Map constructor.
|
|
1494
|
-
* @param language The new default language.
|
|
1498
|
+
* @param language The new default language. If set to "auto", the browser's configured language will be used.
|
|
1495
1499
|
*/
|
|
1496
1500
|
function setLanguage(language) {
|
|
1497
|
-
// Find the best fit supported language.
|
|
1498
1501
|
defaultLanguage = Localizer.getCode(language);
|
|
1499
1502
|
hasSetLanguage = true;
|
|
1500
1503
|
}
|
|
@@ -2254,12 +2257,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2254
2257
|
var expandGrid = function (expanded) {
|
|
2255
2258
|
if (expanded) {
|
|
2256
2259
|
container.classList.add("in-use");
|
|
2257
|
-
grid.setAttribute("aria-hidden", "false");
|
|
2258
2260
|
grid.classList.remove("hidden-accessible-element");
|
|
2259
2261
|
}
|
|
2260
2262
|
else {
|
|
2261
2263
|
container.classList.remove("in-use");
|
|
2262
|
-
grid.setAttribute("aria-hidden", "true");
|
|
2263
2264
|
grid.classList.add("hidden-accessible-element");
|
|
2264
2265
|
}
|
|
2265
2266
|
};
|
|
@@ -2326,7 +2327,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2326
2327
|
var grid = document.createElement("div");
|
|
2327
2328
|
grid.classList.add("sub-container");
|
|
2328
2329
|
grid.classList.add("hidden-accessible-element");
|
|
2329
|
-
grid.setAttribute("aria-hidden", "true");
|
|
2330
2330
|
var rotationRightButton = this.constructRightRotationButton(map);
|
|
2331
2331
|
var rotationLeftButton = this.constructLeftRotationButton(map);
|
|
2332
2332
|
var tooltipLeft = buildAccessibleTooltip("Rotate Left");
|
|
@@ -2532,12 +2532,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2532
2532
|
var expandGrid = function (expanded) {
|
|
2533
2533
|
if (expanded) {
|
|
2534
2534
|
container.classList.add("in-use");
|
|
2535
|
-
grid.setAttribute("aria-hidden", "false");
|
|
2536
2535
|
grid.classList.remove("hidden-accessible-element");
|
|
2537
2536
|
}
|
|
2538
2537
|
else {
|
|
2539
2538
|
container.classList.remove("in-use");
|
|
2540
|
-
grid.setAttribute("aria-hidden", "true");
|
|
2541
2539
|
grid.classList.add("hidden-accessible-element");
|
|
2542
2540
|
}
|
|
2543
2541
|
};
|
|
@@ -2622,7 +2620,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2622
2620
|
var grid = document.createElement("div");
|
|
2623
2621
|
grid.classList.add("sub-container");
|
|
2624
2622
|
grid.classList.add("hidden-accessible-element");
|
|
2625
|
-
grid.setAttribute("aria-hidden", "true");
|
|
2626
2623
|
this.pitchIncrementButton = this.constructPitchIncrementButton(map);
|
|
2627
2624
|
this.pitchDecrementButton = this.constructPitchDecrementButton(map);
|
|
2628
2625
|
var tooltipIncrement = buildAccessibleTooltip("Increase Pitch");
|
|
@@ -6439,12 +6436,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6439
6436
|
var expandGrid = function (expanded) {
|
|
6440
6437
|
if (expanded) {
|
|
6441
6438
|
container.classList.add(StyleControl.Css.inUse);
|
|
6442
|
-
styleOpsGrid.setAttribute("aria-hidden", "false");
|
|
6443
6439
|
styleOpsGrid.classList.remove("hidden-accessible-element");
|
|
6444
6440
|
}
|
|
6445
6441
|
else {
|
|
6446
6442
|
container.classList.remove(StyleControl.Css.inUse);
|
|
6447
|
-
styleOpsGrid.setAttribute("aria-hidden", "true");
|
|
6448
6443
|
styleOpsGrid.classList.add("hidden-accessible-element");
|
|
6449
6444
|
}
|
|
6450
6445
|
};
|
|
@@ -6670,7 +6665,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6670
6665
|
}
|
|
6671
6666
|
styleOpsGrid.setAttribute("aria-label", "Style Options");
|
|
6672
6667
|
styleOpsGrid.classList.add("hidden-accessible-element");
|
|
6673
|
-
styleOpsGrid.setAttribute("aria-hidden", "true");
|
|
6674
6668
|
// Once the map's style definition is initialized create a map between style names and icons.
|
|
6675
6669
|
// If a style is one of those to be shown by the style picker also create it's element.
|
|
6676
6670
|
this.map.styles.definitions().then(function (definitions) { return __awaiter$3(_this, void 0, void 0, function () {
|
|
@@ -14477,7 +14471,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14477
14471
|
*/
|
|
14478
14472
|
ImageLayer.prototype.setOptions = function (options) {
|
|
14479
14473
|
var newOptions = new ImageLayerOptions().merge(this.options, cloneDeepWith$1(options, ImageLayerOptions._cloneCustomizer));
|
|
14480
|
-
var
|
|
14474
|
+
var reloadImage = (typeof options.url === "string" && options.url !== this.getOptions().url);
|
|
14481
14475
|
var coordChanged = (typeof options.coordinates !== "undefined" && options.coordinates !== this.getOptions().coordinates);
|
|
14482
14476
|
if (this.map) {
|
|
14483
14477
|
this._updateBaseProperties(newOptions, this.options);
|
|
@@ -14487,16 +14481,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14487
14481
|
this._updatePaintProperty("raster-brightness-max", newOptions.maxBrightness, this.options.maxBrightness);
|
|
14488
14482
|
this._updatePaintProperty("raster-opacity", newOptions.opacity, this.options.opacity);
|
|
14489
14483
|
this._updatePaintProperty("raster-saturation", newOptions.saturation, this.options.saturation);
|
|
14490
|
-
//
|
|
14491
|
-
// update "as any" to "as maplibregl.ImageSource" after the typing file is updated
|
|
14484
|
+
// Get the image source
|
|
14492
14485
|
var source = this.map._getMap().getSource(this._getSourceId());
|
|
14493
|
-
if
|
|
14486
|
+
// Check if the source exists and if we need to reload the image or if coordinates have changed
|
|
14487
|
+
if (source && (reloadImage || coordChanged)) {
|
|
14488
|
+
// Update the image with the new options
|
|
14494
14489
|
source.updateImage(newOptions);
|
|
14495
14490
|
}
|
|
14496
14491
|
}
|
|
14497
14492
|
this.options = newOptions;
|
|
14498
14493
|
// Modified to update transform if image url or coordinates change
|
|
14499
|
-
if (
|
|
14494
|
+
if (reloadImage) {
|
|
14500
14495
|
this.reloadImage();
|
|
14501
14496
|
}
|
|
14502
14497
|
else if (coordChanged) {
|
|
@@ -17028,6 +17023,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
17028
17023
|
ele.addEventListener("click", this.close);
|
|
17029
17024
|
ele.classList.add(Popup.Css.close);
|
|
17030
17025
|
ele.setAttribute("aria-label", "close");
|
|
17026
|
+
ele.setAttribute("type", "button");
|
|
17031
17027
|
ele.setAttribute("tabindex", "0");
|
|
17032
17028
|
ele.innerHTML = "×";
|
|
17033
17029
|
return ele;
|
|
@@ -21481,6 +21477,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
21481
21477
|
* @deprecated use `view` instead.
|
|
21482
21478
|
*/
|
|
21483
21479
|
_this.userRegion = _this.view;
|
|
21480
|
+
/**
|
|
21481
|
+
* Override the default styles for the map elements.
|
|
21482
|
+
* Default `undefined`
|
|
21483
|
+
* @default undefined
|
|
21484
|
+
*/
|
|
21485
|
+
_this.styleOverrides = undefined;
|
|
21484
21486
|
/**
|
|
21485
21487
|
* allows substituting a default MapControl's style transformer with custom one
|
|
21486
21488
|
* 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
|
|
@@ -21618,10 +21620,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
21618
21620
|
/**
|
|
21619
21621
|
* Disable telemetry collection
|
|
21620
21622
|
* This option may only be set when initializing the map.
|
|
21621
|
-
* default:
|
|
21622
|
-
* @default
|
|
21623
|
+
* default: true
|
|
21624
|
+
* @default true
|
|
21623
21625
|
*/
|
|
21624
|
-
_this.disableTelemetry =
|
|
21626
|
+
_this.disableTelemetry = true;
|
|
21625
21627
|
/**
|
|
21626
21628
|
* Disable telemetry collection
|
|
21627
21629
|
* This option may only be set when initializing the map.
|
|
@@ -22114,6 +22116,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22114
22116
|
};
|
|
22115
22117
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
22116
22118
|
};
|
|
22119
|
+
/**
|
|
22120
|
+
* Mapping of styleOverrides options to style parameter values.
|
|
22121
|
+
*/
|
|
22122
|
+
var styleOverridesMapping = {
|
|
22123
|
+
countryRegion: "cr|bv:0",
|
|
22124
|
+
adminDistrict: "ad|bv:0",
|
|
22125
|
+
adminDistrict2: "ds|bv:0",
|
|
22126
|
+
buildingFootprint: "bld|v:0_adr|lv:0",
|
|
22127
|
+
roadDetails: "g|rasterDetailsVisible:0"
|
|
22128
|
+
};
|
|
22117
22129
|
/**
|
|
22118
22130
|
* @private
|
|
22119
22131
|
*/
|
|
@@ -22624,7 +22636,31 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22624
22636
|
return targetStyleWithUserLayers;
|
|
22625
22637
|
};
|
|
22626
22638
|
}
|
|
22627
|
-
|
|
22639
|
+
var styleUrl = targetDefinition.url;
|
|
22640
|
+
if (styleUrl && (styleOptions === null || styleOptions === void 0 ? void 0 : styleOptions.styleOverrides)) {
|
|
22641
|
+
// Append the st parameter in the url with the mapped value.
|
|
22642
|
+
// We loop through the styleOverrides and join the corresponding st parameter with "_".
|
|
22643
|
+
var url = new URL(styleUrl);
|
|
22644
|
+
var params = new URLSearchParams(url.search);
|
|
22645
|
+
var stParams = Object.entries(styleOptions === null || styleOptions === void 0 ? void 0 : styleOptions.styleOverrides)
|
|
22646
|
+
.filter(function (_a) {
|
|
22647
|
+
var _b = __read$2(_a, 2), key = _b[0], value = _b[1];
|
|
22648
|
+
return key in styleOverridesMapping &&
|
|
22649
|
+
( // bv stands for borderVisible
|
|
22650
|
+
(styleOverridesMapping[key].includes('bv') && (value === null || value === void 0 ? void 0 : value.borderVisible) === false) ||
|
|
22651
|
+
(!styleOverridesMapping[key].includes('bv') && (value === null || value === void 0 ? void 0 : value.visible) === false));
|
|
22652
|
+
})
|
|
22653
|
+
.map(function (_a) {
|
|
22654
|
+
var _b = __read$2(_a, 2), key = _b[0]; _b[1];
|
|
22655
|
+
return styleOverridesMapping[key];
|
|
22656
|
+
});
|
|
22657
|
+
if (stParams.length > 0) {
|
|
22658
|
+
params.set("st", stParams.join("_"));
|
|
22659
|
+
url.search = params.toString();
|
|
22660
|
+
styleUrl = url.toString();
|
|
22661
|
+
}
|
|
22662
|
+
}
|
|
22663
|
+
this.map._getMap().setStyle(styleUrl || targetDefinition.style, {
|
|
22628
22664
|
diff: diff,
|
|
22629
22665
|
validate: this.serviceOptions.validateStyle,
|
|
22630
22666
|
transformStyle: transformStyleFunc
|
package/dist/atlas-core-bare.js
CHANGED
|
@@ -763,6 +763,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
763
763
|
* @param locale The requested culture code.
|
|
764
764
|
*/
|
|
765
765
|
Localizer.getCode = function (locale) {
|
|
766
|
+
// If locale is set to 'auto', use the browser's configured language.
|
|
767
|
+
if (locale.localeCompare("auto", undefined, { sensitivity: "base" }) === 0) {
|
|
768
|
+
locale = navigator.language;
|
|
769
|
+
}
|
|
766
770
|
var code = CultureCode.parse(locale);
|
|
767
771
|
// If the requested culture code includes a sensitive region simply return the original code.
|
|
768
772
|
// This is to hopefully reduce the risk or providing bad content to users in a sensitive region.
|
|
@@ -886,7 +890,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
886
890
|
return UserAgent;
|
|
887
891
|
}());
|
|
888
892
|
|
|
889
|
-
var version$2 = "3.
|
|
893
|
+
var version$2 = "3.6.0";
|
|
890
894
|
|
|
891
895
|
/**
|
|
892
896
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -1491,10 +1495,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1491
1495
|
* language is explicitly specified when using those parts of the API.
|
|
1492
1496
|
* If a Map is initialized with the language explicitly defined and
|
|
1493
1497
|
* setLanguage hasn't previously been called it will automatically be called by the Map constructor.
|
|
1494
|
-
* @param language The new default language.
|
|
1498
|
+
* @param language The new default language. If set to "auto", the browser's configured language will be used.
|
|
1495
1499
|
*/
|
|
1496
1500
|
function setLanguage(language) {
|
|
1497
|
-
// Find the best fit supported language.
|
|
1498
1501
|
defaultLanguage = Localizer.getCode(language);
|
|
1499
1502
|
hasSetLanguage = true;
|
|
1500
1503
|
}
|
|
@@ -2254,12 +2257,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2254
2257
|
var expandGrid = function (expanded) {
|
|
2255
2258
|
if (expanded) {
|
|
2256
2259
|
container.classList.add("in-use");
|
|
2257
|
-
grid.setAttribute("aria-hidden", "false");
|
|
2258
2260
|
grid.classList.remove("hidden-accessible-element");
|
|
2259
2261
|
}
|
|
2260
2262
|
else {
|
|
2261
2263
|
container.classList.remove("in-use");
|
|
2262
|
-
grid.setAttribute("aria-hidden", "true");
|
|
2263
2264
|
grid.classList.add("hidden-accessible-element");
|
|
2264
2265
|
}
|
|
2265
2266
|
};
|
|
@@ -2326,7 +2327,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2326
2327
|
var grid = document.createElement("div");
|
|
2327
2328
|
grid.classList.add("sub-container");
|
|
2328
2329
|
grid.classList.add("hidden-accessible-element");
|
|
2329
|
-
grid.setAttribute("aria-hidden", "true");
|
|
2330
2330
|
var rotationRightButton = this.constructRightRotationButton(map);
|
|
2331
2331
|
var rotationLeftButton = this.constructLeftRotationButton(map);
|
|
2332
2332
|
var tooltipLeft = buildAccessibleTooltip("Rotate Left");
|
|
@@ -2532,12 +2532,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2532
2532
|
var expandGrid = function (expanded) {
|
|
2533
2533
|
if (expanded) {
|
|
2534
2534
|
container.classList.add("in-use");
|
|
2535
|
-
grid.setAttribute("aria-hidden", "false");
|
|
2536
2535
|
grid.classList.remove("hidden-accessible-element");
|
|
2537
2536
|
}
|
|
2538
2537
|
else {
|
|
2539
2538
|
container.classList.remove("in-use");
|
|
2540
|
-
grid.setAttribute("aria-hidden", "true");
|
|
2541
2539
|
grid.classList.add("hidden-accessible-element");
|
|
2542
2540
|
}
|
|
2543
2541
|
};
|
|
@@ -2622,7 +2620,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
2622
2620
|
var grid = document.createElement("div");
|
|
2623
2621
|
grid.classList.add("sub-container");
|
|
2624
2622
|
grid.classList.add("hidden-accessible-element");
|
|
2625
|
-
grid.setAttribute("aria-hidden", "true");
|
|
2626
2623
|
this.pitchIncrementButton = this.constructPitchIncrementButton(map);
|
|
2627
2624
|
this.pitchDecrementButton = this.constructPitchDecrementButton(map);
|
|
2628
2625
|
var tooltipIncrement = buildAccessibleTooltip("Increase Pitch");
|
|
@@ -6439,12 +6436,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6439
6436
|
var expandGrid = function (expanded) {
|
|
6440
6437
|
if (expanded) {
|
|
6441
6438
|
container.classList.add(StyleControl.Css.inUse);
|
|
6442
|
-
styleOpsGrid.setAttribute("aria-hidden", "false");
|
|
6443
6439
|
styleOpsGrid.classList.remove("hidden-accessible-element");
|
|
6444
6440
|
}
|
|
6445
6441
|
else {
|
|
6446
6442
|
container.classList.remove(StyleControl.Css.inUse);
|
|
6447
|
-
styleOpsGrid.setAttribute("aria-hidden", "true");
|
|
6448
6443
|
styleOpsGrid.classList.add("hidden-accessible-element");
|
|
6449
6444
|
}
|
|
6450
6445
|
};
|
|
@@ -6670,7 +6665,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
6670
6665
|
}
|
|
6671
6666
|
styleOpsGrid.setAttribute("aria-label", "Style Options");
|
|
6672
6667
|
styleOpsGrid.classList.add("hidden-accessible-element");
|
|
6673
|
-
styleOpsGrid.setAttribute("aria-hidden", "true");
|
|
6674
6668
|
// Once the map's style definition is initialized create a map between style names and icons.
|
|
6675
6669
|
// If a style is one of those to be shown by the style picker also create it's element.
|
|
6676
6670
|
this.map.styles.definitions().then(function (definitions) { return __awaiter$7(_this, void 0, void 0, function () {
|
|
@@ -14477,7 +14471,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14477
14471
|
*/
|
|
14478
14472
|
ImageLayer.prototype.setOptions = function (options) {
|
|
14479
14473
|
var newOptions = new ImageLayerOptions().merge(this.options, cloneDeepWith$1(options, ImageLayerOptions._cloneCustomizer));
|
|
14480
|
-
var
|
|
14474
|
+
var reloadImage = (typeof options.url === "string" && options.url !== this.getOptions().url);
|
|
14481
14475
|
var coordChanged = (typeof options.coordinates !== "undefined" && options.coordinates !== this.getOptions().coordinates);
|
|
14482
14476
|
if (this.map) {
|
|
14483
14477
|
this._updateBaseProperties(newOptions, this.options);
|
|
@@ -14487,16 +14481,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
14487
14481
|
this._updatePaintProperty("raster-brightness-max", newOptions.maxBrightness, this.options.maxBrightness);
|
|
14488
14482
|
this._updatePaintProperty("raster-opacity", newOptions.opacity, this.options.opacity);
|
|
14489
14483
|
this._updatePaintProperty("raster-saturation", newOptions.saturation, this.options.saturation);
|
|
14490
|
-
//
|
|
14491
|
-
// update "as any" to "as maplibregl.ImageSource" after the typing file is updated
|
|
14484
|
+
// Get the image source
|
|
14492
14485
|
var source = this.map._getMap().getSource(this._getSourceId());
|
|
14493
|
-
if
|
|
14486
|
+
// Check if the source exists and if we need to reload the image or if coordinates have changed
|
|
14487
|
+
if (source && (reloadImage || coordChanged)) {
|
|
14488
|
+
// Update the image with the new options
|
|
14494
14489
|
source.updateImage(newOptions);
|
|
14495
14490
|
}
|
|
14496
14491
|
}
|
|
14497
14492
|
this.options = newOptions;
|
|
14498
14493
|
// Modified to update transform if image url or coordinates change
|
|
14499
|
-
if (
|
|
14494
|
+
if (reloadImage) {
|
|
14500
14495
|
this.reloadImage();
|
|
14501
14496
|
}
|
|
14502
14497
|
else if (coordChanged) {
|
|
@@ -17028,6 +17023,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
17028
17023
|
ele.addEventListener("click", this.close);
|
|
17029
17024
|
ele.classList.add(Popup.Css.close);
|
|
17030
17025
|
ele.setAttribute("aria-label", "close");
|
|
17026
|
+
ele.setAttribute("type", "button");
|
|
17031
17027
|
ele.setAttribute("tabindex", "0");
|
|
17032
17028
|
ele.innerHTML = "×";
|
|
17033
17029
|
return ele;
|
|
@@ -45142,6 +45138,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
45142
45138
|
* @deprecated use `view` instead.
|
|
45143
45139
|
*/
|
|
45144
45140
|
_this.userRegion = _this.view;
|
|
45141
|
+
/**
|
|
45142
|
+
* Override the default styles for the map elements.
|
|
45143
|
+
* Default `undefined`
|
|
45144
|
+
* @default undefined
|
|
45145
|
+
*/
|
|
45146
|
+
_this.styleOverrides = undefined;
|
|
45145
45147
|
/**
|
|
45146
45148
|
* allows substituting a default MapControl's style transformer with custom one
|
|
45147
45149
|
* 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
|
|
@@ -45279,10 +45281,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
45279
45281
|
/**
|
|
45280
45282
|
* Disable telemetry collection
|
|
45281
45283
|
* This option may only be set when initializing the map.
|
|
45282
|
-
* default:
|
|
45283
|
-
* @default
|
|
45284
|
+
* default: true
|
|
45285
|
+
* @default true
|
|
45284
45286
|
*/
|
|
45285
|
-
_this.disableTelemetry =
|
|
45287
|
+
_this.disableTelemetry = true;
|
|
45286
45288
|
/**
|
|
45287
45289
|
* Disable telemetry collection
|
|
45288
45290
|
* This option may only be set when initializing the map.
|
|
@@ -45775,6 +45777,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
45775
45777
|
};
|
|
45776
45778
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
45777
45779
|
};
|
|
45780
|
+
/**
|
|
45781
|
+
* Mapping of styleOverrides options to style parameter values.
|
|
45782
|
+
*/
|
|
45783
|
+
var styleOverridesMapping = {
|
|
45784
|
+
countryRegion: "cr|bv:0",
|
|
45785
|
+
adminDistrict: "ad|bv:0",
|
|
45786
|
+
adminDistrict2: "ds|bv:0",
|
|
45787
|
+
buildingFootprint: "bld|v:0_adr|lv:0",
|
|
45788
|
+
roadDetails: "g|rasterDetailsVisible:0"
|
|
45789
|
+
};
|
|
45778
45790
|
/**
|
|
45779
45791
|
* @private
|
|
45780
45792
|
*/
|
|
@@ -46285,7 +46297,31 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
46285
46297
|
return targetStyleWithUserLayers;
|
|
46286
46298
|
};
|
|
46287
46299
|
}
|
|
46288
|
-
|
|
46300
|
+
var styleUrl = targetDefinition.url;
|
|
46301
|
+
if (styleUrl && (styleOptions === null || styleOptions === void 0 ? void 0 : styleOptions.styleOverrides)) {
|
|
46302
|
+
// Append the st parameter in the url with the mapped value.
|
|
46303
|
+
// We loop through the styleOverrides and join the corresponding st parameter with "_".
|
|
46304
|
+
var url = new URL(styleUrl);
|
|
46305
|
+
var params = new URLSearchParams(url.search);
|
|
46306
|
+
var stParams = Object.entries(styleOptions === null || styleOptions === void 0 ? void 0 : styleOptions.styleOverrides)
|
|
46307
|
+
.filter(function (_a) {
|
|
46308
|
+
var _b = __read$2(_a, 2), key = _b[0], value = _b[1];
|
|
46309
|
+
return key in styleOverridesMapping &&
|
|
46310
|
+
( // bv stands for borderVisible
|
|
46311
|
+
(styleOverridesMapping[key].includes('bv') && (value === null || value === void 0 ? void 0 : value.borderVisible) === false) ||
|
|
46312
|
+
(!styleOverridesMapping[key].includes('bv') && (value === null || value === void 0 ? void 0 : value.visible) === false));
|
|
46313
|
+
})
|
|
46314
|
+
.map(function (_a) {
|
|
46315
|
+
var _b = __read$2(_a, 2), key = _b[0]; _b[1];
|
|
46316
|
+
return styleOverridesMapping[key];
|
|
46317
|
+
});
|
|
46318
|
+
if (stParams.length > 0) {
|
|
46319
|
+
params.set("st", stParams.join("_"));
|
|
46320
|
+
url.search = params.toString();
|
|
46321
|
+
styleUrl = url.toString();
|
|
46322
|
+
}
|
|
46323
|
+
}
|
|
46324
|
+
this.map._getMap().setStyle(styleUrl || targetDefinition.style, {
|
|
46289
46325
|
diff: diff,
|
|
46290
46326
|
validate: this.serviceOptions.validateStyle,
|
|
46291
46327
|
transformStyle: transformStyleFunc
|