azure-maps-control 2.3.1 → 2.3.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/dist/atlas-core-bare-snr.js +50 -3
- package/dist/atlas-core-bare.js +50 -3
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +50 -3
- package/dist/atlas-core.js +50 -3
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas.js +50 -3
- package/dist/atlas.min.js +1 -1
- package/package.json +1 -1
package/dist/atlas-core-snr.js
CHANGED
|
@@ -43477,7 +43477,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43477
43477
|
return Url;
|
|
43478
43478
|
}());
|
|
43479
43479
|
|
|
43480
|
-
var version = "2.3.
|
|
43480
|
+
var version = "2.3.2";
|
|
43481
43481
|
|
|
43482
43482
|
/**
|
|
43483
43483
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -53246,7 +53246,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53246
53246
|
zoomInButton.setAttribute("alt", "Zoom In");
|
|
53247
53247
|
zoomInButton.setAttribute("type", "button");
|
|
53248
53248
|
zoomInButton.addEventListener("click", function () {
|
|
53249
|
+
var _a;
|
|
53249
53250
|
map.setCamera({
|
|
53251
|
+
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
53250
53252
|
zoom: map.getCamera().zoom + _this.options.zoomDelta,
|
|
53251
53253
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
53252
53254
|
type: "ease",
|
|
@@ -53263,7 +53265,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53263
53265
|
zoomOutButton.setAttribute("alt", "Zoom Out");
|
|
53264
53266
|
zoomOutButton.setAttribute("type", "button");
|
|
53265
53267
|
zoomOutButton.addEventListener("click", function () {
|
|
53268
|
+
var _a;
|
|
53266
53269
|
map.setCamera({
|
|
53270
|
+
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
53267
53271
|
zoom: map.getCamera().zoom - _this.options.zoomDelta,
|
|
53268
53272
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
53269
53273
|
type: "ease",
|
|
@@ -56378,6 +56382,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
56378
56382
|
* @default "auto"
|
|
56379
56383
|
*/
|
|
56380
56384
|
_this.pitchAlignment = "auto";
|
|
56385
|
+
/**
|
|
56386
|
+
* Radial offset of text, in the direction of the symbol's anchor. Useful in combination
|
|
56387
|
+
* with `variableAnchor`, which defaults to using the two-dimensional `offset` if present.
|
|
56388
|
+
* Default: `undefined`
|
|
56389
|
+
* @default undefined
|
|
56390
|
+
*/
|
|
56391
|
+
_this.radialOffset = undefined;
|
|
56381
56392
|
/**
|
|
56382
56393
|
* The amount to rotate the text clockwise in degrees.
|
|
56383
56394
|
* Default `0`
|
|
@@ -56397,6 +56408,25 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
56397
56408
|
* @default "auto"
|
|
56398
56409
|
*/
|
|
56399
56410
|
_this.rotationAlignment = "auto";
|
|
56411
|
+
/**
|
|
56412
|
+
* List of potential anchor locations, to increase the chance of placing high-priority
|
|
56413
|
+
* labels on the map. The renderer will attempt to place the label at each location,
|
|
56414
|
+
* in order, before moving onto the next label. Use `justify: "auto"` to choose text
|
|
56415
|
+
* justification based on anchor position. To apply an offset use the `radialOffset` or
|
|
56416
|
+
* two-dimensional `offset` options.
|
|
56417
|
+
* <p>`"center"`: The center of the icon is placed closest to the anchor.</p>
|
|
56418
|
+
* <p>`"left"`: The left side of the icon is placed closest to the anchor.</p>
|
|
56419
|
+
* <p>`"right"`: The right side of the icon is placed closest to the anchor.</p>
|
|
56420
|
+
* <p>`"top"`: The top of the icon is placed closest to the anchor.</p>
|
|
56421
|
+
* <p>`"bottom"`: The bottom of the icon is placed closest to the anchor.</p>
|
|
56422
|
+
* <p>`"top-left"`: The top left corner of the icon is placed closest to the anchor.</p>
|
|
56423
|
+
* <p>`"top-right"`: The top right corner of the icon is placed closest to the anchor.</p>
|
|
56424
|
+
* <p>`"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.</p>
|
|
56425
|
+
* <p>`"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.</p>
|
|
56426
|
+
* Default: `undefined`
|
|
56427
|
+
* @default undefined
|
|
56428
|
+
*/
|
|
56429
|
+
_this.variableAnchor = undefined;
|
|
56400
56430
|
/**
|
|
56401
56431
|
* The size of the font in pixels.
|
|
56402
56432
|
* Must be a number greater or equal to 0.
|
|
@@ -56495,6 +56525,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
56495
56525
|
* @default "point"
|
|
56496
56526
|
*/
|
|
56497
56527
|
_this.placement = "point";
|
|
56528
|
+
/**
|
|
56529
|
+
* Sorts features in ascending order based on this value. Features with
|
|
56530
|
+
* lower sort keys are drawn and placed first.
|
|
56531
|
+
* Default `undefined`.
|
|
56532
|
+
* @default undefined
|
|
56533
|
+
*/
|
|
56534
|
+
_this.sortKey = undefined;
|
|
56498
56535
|
/**
|
|
56499
56536
|
* Determines whether overlapping symbols in the same layer are rendered in the order
|
|
56500
56537
|
* that they appear in the data source, or by their y position relative to the viewport.
|
|
@@ -59599,6 +59636,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
59599
59636
|
function AccessibleMapDelegate(map) {
|
|
59600
59637
|
var _this = this;
|
|
59601
59638
|
this.addToMap = function () {
|
|
59639
|
+
if (_this.mapViewDesc != null) {
|
|
59640
|
+
// AccessibleMapDelegate is already initialized and added to the map.
|
|
59641
|
+
return;
|
|
59642
|
+
}
|
|
59602
59643
|
_this.initializeMapLiveStateInfo();
|
|
59603
59644
|
_this.initializeMapStyleInfo();
|
|
59604
59645
|
_this.createMapKeyBindingInfo();
|
|
@@ -63978,7 +64019,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
63978
64019
|
};
|
|
63979
64020
|
if (!this.serviceOptions.mapConfiguration) {
|
|
63980
64021
|
var ensureAuthentication = this.map.authentication ? this.map.authentication.initialize() : Promise.resolve();
|
|
63981
|
-
newPromise = new HijackablePromise(ensureAuthentication.then(function () { return _this._request(_this.serviceOptions.staticAssetsDomain, constants.stylePath + "/" + constants.styleResourcePath, "StyleDefinitions", {
|
|
64022
|
+
newPromise = new HijackablePromise(ensureAuthentication.then(function () { return _this._request(_this.serviceOptions.staticAssetsDomain, constants.stylePath + "/" + constants.styleResourcePath, "StyleDefinitions", {
|
|
64023
|
+
version: _this.serviceOptions.styleDefinitionsVersion,
|
|
64024
|
+
// add MapControlVersion to make sure we have different local cache between map control versions
|
|
64025
|
+
mcv: version.replace(/\./g, ''),
|
|
64026
|
+
}).then(function (definitions) { return ({
|
|
63982
64027
|
version: isNaN(definitions.version) ? 0 : parseFloat(definitions.version),
|
|
63983
64028
|
defaultConfiguration: definitions.defaultStyle,
|
|
63984
64029
|
configurations: definitions.styles
|
|
@@ -64010,9 +64055,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
64010
64055
|
// This is needed for flight testing the 2023-01-01 style version.
|
|
64011
64056
|
styleVersion: definitions.version !== undefined && definitions.version !== null
|
|
64012
64057
|
? definitions.version
|
|
64013
|
-
: _this.serviceOptions.styleDefinitionsVersion
|
|
64058
|
+
: _this.serviceOptions.styleDefinitionsVersion,
|
|
64014
64059
|
// thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
|
|
64015
64060
|
//language: styleOptions.language
|
|
64061
|
+
// add MapControlVersion to make sure we have different local cache between map control versions
|
|
64062
|
+
mcv: version.replace(/\./g, '')
|
|
64016
64063
|
},
|
|
64017
64064
|
protocol: "https"
|
|
64018
64065
|
}).toString(),
|
package/dist/atlas-core.js
CHANGED
|
@@ -43477,7 +43477,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43477
43477
|
return Url;
|
|
43478
43478
|
}());
|
|
43479
43479
|
|
|
43480
|
-
var version = "2.3.
|
|
43480
|
+
var version = "2.3.2";
|
|
43481
43481
|
|
|
43482
43482
|
/**
|
|
43483
43483
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -53246,7 +53246,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53246
53246
|
zoomInButton.setAttribute("alt", "Zoom In");
|
|
53247
53247
|
zoomInButton.setAttribute("type", "button");
|
|
53248
53248
|
zoomInButton.addEventListener("click", function () {
|
|
53249
|
+
var _a;
|
|
53249
53250
|
map.setCamera({
|
|
53251
|
+
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
53250
53252
|
zoom: map.getCamera().zoom + _this.options.zoomDelta,
|
|
53251
53253
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
53252
53254
|
type: "ease",
|
|
@@ -53263,7 +53265,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
53263
53265
|
zoomOutButton.setAttribute("alt", "Zoom Out");
|
|
53264
53266
|
zoomOutButton.setAttribute("type", "button");
|
|
53265
53267
|
zoomOutButton.addEventListener("click", function () {
|
|
53268
|
+
var _a;
|
|
53266
53269
|
map.setCamera({
|
|
53270
|
+
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
53267
53271
|
zoom: map.getCamera().zoom - _this.options.zoomDelta,
|
|
53268
53272
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
53269
53273
|
type: "ease",
|
|
@@ -56378,6 +56382,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
56378
56382
|
* @default "auto"
|
|
56379
56383
|
*/
|
|
56380
56384
|
_this.pitchAlignment = "auto";
|
|
56385
|
+
/**
|
|
56386
|
+
* Radial offset of text, in the direction of the symbol's anchor. Useful in combination
|
|
56387
|
+
* with `variableAnchor`, which defaults to using the two-dimensional `offset` if present.
|
|
56388
|
+
* Default: `undefined`
|
|
56389
|
+
* @default undefined
|
|
56390
|
+
*/
|
|
56391
|
+
_this.radialOffset = undefined;
|
|
56381
56392
|
/**
|
|
56382
56393
|
* The amount to rotate the text clockwise in degrees.
|
|
56383
56394
|
* Default `0`
|
|
@@ -56397,6 +56408,25 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
56397
56408
|
* @default "auto"
|
|
56398
56409
|
*/
|
|
56399
56410
|
_this.rotationAlignment = "auto";
|
|
56411
|
+
/**
|
|
56412
|
+
* List of potential anchor locations, to increase the chance of placing high-priority
|
|
56413
|
+
* labels on the map. The renderer will attempt to place the label at each location,
|
|
56414
|
+
* in order, before moving onto the next label. Use `justify: "auto"` to choose text
|
|
56415
|
+
* justification based on anchor position. To apply an offset use the `radialOffset` or
|
|
56416
|
+
* two-dimensional `offset` options.
|
|
56417
|
+
* <p>`"center"`: The center of the icon is placed closest to the anchor.</p>
|
|
56418
|
+
* <p>`"left"`: The left side of the icon is placed closest to the anchor.</p>
|
|
56419
|
+
* <p>`"right"`: The right side of the icon is placed closest to the anchor.</p>
|
|
56420
|
+
* <p>`"top"`: The top of the icon is placed closest to the anchor.</p>
|
|
56421
|
+
* <p>`"bottom"`: The bottom of the icon is placed closest to the anchor.</p>
|
|
56422
|
+
* <p>`"top-left"`: The top left corner of the icon is placed closest to the anchor.</p>
|
|
56423
|
+
* <p>`"top-right"`: The top right corner of the icon is placed closest to the anchor.</p>
|
|
56424
|
+
* <p>`"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.</p>
|
|
56425
|
+
* <p>`"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.</p>
|
|
56426
|
+
* Default: `undefined`
|
|
56427
|
+
* @default undefined
|
|
56428
|
+
*/
|
|
56429
|
+
_this.variableAnchor = undefined;
|
|
56400
56430
|
/**
|
|
56401
56431
|
* The size of the font in pixels.
|
|
56402
56432
|
* Must be a number greater or equal to 0.
|
|
@@ -56495,6 +56525,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
56495
56525
|
* @default "point"
|
|
56496
56526
|
*/
|
|
56497
56527
|
_this.placement = "point";
|
|
56528
|
+
/**
|
|
56529
|
+
* Sorts features in ascending order based on this value. Features with
|
|
56530
|
+
* lower sort keys are drawn and placed first.
|
|
56531
|
+
* Default `undefined`.
|
|
56532
|
+
* @default undefined
|
|
56533
|
+
*/
|
|
56534
|
+
_this.sortKey = undefined;
|
|
56498
56535
|
/**
|
|
56499
56536
|
* Determines whether overlapping symbols in the same layer are rendered in the order
|
|
56500
56537
|
* that they appear in the data source, or by their y position relative to the viewport.
|
|
@@ -60994,6 +61031,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
60994
61031
|
function AccessibleMapDelegate(map) {
|
|
60995
61032
|
var _this = this;
|
|
60996
61033
|
this.addToMap = function () {
|
|
61034
|
+
if (_this.mapViewDesc != null) {
|
|
61035
|
+
// AccessibleMapDelegate is already initialized and added to the map.
|
|
61036
|
+
return;
|
|
61037
|
+
}
|
|
60997
61038
|
_this.initializeMapLiveStateInfo();
|
|
60998
61039
|
_this.initializeMapStyleInfo();
|
|
60999
61040
|
_this.createMapKeyBindingInfo();
|
|
@@ -71697,7 +71738,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
71697
71738
|
};
|
|
71698
71739
|
if (!this.serviceOptions.mapConfiguration) {
|
|
71699
71740
|
var ensureAuthentication = this.map.authentication ? this.map.authentication.initialize() : Promise.resolve();
|
|
71700
|
-
newPromise = new HijackablePromise(ensureAuthentication.then(function () { return _this._request(_this.serviceOptions.staticAssetsDomain, constants.stylePath + "/" + constants.styleResourcePath, "StyleDefinitions", {
|
|
71741
|
+
newPromise = new HijackablePromise(ensureAuthentication.then(function () { return _this._request(_this.serviceOptions.staticAssetsDomain, constants.stylePath + "/" + constants.styleResourcePath, "StyleDefinitions", {
|
|
71742
|
+
version: _this.serviceOptions.styleDefinitionsVersion,
|
|
71743
|
+
// add MapControlVersion to make sure we have different local cache between map control versions
|
|
71744
|
+
mcv: version.replace(/\./g, ''),
|
|
71745
|
+
}).then(function (definitions) { return ({
|
|
71701
71746
|
version: isNaN(definitions.version) ? 0 : parseFloat(definitions.version),
|
|
71702
71747
|
defaultConfiguration: definitions.defaultStyle,
|
|
71703
71748
|
configurations: definitions.styles
|
|
@@ -71729,9 +71774,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
71729
71774
|
// This is needed for flight testing the 2023-01-01 style version.
|
|
71730
71775
|
styleVersion: definitions.version !== undefined && definitions.version !== null
|
|
71731
71776
|
? definitions.version
|
|
71732
|
-
: _this.serviceOptions.styleDefinitionsVersion
|
|
71777
|
+
: _this.serviceOptions.styleDefinitionsVersion,
|
|
71733
71778
|
// thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
|
|
71734
71779
|
//language: styleOptions.language
|
|
71780
|
+
// add MapControlVersion to make sure we have different local cache between map control versions
|
|
71781
|
+
mcv: version.replace(/\./g, '')
|
|
71735
71782
|
},
|
|
71736
71783
|
protocol: "https"
|
|
71737
71784
|
}).toString(),
|