azure-maps-control 3.7.1 → 3.7.4
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/ReadMe.md +0 -4
- package/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +168 -54
- package/dist/atlas-core-bare.js +168 -54
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +168 -54
- package/dist/atlas-core.js +168 -54
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas-esm.js +168 -54
- package/dist/atlas-esm.min.js +1 -1
- package/dist/atlas.css +6 -6
- package/dist/atlas.js +168 -54
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +1 -1
- package/package.json +3 -3
- package/typings/index.d.ts +1 -1
package/dist/atlas-esm.js
CHANGED
|
@@ -51791,7 +51791,7 @@ var CultureCode = /** @class */ (function () {
|
|
|
51791
51791
|
* Contains real information about the available/supported locales.
|
|
51792
51792
|
*/
|
|
51793
51793
|
var localeIndex = {
|
|
51794
|
-
localizationsPath: "locs/mapcontrol/
|
|
51794
|
+
localizationsPath: "locs/mapcontrol/2025-11-05",
|
|
51795
51795
|
sensitiveUserRegions: ["il", "kr", "pk", "in", "cn", "ar", "bh", "eg", "jo", "sa", "kw", "om", "qa", "ma", "ae"],
|
|
51796
51796
|
locales: {
|
|
51797
51797
|
defaultLanguage: {
|
|
@@ -51807,37 +51807,49 @@ var localeIndex = {
|
|
|
51807
51807
|
ar: {
|
|
51808
51808
|
defaultRegion: {
|
|
51809
51809
|
code: "ar",
|
|
51810
|
-
strings: "ar-
|
|
51810
|
+
strings: "ar-SA/resource.json"
|
|
51811
51811
|
}
|
|
51812
51812
|
},
|
|
51813
51813
|
bg: {
|
|
51814
51814
|
defaultRegion: {
|
|
51815
51815
|
code: "bg-BG",
|
|
51816
|
-
strings: "bg-
|
|
51816
|
+
strings: "bg-BG/resource.json"
|
|
51817
|
+
}
|
|
51818
|
+
},
|
|
51819
|
+
ca: {
|
|
51820
|
+
defaultRegion: {
|
|
51821
|
+
code: "ca-ES",
|
|
51822
|
+
strings: "ca-ES/resource.json"
|
|
51817
51823
|
}
|
|
51818
51824
|
},
|
|
51819
51825
|
cs: {
|
|
51820
51826
|
defaultRegion: {
|
|
51821
51827
|
code: "cs-CZ",
|
|
51822
|
-
strings: "cs-
|
|
51828
|
+
strings: "cs-CZ/resource.json"
|
|
51823
51829
|
}
|
|
51824
51830
|
},
|
|
51825
51831
|
da: {
|
|
51826
51832
|
defaultRegion: {
|
|
51827
51833
|
code: "da-DK",
|
|
51828
|
-
strings: "da-
|
|
51834
|
+
strings: "da-DK/resource.json"
|
|
51829
51835
|
}
|
|
51830
51836
|
},
|
|
51831
51837
|
de: {
|
|
51832
51838
|
defaultRegion: {
|
|
51833
51839
|
code: "de-DE",
|
|
51834
|
-
strings: "de-
|
|
51840
|
+
strings: "de-DE/resource.json"
|
|
51841
|
+
}
|
|
51842
|
+
},
|
|
51843
|
+
et: {
|
|
51844
|
+
defaultRegion: {
|
|
51845
|
+
code: "et-EE",
|
|
51846
|
+
strings: "et-EE/resource.json"
|
|
51835
51847
|
}
|
|
51836
51848
|
},
|
|
51837
51849
|
el: {
|
|
51838
51850
|
defaultRegion: {
|
|
51839
51851
|
code: "el-GR",
|
|
51840
|
-
strings: "el-
|
|
51852
|
+
strings: "el-GR/resource.json"
|
|
51841
51853
|
}
|
|
51842
51854
|
},
|
|
51843
51855
|
en: {
|
|
@@ -51865,123 +51877,199 @@ var localeIndex = {
|
|
|
51865
51877
|
es: {
|
|
51866
51878
|
defaultRegion: {
|
|
51867
51879
|
code: "es-ES",
|
|
51868
|
-
strings: "es-
|
|
51880
|
+
strings: "es-ES/resource.json"
|
|
51869
51881
|
},
|
|
51870
51882
|
mx: {
|
|
51871
51883
|
code: "es-MX",
|
|
51872
|
-
strings: "es-
|
|
51884
|
+
strings: "es-MX/resource.json"
|
|
51885
|
+
}
|
|
51886
|
+
},
|
|
51887
|
+
eu: {
|
|
51888
|
+
defaultRegion: {
|
|
51889
|
+
code: "eu-ES",
|
|
51890
|
+
strings: "eu-ES/resource.json"
|
|
51873
51891
|
}
|
|
51874
51892
|
},
|
|
51875
51893
|
fi: {
|
|
51876
51894
|
defaultRegion: {
|
|
51877
51895
|
code: "fi-FI",
|
|
51878
|
-
strings: "fi-
|
|
51896
|
+
strings: "fi-FI/resource.json"
|
|
51879
51897
|
}
|
|
51880
51898
|
},
|
|
51881
51899
|
fr: {
|
|
51882
51900
|
defaultRegion: {
|
|
51883
51901
|
code: "fr-FR",
|
|
51884
|
-
strings: "fr-
|
|
51902
|
+
strings: "fr-FR/resource.json"
|
|
51903
|
+
}
|
|
51904
|
+
},
|
|
51905
|
+
gl: {
|
|
51906
|
+
defaultRegion: {
|
|
51907
|
+
code: "gl-ES",
|
|
51908
|
+
strings: "gl-ES/resource.json"
|
|
51909
|
+
}
|
|
51910
|
+
},
|
|
51911
|
+
he: {
|
|
51912
|
+
defaultRegion: {
|
|
51913
|
+
code: "he-IL",
|
|
51914
|
+
strings: "he-IL/resource.json"
|
|
51915
|
+
}
|
|
51916
|
+
},
|
|
51917
|
+
hi: {
|
|
51918
|
+
defaultRegion: {
|
|
51919
|
+
code: "hi-IN",
|
|
51920
|
+
strings: "hi-IN/resource.json"
|
|
51921
|
+
}
|
|
51922
|
+
},
|
|
51923
|
+
hr: {
|
|
51924
|
+
defaultRegion: {
|
|
51925
|
+
code: "hr-HR",
|
|
51926
|
+
strings: "hr-HR/resource.json"
|
|
51885
51927
|
}
|
|
51886
51928
|
},
|
|
51887
51929
|
hu: {
|
|
51888
51930
|
defaultRegion: {
|
|
51889
51931
|
code: "hu-HU",
|
|
51890
|
-
strings: "hu-
|
|
51932
|
+
strings: "hu-HU/resource.json"
|
|
51891
51933
|
}
|
|
51892
51934
|
},
|
|
51893
51935
|
id: {
|
|
51894
51936
|
defaultRegion: {
|
|
51895
51937
|
code: "id-ID",
|
|
51896
|
-
strings: "id-
|
|
51938
|
+
strings: "id-ID/resource.json"
|
|
51897
51939
|
}
|
|
51898
51940
|
},
|
|
51899
51941
|
it: {
|
|
51900
51942
|
defaultRegion: {
|
|
51901
51943
|
code: "it-IT",
|
|
51902
|
-
strings: "it-
|
|
51944
|
+
strings: "it-IT/resource.json"
|
|
51945
|
+
}
|
|
51946
|
+
},
|
|
51947
|
+
ja: {
|
|
51948
|
+
defaultRegion: {
|
|
51949
|
+
code: "ja-JP",
|
|
51950
|
+
strings: "ja-JP/resource.json"
|
|
51951
|
+
}
|
|
51952
|
+
},
|
|
51953
|
+
kk: {
|
|
51954
|
+
defaultRegion: {
|
|
51955
|
+
code: "kk-KZ",
|
|
51956
|
+
strings: "kk-KZ/resource.json"
|
|
51903
51957
|
}
|
|
51904
51958
|
},
|
|
51905
51959
|
ko: {
|
|
51906
51960
|
defaultRegion: {
|
|
51907
51961
|
code: "ko-KR",
|
|
51908
|
-
strings: "ko-
|
|
51962
|
+
strings: "ko-KR/resource.json"
|
|
51909
51963
|
}
|
|
51910
51964
|
},
|
|
51911
51965
|
lt: {
|
|
51912
51966
|
defaultRegion: {
|
|
51913
51967
|
code: "lt-LT",
|
|
51914
|
-
strings: "lt-
|
|
51968
|
+
strings: "lt-LT/resource.json"
|
|
51969
|
+
}
|
|
51970
|
+
},
|
|
51971
|
+
lv: {
|
|
51972
|
+
defaultRegion: {
|
|
51973
|
+
code: "lv-LV",
|
|
51974
|
+
strings: "lv-LV/resource.json"
|
|
51915
51975
|
}
|
|
51916
51976
|
},
|
|
51917
51977
|
ms: {
|
|
51918
51978
|
defaultRegion: {
|
|
51919
51979
|
code: "ms-MY",
|
|
51920
|
-
strings: "ms-
|
|
51980
|
+
strings: "ms-MY/resource.json"
|
|
51921
51981
|
}
|
|
51922
51982
|
},
|
|
51923
51983
|
nb: {
|
|
51924
51984
|
defaultRegion: {
|
|
51925
51985
|
code: "nb-NO",
|
|
51926
|
-
strings: "nb-
|
|
51986
|
+
strings: "nb-NO/resource.json"
|
|
51927
51987
|
}
|
|
51928
51988
|
},
|
|
51929
51989
|
nl: {
|
|
51930
51990
|
defaultRegion: {
|
|
51931
51991
|
code: "nl-NL",
|
|
51932
|
-
strings: "nl-
|
|
51992
|
+
strings: "nl-NL/resource.json"
|
|
51933
51993
|
}
|
|
51934
51994
|
},
|
|
51935
51995
|
pl: {
|
|
51936
51996
|
defaultRegion: {
|
|
51937
51997
|
code: "pl-PL",
|
|
51938
|
-
strings: "pl-
|
|
51998
|
+
strings: "pl-PL/resource.json"
|
|
51939
51999
|
}
|
|
51940
52000
|
},
|
|
51941
52001
|
pt: {
|
|
51942
52002
|
defaultRegion: {
|
|
51943
52003
|
code: "pt-PT",
|
|
51944
|
-
strings: "pt-
|
|
52004
|
+
strings: "pt-PT/resource.json"
|
|
51945
52005
|
},
|
|
51946
52006
|
br: {
|
|
51947
52007
|
code: "pt-BR",
|
|
51948
|
-
strings: "pt-
|
|
52008
|
+
strings: "pt-BR/resource.json"
|
|
52009
|
+
}
|
|
52010
|
+
},
|
|
52011
|
+
ro: {
|
|
52012
|
+
defaultRegion: {
|
|
52013
|
+
code: "ro-RO",
|
|
52014
|
+
strings: "ro-RO/resource.json"
|
|
51949
52015
|
}
|
|
51950
52016
|
},
|
|
51951
52017
|
ru: {
|
|
51952
52018
|
defaultRegion: {
|
|
51953
52019
|
code: "ru-RU",
|
|
51954
|
-
strings: "ru-
|
|
52020
|
+
strings: "ru-RU/resource.json"
|
|
51955
52021
|
}
|
|
51956
52022
|
},
|
|
51957
52023
|
sk: {
|
|
51958
52024
|
defaultRegion: {
|
|
51959
52025
|
code: "sk-SK",
|
|
51960
|
-
strings: "sk-
|
|
52026
|
+
strings: "sk-SK/resource.json"
|
|
51961
52027
|
}
|
|
51962
52028
|
},
|
|
51963
52029
|
sl: {
|
|
51964
52030
|
defaultRegion: {
|
|
51965
52031
|
code: "sl-SL",
|
|
51966
|
-
strings: "sl
|
|
52032
|
+
strings: "sl/resource.json"
|
|
52033
|
+
}
|
|
52034
|
+
},
|
|
52035
|
+
sr: {
|
|
52036
|
+
defaultRegion: {
|
|
52037
|
+
code: "sr-CYRL-RS",
|
|
52038
|
+
strings: "sr-CYRL-RS/resource.json"
|
|
52039
|
+
},
|
|
52040
|
+
latn: {
|
|
52041
|
+
code: "sr-LATN-RS",
|
|
52042
|
+
strings: "sr-LATN-RS/resource.json"
|
|
51967
52043
|
}
|
|
51968
52044
|
},
|
|
51969
52045
|
sv: {
|
|
51970
52046
|
defaultRegion: {
|
|
51971
52047
|
code: "sv-SE",
|
|
51972
|
-
strings: "sv-
|
|
52048
|
+
strings: "sv-SE/resource.json"
|
|
51973
52049
|
}
|
|
51974
52050
|
},
|
|
51975
52051
|
th: {
|
|
51976
52052
|
defaultRegion: {
|
|
51977
52053
|
code: "th-TH",
|
|
51978
|
-
strings: "th-
|
|
52054
|
+
strings: "th-TH/resource.json"
|
|
51979
52055
|
}
|
|
51980
52056
|
},
|
|
51981
52057
|
tr: {
|
|
51982
52058
|
defaultRegion: {
|
|
51983
52059
|
code: "tr-TR",
|
|
51984
|
-
strings: "tr-
|
|
52060
|
+
strings: "tr-TR/resource.json"
|
|
52061
|
+
}
|
|
52062
|
+
},
|
|
52063
|
+
uk: {
|
|
52064
|
+
defaultRegion: {
|
|
52065
|
+
code: "uk-UA",
|
|
52066
|
+
strings: "uk-UA/resource.json"
|
|
52067
|
+
}
|
|
52068
|
+
},
|
|
52069
|
+
vi: {
|
|
52070
|
+
defaultRegion: {
|
|
52071
|
+
code: "vi-VN",
|
|
52072
|
+
strings: "vi-VN/resource.json"
|
|
51985
52073
|
}
|
|
51986
52074
|
},
|
|
51987
52075
|
zh: {
|
|
@@ -52010,7 +52098,7 @@ var localeIndex = {
|
|
|
52010
52098
|
},
|
|
52011
52099
|
tw: {
|
|
52012
52100
|
code: "zh-Hant-TW",
|
|
52013
|
-
strings: "zh-
|
|
52101
|
+
strings: "zh-TW/resource.json"
|
|
52014
52102
|
}
|
|
52015
52103
|
}
|
|
52016
52104
|
}
|
|
@@ -52073,10 +52161,6 @@ var LocalizedStrings = /** @class */ (function () {
|
|
|
52073
52161
|
* A localized version of `"Detour"`.
|
|
52074
52162
|
*/
|
|
52075
52163
|
this.Detour = "Detour";
|
|
52076
|
-
/**
|
|
52077
|
-
* A localized version of `"Dummy"`.
|
|
52078
|
-
*/
|
|
52079
|
-
this.Dummy = "Dummy";
|
|
52080
52164
|
}
|
|
52081
52165
|
return LocalizedStrings;
|
|
52082
52166
|
}());
|
|
@@ -52219,7 +52303,7 @@ var UserAgent = /** @class */ (function () {
|
|
|
52219
52303
|
return UserAgent;
|
|
52220
52304
|
}());
|
|
52221
52305
|
|
|
52222
|
-
var version$3 = "3.7.
|
|
52306
|
+
var version$3 = "3.7.4";
|
|
52223
52307
|
|
|
52224
52308
|
/**
|
|
52225
52309
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -53185,6 +53269,7 @@ var positionTooltip = function (tooltip, eventTarget, forceAbsolute) {
|
|
|
53185
53269
|
}
|
|
53186
53270
|
};
|
|
53187
53271
|
eventTarget.addEventListener("mouseover", positionTooltip);
|
|
53272
|
+
eventTarget.addEventListener("touchend", positionTooltip);
|
|
53188
53273
|
eventTarget.addEventListener("focusin", positionTooltip);
|
|
53189
53274
|
eventTarget.addEventListener("keydown", dismissTooltip);
|
|
53190
53275
|
};
|
|
@@ -57775,12 +57860,43 @@ var StyleControl = /** @class */ (function (_super) {
|
|
|
57775
57860
|
if (expanded) {
|
|
57776
57861
|
container.classList.add(StyleControl.Css.inUse);
|
|
57777
57862
|
styleOpsGrid.classList.remove("hidden-accessible-element");
|
|
57863
|
+
// Dynamically cap max-height to fit within the map container
|
|
57864
|
+
if (_this.options.layout === "list") {
|
|
57865
|
+
var mapContainer = _this.map.getMapContainer();
|
|
57866
|
+
var mapRect = mapContainer.getBoundingClientRect();
|
|
57867
|
+
var btnRect = currStyleButton.getBoundingClientRect();
|
|
57868
|
+
var btnOffsetTop = Math.max(0, btnRect.top - mapRect.top);
|
|
57869
|
+
var btnHeight = currStyleButton.offsetHeight ||
|
|
57870
|
+
btnRect.height ||
|
|
57871
|
+
0;
|
|
57872
|
+
var mapHeight = mapContainer.clientHeight;
|
|
57873
|
+
var padding = 8;
|
|
57874
|
+
var isBottomPosition = (options === null || options === void 0 ? void 0 : options.position) === ControlPosition.BottomLeft ||
|
|
57875
|
+
(options === null || options === void 0 ? void 0 : options.position) === ControlPosition.BottomRight;
|
|
57876
|
+
var availableHeight = isBottomPosition
|
|
57877
|
+
? Math.max(0, btnOffsetTop - padding) // space above button
|
|
57878
|
+
: Math.max(0, mapHeight - (btnOffsetTop + btnHeight + padding)); // space below button
|
|
57879
|
+
var maxHeight = Math.max(100, Math.floor(availableHeight));
|
|
57880
|
+
styleOpsGrid.style.maxHeight = "".concat(maxHeight, "px");
|
|
57881
|
+
}
|
|
57778
57882
|
}
|
|
57779
57883
|
else {
|
|
57780
57884
|
container.classList.remove(StyleControl.Css.inUse);
|
|
57781
57885
|
styleOpsGrid.classList.add("hidden-accessible-element");
|
|
57782
57886
|
}
|
|
57783
57887
|
};
|
|
57888
|
+
var onStyleButtonClick = function () {
|
|
57889
|
+
if (container.classList.contains(StyleControl.Css.inUse)) {
|
|
57890
|
+
expandGrid(false);
|
|
57891
|
+
}
|
|
57892
|
+
else {
|
|
57893
|
+
expandGrid(true);
|
|
57894
|
+
// clicking on a reveal button should move the focus to the first styleOpsGrid button
|
|
57895
|
+
if (styleOpsGrid.firstElementChild) {
|
|
57896
|
+
styleOpsGrid.firstElementChild.focus();
|
|
57897
|
+
}
|
|
57898
|
+
}
|
|
57899
|
+
};
|
|
57784
57900
|
styleOpsGrid.classList.add(options ? options.position || 'top-right' : 'top-right');
|
|
57785
57901
|
container.addEventListener("mouseover", function () {
|
|
57786
57902
|
_this.hasMouse = true;
|
|
@@ -57820,17 +57936,12 @@ var StyleControl = /** @class */ (function (_super) {
|
|
|
57820
57936
|
}
|
|
57821
57937
|
}
|
|
57822
57938
|
});
|
|
57939
|
+
currStyleButton.addEventListener("touchend", function (event) {
|
|
57940
|
+
event.preventDefault();
|
|
57941
|
+
onStyleButtonClick();
|
|
57942
|
+
});
|
|
57823
57943
|
currStyleButton.addEventListener("click", function (event) {
|
|
57824
|
-
|
|
57825
|
-
expandGrid(false);
|
|
57826
|
-
}
|
|
57827
|
-
else {
|
|
57828
|
-
expandGrid(true);
|
|
57829
|
-
// clicking on a reveal button should move the focus to the first styleOpsGrid button
|
|
57830
|
-
if (styleOpsGrid.firstElementChild) {
|
|
57831
|
-
styleOpsGrid.firstElementChild.focus();
|
|
57832
|
-
}
|
|
57833
|
-
}
|
|
57944
|
+
onStyleButtonClick();
|
|
57834
57945
|
});
|
|
57835
57946
|
if (options && StyleControl.InvertOrderPositions.includes(options.position)) {
|
|
57836
57947
|
container.appendChild(styleOpsGrid);
|
|
@@ -57921,7 +58032,7 @@ var StyleControl = /** @class */ (function (_super) {
|
|
|
57921
58032
|
return _this.thumbnailCache.blob.get(response.url);
|
|
57922
58033
|
}
|
|
57923
58034
|
else {
|
|
57924
|
-
// we need the response.clone() to allow reading over body multiple times since response objects are cached
|
|
58035
|
+
// we need the response.clone() to allow reading over body multiple times since response objects are cached
|
|
57925
58036
|
// and can be reused across multiple invocations
|
|
57926
58037
|
var blobPromise = response.clone().blob();
|
|
57927
58038
|
_this.thumbnailCache.blob.set(response.url, blobPromise);
|
|
@@ -57975,7 +58086,7 @@ var StyleControl = /** @class */ (function (_super) {
|
|
|
57975
58086
|
};
|
|
57976
58087
|
StyleControl.prototype.buildCurrStyleBtn = function () {
|
|
57977
58088
|
var selectCurrButton = document.createElement("button");
|
|
57978
|
-
if (this.options.layout
|
|
58089
|
+
if (this.options.layout === "icons") {
|
|
57979
58090
|
selectCurrButton.classList.add(StyleControl.Css.button);
|
|
57980
58091
|
}
|
|
57981
58092
|
else {
|
|
@@ -57994,11 +58105,9 @@ var StyleControl = /** @class */ (function (_super) {
|
|
|
57994
58105
|
StyleControl.prototype.buildStyleOpsGrid = function () {
|
|
57995
58106
|
var _this = this;
|
|
57996
58107
|
var styleOpsGrid = document.createElement("div");
|
|
57997
|
-
|
|
57998
|
-
|
|
57999
|
-
|
|
58000
|
-
}
|
|
58001
|
-
else {
|
|
58108
|
+
var layoutClass = this.options.layout === "icons" ? "icons" : "list";
|
|
58109
|
+
styleOpsGrid.classList.add(StyleControl.Css.styleOptions, layoutClass);
|
|
58110
|
+
if (layoutClass === "list") {
|
|
58002
58111
|
styleOpsGrid.classList.add(StyleControl.Css.dropdown);
|
|
58003
58112
|
}
|
|
58004
58113
|
styleOpsGrid.setAttribute("aria-label", "Style Options");
|
|
@@ -115278,8 +115387,12 @@ var StyleManager = /** @class */ (function () {
|
|
|
115278
115387
|
*/
|
|
115279
115388
|
StyleManager.prototype._transformStyleRequest = function (url, params) {
|
|
115280
115389
|
var _a;
|
|
115390
|
+
var domain = (Url.protoRegEx.test(this.serviceOptions.domain) ?
|
|
115391
|
+
this.serviceOptions.domain.slice(this.serviceOptions.domain.indexOf("\/\/") + 2) :
|
|
115392
|
+
this.serviceOptions.domain)
|
|
115393
|
+
.replace(/\/+$/, "");
|
|
115281
115394
|
if (url.includes(constants.domainPlaceHolder)) {
|
|
115282
|
-
params.url = params.url.replace(constants.domainPlaceHolder,
|
|
115395
|
+
params.url = params.url.replace(constants.domainPlaceHolder, domain);
|
|
115283
115396
|
}
|
|
115284
115397
|
if (url.includes(constants.stylePathHolder)) {
|
|
115285
115398
|
params.url = params.url.replace(constants.stylePathHolder, constants.stylePath);
|
|
@@ -115287,7 +115400,7 @@ var StyleManager = /** @class */ (function () {
|
|
|
115287
115400
|
if (url.includes(constants.styleResourcePlaceholder)) {
|
|
115288
115401
|
params.url = params.url.replace(constants.styleResourcePlaceholder, constants.styleResourcePath);
|
|
115289
115402
|
}
|
|
115290
|
-
if (params.url.toLocaleLowerCase().includes(
|
|
115403
|
+
if (params.url.toLocaleLowerCase().includes(domain.toLocaleLowerCase()) ||
|
|
115291
115404
|
params.url.toLocaleLowerCase().includes(this.serviceOptions.staticAssetsDomain.toLocaleLowerCase())) {
|
|
115292
115405
|
// Only add API version param for Azure maps domain requests
|
|
115293
115406
|
var targetUrl = new URL(params.url);
|
|
@@ -116749,9 +116862,10 @@ var Map$1 = /** @class */ (function (_super) {
|
|
|
116749
116862
|
Map.prototype._rebuildStyle = function (diff) {
|
|
116750
116863
|
if (diff === void 0) { diff = true; }
|
|
116751
116864
|
return __awaiter(this, void 0, void 0, function () {
|
|
116865
|
+
var _this = this;
|
|
116752
116866
|
return __generator(this, function (_a) {
|
|
116753
116867
|
this.styles.setStyle(this.styleOptions, diff);
|
|
116754
|
-
this.imageSprite._restoreImages();
|
|
116868
|
+
this.events.addOnce("stylechanged", function () { return _this.imageSprite._restoreImages(); });
|
|
116755
116869
|
return [2 /*return*/];
|
|
116756
116870
|
});
|
|
116757
116871
|
});
|