azure-maps-control 3.6.1 → 3.7.2
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 +139 -48
- package/dist/atlas-core-bare.js +139 -48
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +139 -48
- package/dist/atlas-core.js +139 -48
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas-esm.js +139 -48
- package/dist/atlas-esm.min.js +1 -1
- package/dist/atlas.js +139 -48
- package/dist/atlas.min.js +1 -1
- package/package.json +1 -1
- package/typings/index.d.ts +5 -6
package/dist/atlas-core.js
CHANGED
|
@@ -51797,7 +51797,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
51797
51797
|
* Contains real information about the available/supported locales.
|
|
51798
51798
|
*/
|
|
51799
51799
|
var localeIndex = {
|
|
51800
|
-
localizationsPath: "locs/mapcontrol/
|
|
51800
|
+
localizationsPath: "locs/mapcontrol/2025-11-05",
|
|
51801
51801
|
sensitiveUserRegions: ["il", "kr", "pk", "in", "cn", "ar", "bh", "eg", "jo", "sa", "kw", "om", "qa", "ma", "ae"],
|
|
51802
51802
|
locales: {
|
|
51803
51803
|
defaultLanguage: {
|
|
@@ -51813,37 +51813,49 @@ uniform ${precision} ${type} u_${name};
|
|
|
51813
51813
|
ar: {
|
|
51814
51814
|
defaultRegion: {
|
|
51815
51815
|
code: "ar",
|
|
51816
|
-
strings: "ar-
|
|
51816
|
+
strings: "ar-SA/resource.json"
|
|
51817
51817
|
}
|
|
51818
51818
|
},
|
|
51819
51819
|
bg: {
|
|
51820
51820
|
defaultRegion: {
|
|
51821
51821
|
code: "bg-BG",
|
|
51822
|
-
strings: "bg-
|
|
51822
|
+
strings: "bg-BG/resource.json"
|
|
51823
|
+
}
|
|
51824
|
+
},
|
|
51825
|
+
ca: {
|
|
51826
|
+
defaultRegion: {
|
|
51827
|
+
code: "ca-ES",
|
|
51828
|
+
strings: "ca-ES/resource.json"
|
|
51823
51829
|
}
|
|
51824
51830
|
},
|
|
51825
51831
|
cs: {
|
|
51826
51832
|
defaultRegion: {
|
|
51827
51833
|
code: "cs-CZ",
|
|
51828
|
-
strings: "cs-
|
|
51834
|
+
strings: "cs-CZ/resource.json"
|
|
51829
51835
|
}
|
|
51830
51836
|
},
|
|
51831
51837
|
da: {
|
|
51832
51838
|
defaultRegion: {
|
|
51833
51839
|
code: "da-DK",
|
|
51834
|
-
strings: "da-
|
|
51840
|
+
strings: "da-DK/resource.json"
|
|
51835
51841
|
}
|
|
51836
51842
|
},
|
|
51837
51843
|
de: {
|
|
51838
51844
|
defaultRegion: {
|
|
51839
51845
|
code: "de-DE",
|
|
51840
|
-
strings: "de-
|
|
51846
|
+
strings: "de-DE/resource.json"
|
|
51847
|
+
}
|
|
51848
|
+
},
|
|
51849
|
+
et: {
|
|
51850
|
+
defaultRegion: {
|
|
51851
|
+
code: "et-EE",
|
|
51852
|
+
strings: "et-EE/resource.json"
|
|
51841
51853
|
}
|
|
51842
51854
|
},
|
|
51843
51855
|
el: {
|
|
51844
51856
|
defaultRegion: {
|
|
51845
51857
|
code: "el-GR",
|
|
51846
|
-
strings: "el-
|
|
51858
|
+
strings: "el-GR/resource.json"
|
|
51847
51859
|
}
|
|
51848
51860
|
},
|
|
51849
51861
|
en: {
|
|
@@ -51871,123 +51883,199 @@ uniform ${precision} ${type} u_${name};
|
|
|
51871
51883
|
es: {
|
|
51872
51884
|
defaultRegion: {
|
|
51873
51885
|
code: "es-ES",
|
|
51874
|
-
strings: "es-
|
|
51886
|
+
strings: "es-ES/resource.json"
|
|
51875
51887
|
},
|
|
51876
51888
|
mx: {
|
|
51877
51889
|
code: "es-MX",
|
|
51878
|
-
strings: "es-
|
|
51890
|
+
strings: "es-MX/resource.json"
|
|
51891
|
+
}
|
|
51892
|
+
},
|
|
51893
|
+
eu: {
|
|
51894
|
+
defaultRegion: {
|
|
51895
|
+
code: "eu-ES",
|
|
51896
|
+
strings: "eu-ES/resource.json"
|
|
51879
51897
|
}
|
|
51880
51898
|
},
|
|
51881
51899
|
fi: {
|
|
51882
51900
|
defaultRegion: {
|
|
51883
51901
|
code: "fi-FI",
|
|
51884
|
-
strings: "fi-
|
|
51902
|
+
strings: "fi-FI/resource.json"
|
|
51885
51903
|
}
|
|
51886
51904
|
},
|
|
51887
51905
|
fr: {
|
|
51888
51906
|
defaultRegion: {
|
|
51889
51907
|
code: "fr-FR",
|
|
51890
|
-
strings: "fr-
|
|
51908
|
+
strings: "fr-FR/resource.json"
|
|
51909
|
+
}
|
|
51910
|
+
},
|
|
51911
|
+
gl: {
|
|
51912
|
+
defaultRegion: {
|
|
51913
|
+
code: "gl-ES",
|
|
51914
|
+
strings: "gl-ES/resource.json"
|
|
51915
|
+
}
|
|
51916
|
+
},
|
|
51917
|
+
he: {
|
|
51918
|
+
defaultRegion: {
|
|
51919
|
+
code: "he-IL",
|
|
51920
|
+
strings: "he-IL/resource.json"
|
|
51921
|
+
}
|
|
51922
|
+
},
|
|
51923
|
+
hi: {
|
|
51924
|
+
defaultRegion: {
|
|
51925
|
+
code: "hi-IN",
|
|
51926
|
+
strings: "hi-IN/resource.json"
|
|
51927
|
+
}
|
|
51928
|
+
},
|
|
51929
|
+
hr: {
|
|
51930
|
+
defaultRegion: {
|
|
51931
|
+
code: "hr-HR",
|
|
51932
|
+
strings: "hr-HR/resource.json"
|
|
51891
51933
|
}
|
|
51892
51934
|
},
|
|
51893
51935
|
hu: {
|
|
51894
51936
|
defaultRegion: {
|
|
51895
51937
|
code: "hu-HU",
|
|
51896
|
-
strings: "hu-
|
|
51938
|
+
strings: "hu-HU/resource.json"
|
|
51897
51939
|
}
|
|
51898
51940
|
},
|
|
51899
51941
|
id: {
|
|
51900
51942
|
defaultRegion: {
|
|
51901
51943
|
code: "id-ID",
|
|
51902
|
-
strings: "id-
|
|
51944
|
+
strings: "id-ID/resource.json"
|
|
51903
51945
|
}
|
|
51904
51946
|
},
|
|
51905
51947
|
it: {
|
|
51906
51948
|
defaultRegion: {
|
|
51907
51949
|
code: "it-IT",
|
|
51908
|
-
strings: "it-
|
|
51950
|
+
strings: "it-IT/resource.json"
|
|
51951
|
+
}
|
|
51952
|
+
},
|
|
51953
|
+
ja: {
|
|
51954
|
+
defaultRegion: {
|
|
51955
|
+
code: "ja-JP",
|
|
51956
|
+
strings: "ja-JP/resource.json"
|
|
51957
|
+
}
|
|
51958
|
+
},
|
|
51959
|
+
kk: {
|
|
51960
|
+
defaultRegion: {
|
|
51961
|
+
code: "kk-KZ",
|
|
51962
|
+
strings: "kk-KZ/resource.json"
|
|
51909
51963
|
}
|
|
51910
51964
|
},
|
|
51911
51965
|
ko: {
|
|
51912
51966
|
defaultRegion: {
|
|
51913
51967
|
code: "ko-KR",
|
|
51914
|
-
strings: "ko-
|
|
51968
|
+
strings: "ko-KR/resource.json"
|
|
51915
51969
|
}
|
|
51916
51970
|
},
|
|
51917
51971
|
lt: {
|
|
51918
51972
|
defaultRegion: {
|
|
51919
51973
|
code: "lt-LT",
|
|
51920
|
-
strings: "lt-
|
|
51974
|
+
strings: "lt-LT/resource.json"
|
|
51975
|
+
}
|
|
51976
|
+
},
|
|
51977
|
+
lv: {
|
|
51978
|
+
defaultRegion: {
|
|
51979
|
+
code: "lv-LV",
|
|
51980
|
+
strings: "lv-LV/resource.json"
|
|
51921
51981
|
}
|
|
51922
51982
|
},
|
|
51923
51983
|
ms: {
|
|
51924
51984
|
defaultRegion: {
|
|
51925
51985
|
code: "ms-MY",
|
|
51926
|
-
strings: "ms-
|
|
51986
|
+
strings: "ms-MY/resource.json"
|
|
51927
51987
|
}
|
|
51928
51988
|
},
|
|
51929
51989
|
nb: {
|
|
51930
51990
|
defaultRegion: {
|
|
51931
51991
|
code: "nb-NO",
|
|
51932
|
-
strings: "nb-
|
|
51992
|
+
strings: "nb-NO/resource.json"
|
|
51933
51993
|
}
|
|
51934
51994
|
},
|
|
51935
51995
|
nl: {
|
|
51936
51996
|
defaultRegion: {
|
|
51937
51997
|
code: "nl-NL",
|
|
51938
|
-
strings: "nl-
|
|
51998
|
+
strings: "nl-NL/resource.json"
|
|
51939
51999
|
}
|
|
51940
52000
|
},
|
|
51941
52001
|
pl: {
|
|
51942
52002
|
defaultRegion: {
|
|
51943
52003
|
code: "pl-PL",
|
|
51944
|
-
strings: "pl-
|
|
52004
|
+
strings: "pl-PL/resource.json"
|
|
51945
52005
|
}
|
|
51946
52006
|
},
|
|
51947
52007
|
pt: {
|
|
51948
52008
|
defaultRegion: {
|
|
51949
52009
|
code: "pt-PT",
|
|
51950
|
-
strings: "pt-
|
|
52010
|
+
strings: "pt-PT/resource.json"
|
|
51951
52011
|
},
|
|
51952
52012
|
br: {
|
|
51953
52013
|
code: "pt-BR",
|
|
51954
|
-
strings: "pt-
|
|
52014
|
+
strings: "pt-BR/resource.json"
|
|
52015
|
+
}
|
|
52016
|
+
},
|
|
52017
|
+
ro: {
|
|
52018
|
+
defaultRegion: {
|
|
52019
|
+
code: "ro-RO",
|
|
52020
|
+
strings: "ro-RO/resource.json"
|
|
51955
52021
|
}
|
|
51956
52022
|
},
|
|
51957
52023
|
ru: {
|
|
51958
52024
|
defaultRegion: {
|
|
51959
52025
|
code: "ru-RU",
|
|
51960
|
-
strings: "ru-
|
|
52026
|
+
strings: "ru-RU/resource.json"
|
|
51961
52027
|
}
|
|
51962
52028
|
},
|
|
51963
52029
|
sk: {
|
|
51964
52030
|
defaultRegion: {
|
|
51965
52031
|
code: "sk-SK",
|
|
51966
|
-
strings: "sk-
|
|
52032
|
+
strings: "sk-SK/resource.json"
|
|
51967
52033
|
}
|
|
51968
52034
|
},
|
|
51969
52035
|
sl: {
|
|
51970
52036
|
defaultRegion: {
|
|
51971
52037
|
code: "sl-SL",
|
|
51972
|
-
strings: "sl
|
|
52038
|
+
strings: "sl/resource.json"
|
|
52039
|
+
}
|
|
52040
|
+
},
|
|
52041
|
+
sr: {
|
|
52042
|
+
defaultRegion: {
|
|
52043
|
+
code: "sr-CYRL-RS",
|
|
52044
|
+
strings: "sr-CYRL-RS/resource.json"
|
|
52045
|
+
},
|
|
52046
|
+
latn: {
|
|
52047
|
+
code: "sr-LATN-RS",
|
|
52048
|
+
strings: "sr-LATN-RS/resource.json"
|
|
51973
52049
|
}
|
|
51974
52050
|
},
|
|
51975
52051
|
sv: {
|
|
51976
52052
|
defaultRegion: {
|
|
51977
52053
|
code: "sv-SE",
|
|
51978
|
-
strings: "sv-
|
|
52054
|
+
strings: "sv-SE/resource.json"
|
|
51979
52055
|
}
|
|
51980
52056
|
},
|
|
51981
52057
|
th: {
|
|
51982
52058
|
defaultRegion: {
|
|
51983
52059
|
code: "th-TH",
|
|
51984
|
-
strings: "th-
|
|
52060
|
+
strings: "th-TH/resource.json"
|
|
51985
52061
|
}
|
|
51986
52062
|
},
|
|
51987
52063
|
tr: {
|
|
51988
52064
|
defaultRegion: {
|
|
51989
52065
|
code: "tr-TR",
|
|
51990
|
-
strings: "tr-
|
|
52066
|
+
strings: "tr-TR/resource.json"
|
|
52067
|
+
}
|
|
52068
|
+
},
|
|
52069
|
+
uk: {
|
|
52070
|
+
defaultRegion: {
|
|
52071
|
+
code: "uk-UA",
|
|
52072
|
+
strings: "uk-UA/resource.json"
|
|
52073
|
+
}
|
|
52074
|
+
},
|
|
52075
|
+
vi: {
|
|
52076
|
+
defaultRegion: {
|
|
52077
|
+
code: "vi-VN",
|
|
52078
|
+
strings: "vi-VN/resource.json"
|
|
51991
52079
|
}
|
|
51992
52080
|
},
|
|
51993
52081
|
zh: {
|
|
@@ -52016,7 +52104,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52016
52104
|
},
|
|
52017
52105
|
tw: {
|
|
52018
52106
|
code: "zh-Hant-TW",
|
|
52019
|
-
strings: "zh-
|
|
52107
|
+
strings: "zh-TW/resource.json"
|
|
52020
52108
|
}
|
|
52021
52109
|
}
|
|
52022
52110
|
}
|
|
@@ -52221,7 +52309,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52221
52309
|
return UserAgent;
|
|
52222
52310
|
}());
|
|
52223
52311
|
|
|
52224
|
-
var version$2 = "3.
|
|
52312
|
+
var version$2 = "3.7.2";
|
|
52225
52313
|
|
|
52226
52314
|
/**
|
|
52227
52315
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -53178,6 +53266,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
53178
53266
|
}
|
|
53179
53267
|
};
|
|
53180
53268
|
eventTarget.addEventListener("mouseover", positionTooltip);
|
|
53269
|
+
eventTarget.addEventListener("touchend", positionTooltip);
|
|
53181
53270
|
eventTarget.addEventListener("focusin", positionTooltip);
|
|
53182
53271
|
eventTarget.addEventListener("keydown", dismissTooltip);
|
|
53183
53272
|
};
|
|
@@ -57774,6 +57863,18 @@ uniform ${precision} ${type} u_${name};
|
|
|
57774
57863
|
styleOpsGrid.classList.add("hidden-accessible-element");
|
|
57775
57864
|
}
|
|
57776
57865
|
};
|
|
57866
|
+
var onStyleButtonClick = function () {
|
|
57867
|
+
if (container.classList.contains(StyleControl.Css.inUse)) {
|
|
57868
|
+
expandGrid(false);
|
|
57869
|
+
}
|
|
57870
|
+
else {
|
|
57871
|
+
expandGrid(true);
|
|
57872
|
+
// clicking on a reveal button should move the focus to the first styleOpsGrid button
|
|
57873
|
+
if (styleOpsGrid.firstElementChild) {
|
|
57874
|
+
styleOpsGrid.firstElementChild.focus();
|
|
57875
|
+
}
|
|
57876
|
+
}
|
|
57877
|
+
};
|
|
57777
57878
|
styleOpsGrid.classList.add(options ? options.position || 'top-right' : 'top-right');
|
|
57778
57879
|
container.addEventListener("mouseover", function () {
|
|
57779
57880
|
_this.hasMouse = true;
|
|
@@ -57813,17 +57914,12 @@ uniform ${precision} ${type} u_${name};
|
|
|
57813
57914
|
}
|
|
57814
57915
|
}
|
|
57815
57916
|
});
|
|
57917
|
+
currStyleButton.addEventListener("touchend", function (event) {
|
|
57918
|
+
event.preventDefault();
|
|
57919
|
+
onStyleButtonClick();
|
|
57920
|
+
});
|
|
57816
57921
|
currStyleButton.addEventListener("click", function (event) {
|
|
57817
|
-
|
|
57818
|
-
expandGrid(false);
|
|
57819
|
-
}
|
|
57820
|
-
else {
|
|
57821
|
-
expandGrid(true);
|
|
57822
|
-
// clicking on a reveal button should move the focus to the first styleOpsGrid button
|
|
57823
|
-
if (styleOpsGrid.firstElementChild) {
|
|
57824
|
-
styleOpsGrid.firstElementChild.focus();
|
|
57825
|
-
}
|
|
57826
|
-
}
|
|
57922
|
+
onStyleButtonClick();
|
|
57827
57923
|
});
|
|
57828
57924
|
if (options && StyleControl.InvertOrderPositions.includes(options.position)) {
|
|
57829
57925
|
container.appendChild(styleOpsGrid);
|
|
@@ -95898,7 +95994,6 @@ uniform ${precision} ${type} u_${name};
|
|
|
95898
95994
|
_this.pitch = 0;
|
|
95899
95995
|
/**
|
|
95900
95996
|
* The minimum zoom level that the map can be zoomed out to during the animation. Must be between 0 and 24, and less than or equal to `maxZoom`.
|
|
95901
|
-
* Setting `minZoom` below 1 may result in an empty map when the zoom level is less than 1.
|
|
95902
95997
|
* Default `1`.
|
|
95903
95998
|
* @default 1
|
|
95904
95999
|
*/
|
|
@@ -98219,9 +98314,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
98219
98314
|
_this.events.invoke("error", errorData);
|
|
98220
98315
|
});
|
|
98221
98316
|
// --> Set initial camera state of map
|
|
98222
|
-
_this.setCamera(__assign(__assign({
|
|
98223
|
-
// Default minZoom to ensure the map doesn't zoom out to unsupported zoom levels.
|
|
98224
|
-
minZoom: 1 }, options), { type: "jump", duration: 0 }));
|
|
98317
|
+
_this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
|
|
98225
98318
|
// Add delegates to map
|
|
98226
98319
|
{
|
|
98227
98320
|
_this.incidentDelegate = new IncidentServiceDelegate(_this);
|
|
@@ -98373,9 +98466,6 @@ uniform ${precision} ${type} u_${name};
|
|
|
98373
98466
|
pitch: cameraOptions.pitch,
|
|
98374
98467
|
around: undefined
|
|
98375
98468
|
};
|
|
98376
|
-
if (cameraOptions.minZoom < 1) {
|
|
98377
|
-
console.warn("Setting minZoom below 1 may result in an empty map when the zoom level is less than 1.");
|
|
98378
|
-
}
|
|
98379
98469
|
this.map.setMinZoom(cameraOptions.minZoom);
|
|
98380
98470
|
this.map.setMaxZoom(cameraOptions.maxZoom);
|
|
98381
98471
|
if (cameraOptions.minPitch) {
|
|
@@ -99189,9 +99279,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
99189
99279
|
Map.prototype._rebuildStyle = function (diff) {
|
|
99190
99280
|
if (diff === void 0) { diff = true; }
|
|
99191
99281
|
return __awaiter(this, void 0, void 0, function () {
|
|
99282
|
+
var _this = this;
|
|
99192
99283
|
return __generator(this, function (_a) {
|
|
99193
99284
|
this.styles.setStyle(this.styleOptions, diff);
|
|
99194
|
-
this.imageSprite._restoreImages();
|
|
99285
|
+
this.events.addOnce("stylechanged", function () { return _this.imageSprite._restoreImages(); });
|
|
99195
99286
|
return [2 /*return*/];
|
|
99196
99287
|
});
|
|
99197
99288
|
});
|