azure-maps-control 3.7.2 → 4.0.0-preview.1
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 +31 -10
- package/dist/atlas-core-bare.js +14079 -15815
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +31 -10
- package/dist/atlas-core.js +14065 -15801
- package/dist/atlas-core.min.js +3 -3
- package/dist/atlas-esm.js +14083 -15819
- package/dist/atlas-esm.min.js +3 -3
- package/dist/atlas.css +6 -6
- package/dist/atlas.js +14083 -15819
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +30 -30
- package/package.json +4 -4
- package/thirdpartynotices.txt +0 -0
package/dist/atlas-core-snr.js
CHANGED
|
@@ -52309,7 +52309,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52309
52309
|
return UserAgent;
|
|
52310
52310
|
}());
|
|
52311
52311
|
|
|
52312
|
-
var version = "
|
|
52312
|
+
var version = "4.0.0-preview.1";
|
|
52313
52313
|
|
|
52314
52314
|
/**
|
|
52315
52315
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -57857,6 +57857,25 @@ uniform ${precision} ${type} u_${name};
|
|
|
57857
57857
|
if (expanded) {
|
|
57858
57858
|
container.classList.add(StyleControl.Css.inUse);
|
|
57859
57859
|
styleOpsGrid.classList.remove("hidden-accessible-element");
|
|
57860
|
+
// Dynamically cap max-height to fit within the map container
|
|
57861
|
+
if (_this.options.layout === "list") {
|
|
57862
|
+
var mapContainer = _this.map.getMapContainer();
|
|
57863
|
+
var mapRect = mapContainer.getBoundingClientRect();
|
|
57864
|
+
var btnRect = currStyleButton.getBoundingClientRect();
|
|
57865
|
+
var btnOffsetTop = Math.max(0, btnRect.top - mapRect.top);
|
|
57866
|
+
var btnHeight = currStyleButton.offsetHeight ||
|
|
57867
|
+
btnRect.height ||
|
|
57868
|
+
0;
|
|
57869
|
+
var mapHeight = mapContainer.clientHeight;
|
|
57870
|
+
var padding = 8;
|
|
57871
|
+
var isBottomPosition = (options === null || options === void 0 ? void 0 : options.position) === exports.ControlPosition.BottomLeft ||
|
|
57872
|
+
(options === null || options === void 0 ? void 0 : options.position) === exports.ControlPosition.BottomRight;
|
|
57873
|
+
var availableHeight = isBottomPosition
|
|
57874
|
+
? Math.max(0, btnOffsetTop - padding) // space above button
|
|
57875
|
+
: Math.max(0, mapHeight - (btnOffsetTop + btnHeight + padding)); // space below button
|
|
57876
|
+
var maxHeight = Math.max(100, Math.floor(availableHeight));
|
|
57877
|
+
styleOpsGrid.style.maxHeight = "".concat(maxHeight, "px");
|
|
57878
|
+
}
|
|
57860
57879
|
}
|
|
57861
57880
|
else {
|
|
57862
57881
|
container.classList.remove(StyleControl.Css.inUse);
|
|
@@ -58010,7 +58029,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58010
58029
|
return _this.thumbnailCache.blob.get(response.url);
|
|
58011
58030
|
}
|
|
58012
58031
|
else {
|
|
58013
|
-
// we need the response.clone() to allow reading over body multiple times since response objects are cached
|
|
58032
|
+
// we need the response.clone() to allow reading over body multiple times since response objects are cached
|
|
58014
58033
|
// and can be reused across multiple invocations
|
|
58015
58034
|
var blobPromise = response.clone().blob();
|
|
58016
58035
|
_this.thumbnailCache.blob.set(response.url, blobPromise);
|
|
@@ -58064,7 +58083,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
58064
58083
|
};
|
|
58065
58084
|
StyleControl.prototype.buildCurrStyleBtn = function () {
|
|
58066
58085
|
var selectCurrButton = document.createElement("button");
|
|
58067
|
-
if (this.options.layout
|
|
58086
|
+
if (this.options.layout === "icons") {
|
|
58068
58087
|
selectCurrButton.classList.add(StyleControl.Css.button);
|
|
58069
58088
|
}
|
|
58070
58089
|
else {
|
|
@@ -58083,11 +58102,9 @@ uniform ${precision} ${type} u_${name};
|
|
|
58083
58102
|
StyleControl.prototype.buildStyleOpsGrid = function () {
|
|
58084
58103
|
var _this = this;
|
|
58085
58104
|
var styleOpsGrid = document.createElement("div");
|
|
58086
|
-
|
|
58087
|
-
|
|
58088
|
-
|
|
58089
|
-
}
|
|
58090
|
-
else {
|
|
58105
|
+
var layoutClass = this.options.layout === "icons" ? "icons" : "list";
|
|
58106
|
+
styleOpsGrid.classList.add(StyleControl.Css.styleOptions, layoutClass);
|
|
58107
|
+
if (layoutClass === "list") {
|
|
58091
58108
|
styleOpsGrid.classList.add(StyleControl.Css.dropdown);
|
|
58092
58109
|
}
|
|
58093
58110
|
styleOpsGrid.setAttribute("aria-label", "Style Options");
|
|
@@ -74167,8 +74184,12 @@ uniform ${precision} ${type} u_${name};
|
|
|
74167
74184
|
*/
|
|
74168
74185
|
StyleManager.prototype._transformStyleRequest = function (url, params) {
|
|
74169
74186
|
var _a;
|
|
74187
|
+
var domain = (Url.protoRegEx.test(this.serviceOptions.domain) ?
|
|
74188
|
+
this.serviceOptions.domain.slice(this.serviceOptions.domain.indexOf("\/\/") + 2) :
|
|
74189
|
+
this.serviceOptions.domain)
|
|
74190
|
+
.replace(/\/+$/, "");
|
|
74170
74191
|
if (url.includes(constants.domainPlaceHolder)) {
|
|
74171
|
-
params.url = params.url.replace(constants.domainPlaceHolder,
|
|
74192
|
+
params.url = params.url.replace(constants.domainPlaceHolder, domain);
|
|
74172
74193
|
}
|
|
74173
74194
|
if (url.includes(constants.stylePathHolder)) {
|
|
74174
74195
|
params.url = params.url.replace(constants.stylePathHolder, constants.stylePath);
|
|
@@ -74176,7 +74197,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
74176
74197
|
if (url.includes(constants.styleResourcePlaceholder)) {
|
|
74177
74198
|
params.url = params.url.replace(constants.styleResourcePlaceholder, constants.styleResourcePath);
|
|
74178
74199
|
}
|
|
74179
|
-
if (params.url.toLocaleLowerCase().includes(
|
|
74200
|
+
if (params.url.toLocaleLowerCase().includes(domain.toLocaleLowerCase()) ||
|
|
74180
74201
|
params.url.toLocaleLowerCase().includes(this.serviceOptions.staticAssetsDomain.toLocaleLowerCase())) {
|
|
74181
74202
|
// Only add API version param for Azure maps domain requests
|
|
74182
74203
|
var targetUrl = new URL(params.url);
|