azure-maps-control 3.6.0 → 3.7.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 +9 -13
- package/dist/atlas-core-bare.js +9 -13
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +9 -13
- package/dist/atlas-core.js +9 -13
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas-esm.js +9 -13
- package/dist/atlas-esm.min.js +1 -1
- package/dist/atlas.js +9 -13
- package/dist/atlas.min.js +1 -1
- package/package.json +3 -3
- package/typings/index.d.ts +4 -5
package/dist/atlas-core-snr.js
CHANGED
|
@@ -52079,6 +52079,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
52079
52079
|
* A localized version of `"Detour"`.
|
|
52080
52080
|
*/
|
|
52081
52081
|
this.Detour = "Detour";
|
|
52082
|
+
/**
|
|
52083
|
+
* A localized version of `"Dummy"`.
|
|
52084
|
+
*/
|
|
52085
|
+
this.Dummy = "Dummy";
|
|
52082
52086
|
}
|
|
52083
52087
|
return LocalizedStrings;
|
|
52084
52088
|
}());
|
|
@@ -52221,7 +52225,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52221
52225
|
return UserAgent;
|
|
52222
52226
|
}());
|
|
52223
52227
|
|
|
52224
|
-
var version = "3.
|
|
52228
|
+
var version = "3.7.1";
|
|
52225
52229
|
|
|
52226
52230
|
/**
|
|
52227
52231
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -63244,9 +63248,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63244
63248
|
zoomInButton.setAttribute("alt", "Zoom In");
|
|
63245
63249
|
zoomInButton.setAttribute("type", "button");
|
|
63246
63250
|
zoomInButton.addEventListener("click", function () {
|
|
63247
|
-
var _a;
|
|
63248
63251
|
map.setCamera({
|
|
63249
|
-
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
63250
63252
|
zoom: map.getCamera().zoom + _this.options.zoomDelta,
|
|
63251
63253
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
63252
63254
|
type: "ease",
|
|
@@ -63263,9 +63265,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63263
63265
|
zoomOutButton.setAttribute("alt", "Zoom Out");
|
|
63264
63266
|
zoomOutButton.setAttribute("type", "button");
|
|
63265
63267
|
zoomOutButton.addEventListener("click", function () {
|
|
63266
|
-
var _a;
|
|
63267
63268
|
map.setCamera({
|
|
63268
|
-
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
63269
63269
|
zoom: map.getCamera().zoom - _this.options.zoomDelta,
|
|
63270
63270
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
63271
63271
|
type: "ease",
|
|
@@ -72241,7 +72241,6 @@ uniform ${precision} ${type} u_${name};
|
|
|
72241
72241
|
_this.pitch = 0;
|
|
72242
72242
|
/**
|
|
72243
72243
|
* 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`.
|
|
72244
|
-
* Setting `minZoom` below 1 may result in an empty map when the zoom level is less than 1.
|
|
72245
72244
|
* Default `1`.
|
|
72246
72245
|
* @default 1
|
|
72247
72246
|
*/
|
|
@@ -74558,9 +74557,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
74558
74557
|
_this.events.invoke("error", errorData);
|
|
74559
74558
|
});
|
|
74560
74559
|
// --> Set initial camera state of map
|
|
74561
|
-
_this.setCamera(__assign(__assign({
|
|
74562
|
-
// Default minZoom to ensure the map doesn't zoom out to unsupported zoom levels.
|
|
74563
|
-
minZoom: 1 }, options), { type: "jump", duration: 0 }));
|
|
74560
|
+
_this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
|
|
74564
74561
|
_this.flowDelegate = new FlowServiceDelegate(_this);
|
|
74565
74562
|
_this.accessibleMapDelegate = new AccessibleMapDelegate(_this);
|
|
74566
74563
|
_this.userInteractionDelegate = new UserInteractionDelegate(_this, options);
|
|
@@ -74710,9 +74707,6 @@ uniform ${precision} ${type} u_${name};
|
|
|
74710
74707
|
pitch: cameraOptions.pitch,
|
|
74711
74708
|
around: undefined
|
|
74712
74709
|
};
|
|
74713
|
-
if (cameraOptions.minZoom < 1) {
|
|
74714
|
-
console.warn("Setting minZoom below 1 may result in an empty map when the zoom level is less than 1.");
|
|
74715
|
-
}
|
|
74716
74710
|
this.map.setMinZoom(cameraOptions.minZoom);
|
|
74717
74711
|
this.map.setMaxZoom(cameraOptions.maxZoom);
|
|
74718
74712
|
if (cameraOptions.minPitch) {
|
|
@@ -74763,6 +74757,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
74763
74757
|
* Returns the camera's current properties.
|
|
74764
74758
|
*/
|
|
74765
74759
|
Map.prototype.getCamera = function () {
|
|
74760
|
+
var _a;
|
|
74766
74761
|
var southWest = this.map.getBounds().getSouthWest().toArray();
|
|
74767
74762
|
var northEast = this.map.getBounds().getNorthEast().toArray();
|
|
74768
74763
|
var cameraOptions = {
|
|
@@ -74772,7 +74767,8 @@ uniform ${precision} ${type} u_${name};
|
|
|
74772
74767
|
pitch: this.map.getPitch(),
|
|
74773
74768
|
bounds: new BoundingBox(southWest, northEast),
|
|
74774
74769
|
minZoom: this.map.getMinZoom(),
|
|
74775
|
-
maxZoom: this.map.getMaxZoom()
|
|
74770
|
+
maxZoom: this.map.getMaxZoom(),
|
|
74771
|
+
maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
74776
74772
|
};
|
|
74777
74773
|
return cameraOptions;
|
|
74778
74774
|
};
|
package/dist/atlas-core.js
CHANGED
|
@@ -52079,6 +52079,10 @@ uniform ${precision} ${type} u_${name};
|
|
|
52079
52079
|
* A localized version of `"Detour"`.
|
|
52080
52080
|
*/
|
|
52081
52081
|
this.Detour = "Detour";
|
|
52082
|
+
/**
|
|
52083
|
+
* A localized version of `"Dummy"`.
|
|
52084
|
+
*/
|
|
52085
|
+
this.Dummy = "Dummy";
|
|
52082
52086
|
}
|
|
52083
52087
|
return LocalizedStrings;
|
|
52084
52088
|
}());
|
|
@@ -52221,7 +52225,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
52221
52225
|
return UserAgent;
|
|
52222
52226
|
}());
|
|
52223
52227
|
|
|
52224
|
-
var version$2 = "3.
|
|
52228
|
+
var version$2 = "3.7.1";
|
|
52225
52229
|
|
|
52226
52230
|
/**
|
|
52227
52231
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -63244,9 +63248,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63244
63248
|
zoomInButton.setAttribute("alt", "Zoom In");
|
|
63245
63249
|
zoomInButton.setAttribute("type", "button");
|
|
63246
63250
|
zoomInButton.addEventListener("click", function () {
|
|
63247
|
-
var _a;
|
|
63248
63251
|
map.setCamera({
|
|
63249
|
-
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
63250
63252
|
zoom: map.getCamera().zoom + _this.options.zoomDelta,
|
|
63251
63253
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
63252
63254
|
type: "ease",
|
|
@@ -63263,9 +63265,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
63263
63265
|
zoomOutButton.setAttribute("alt", "Zoom Out");
|
|
63264
63266
|
zoomOutButton.setAttribute("type", "button");
|
|
63265
63267
|
zoomOutButton.addEventListener("click", function () {
|
|
63266
|
-
var _a;
|
|
63267
63268
|
map.setCamera({
|
|
63268
|
-
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
63269
63269
|
zoom: map.getCamera().zoom - _this.options.zoomDelta,
|
|
63270
63270
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
63271
63271
|
type: "ease",
|
|
@@ -95902,7 +95902,6 @@ uniform ${precision} ${type} u_${name};
|
|
|
95902
95902
|
_this.pitch = 0;
|
|
95903
95903
|
/**
|
|
95904
95904
|
* 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`.
|
|
95905
|
-
* Setting `minZoom` below 1 may result in an empty map when the zoom level is less than 1.
|
|
95906
95905
|
* Default `1`.
|
|
95907
95906
|
* @default 1
|
|
95908
95907
|
*/
|
|
@@ -98223,9 +98222,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
98223
98222
|
_this.events.invoke("error", errorData);
|
|
98224
98223
|
});
|
|
98225
98224
|
// --> Set initial camera state of map
|
|
98226
|
-
_this.setCamera(__assign(__assign({
|
|
98227
|
-
// Default minZoom to ensure the map doesn't zoom out to unsupported zoom levels.
|
|
98228
|
-
minZoom: 1 }, options), { type: "jump", duration: 0 }));
|
|
98225
|
+
_this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
|
|
98229
98226
|
// Add delegates to map
|
|
98230
98227
|
{
|
|
98231
98228
|
_this.incidentDelegate = new IncidentServiceDelegate(_this);
|
|
@@ -98377,9 +98374,6 @@ uniform ${precision} ${type} u_${name};
|
|
|
98377
98374
|
pitch: cameraOptions.pitch,
|
|
98378
98375
|
around: undefined
|
|
98379
98376
|
};
|
|
98380
|
-
if (cameraOptions.minZoom < 1) {
|
|
98381
|
-
console.warn("Setting minZoom below 1 may result in an empty map when the zoom level is less than 1.");
|
|
98382
|
-
}
|
|
98383
98377
|
this.map.setMinZoom(cameraOptions.minZoom);
|
|
98384
98378
|
this.map.setMaxZoom(cameraOptions.maxZoom);
|
|
98385
98379
|
if (cameraOptions.minPitch) {
|
|
@@ -98430,6 +98424,7 @@ uniform ${precision} ${type} u_${name};
|
|
|
98430
98424
|
* Returns the camera's current properties.
|
|
98431
98425
|
*/
|
|
98432
98426
|
Map.prototype.getCamera = function () {
|
|
98427
|
+
var _a;
|
|
98433
98428
|
var southWest = this.map.getBounds().getSouthWest().toArray();
|
|
98434
98429
|
var northEast = this.map.getBounds().getNorthEast().toArray();
|
|
98435
98430
|
var cameraOptions = {
|
|
@@ -98439,7 +98434,8 @@ uniform ${precision} ${type} u_${name};
|
|
|
98439
98434
|
pitch: this.map.getPitch(),
|
|
98440
98435
|
bounds: new BoundingBox(southWest, northEast),
|
|
98441
98436
|
minZoom: this.map.getMinZoom(),
|
|
98442
|
-
maxZoom: this.map.getMaxZoom()
|
|
98437
|
+
maxZoom: this.map.getMaxZoom(),
|
|
98438
|
+
maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
98443
98439
|
};
|
|
98444
98440
|
return cameraOptions;
|
|
98445
98441
|
};
|