azure-maps-control 2.3.0 → 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 +52 -4
- package/dist/atlas-core-bare.js +52 -4
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +56 -7
- package/dist/atlas-core.js +56 -7
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas.js +56 -7
- package/dist/atlas.min.js +1 -1
- package/package.json +5 -2
- package/thirdpartynotices.txt +0 -0
|
@@ -265,7 +265,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
265
265
|
return Url;
|
|
266
266
|
}());
|
|
267
267
|
|
|
268
|
-
var version = "2.3.
|
|
268
|
+
var version = "2.3.2";
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -10052,7 +10052,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10052
10052
|
zoomInButton.setAttribute("alt", "Zoom In");
|
|
10053
10053
|
zoomInButton.setAttribute("type", "button");
|
|
10054
10054
|
zoomInButton.addEventListener("click", function () {
|
|
10055
|
+
var _a;
|
|
10055
10056
|
map.setCamera({
|
|
10057
|
+
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
10056
10058
|
zoom: map.getCamera().zoom + _this.options.zoomDelta,
|
|
10057
10059
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
10058
10060
|
type: "ease",
|
|
@@ -10069,7 +10071,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10069
10071
|
zoomOutButton.setAttribute("alt", "Zoom Out");
|
|
10070
10072
|
zoomOutButton.setAttribute("type", "button");
|
|
10071
10073
|
zoomOutButton.addEventListener("click", function () {
|
|
10074
|
+
var _a;
|
|
10072
10075
|
map.setCamera({
|
|
10076
|
+
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
10073
10077
|
zoom: map.getCamera().zoom - _this.options.zoomDelta,
|
|
10074
10078
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
10075
10079
|
type: "ease",
|
|
@@ -13184,6 +13188,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13184
13188
|
* @default "auto"
|
|
13185
13189
|
*/
|
|
13186
13190
|
_this.pitchAlignment = "auto";
|
|
13191
|
+
/**
|
|
13192
|
+
* Radial offset of text, in the direction of the symbol's anchor. Useful in combination
|
|
13193
|
+
* with `variableAnchor`, which defaults to using the two-dimensional `offset` if present.
|
|
13194
|
+
* Default: `undefined`
|
|
13195
|
+
* @default undefined
|
|
13196
|
+
*/
|
|
13197
|
+
_this.radialOffset = undefined;
|
|
13187
13198
|
/**
|
|
13188
13199
|
* The amount to rotate the text clockwise in degrees.
|
|
13189
13200
|
* Default `0`
|
|
@@ -13203,6 +13214,25 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13203
13214
|
* @default "auto"
|
|
13204
13215
|
*/
|
|
13205
13216
|
_this.rotationAlignment = "auto";
|
|
13217
|
+
/**
|
|
13218
|
+
* List of potential anchor locations, to increase the chance of placing high-priority
|
|
13219
|
+
* labels on the map. The renderer will attempt to place the label at each location,
|
|
13220
|
+
* in order, before moving onto the next label. Use `justify: "auto"` to choose text
|
|
13221
|
+
* justification based on anchor position. To apply an offset use the `radialOffset` or
|
|
13222
|
+
* two-dimensional `offset` options.
|
|
13223
|
+
* <p>`"center"`: The center of the icon is placed closest to the anchor.</p>
|
|
13224
|
+
* <p>`"left"`: The left side of the icon is placed closest to the anchor.</p>
|
|
13225
|
+
* <p>`"right"`: The right side of the icon is placed closest to the anchor.</p>
|
|
13226
|
+
* <p>`"top"`: The top of the icon is placed closest to the anchor.</p>
|
|
13227
|
+
* <p>`"bottom"`: The bottom of the icon is placed closest to the anchor.</p>
|
|
13228
|
+
* <p>`"top-left"`: The top left corner of the icon is placed closest to the anchor.</p>
|
|
13229
|
+
* <p>`"top-right"`: The top right corner of the icon is placed closest to the anchor.</p>
|
|
13230
|
+
* <p>`"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.</p>
|
|
13231
|
+
* <p>`"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.</p>
|
|
13232
|
+
* Default: `undefined`
|
|
13233
|
+
* @default undefined
|
|
13234
|
+
*/
|
|
13235
|
+
_this.variableAnchor = undefined;
|
|
13206
13236
|
/**
|
|
13207
13237
|
* The size of the font in pixels.
|
|
13208
13238
|
* Must be a number greater or equal to 0.
|
|
@@ -13301,6 +13331,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13301
13331
|
* @default "point"
|
|
13302
13332
|
*/
|
|
13303
13333
|
_this.placement = "point";
|
|
13334
|
+
/**
|
|
13335
|
+
* Sorts features in ascending order based on this value. Features with
|
|
13336
|
+
* lower sort keys are drawn and placed first.
|
|
13337
|
+
* Default `undefined`.
|
|
13338
|
+
* @default undefined
|
|
13339
|
+
*/
|
|
13340
|
+
_this.sortKey = undefined;
|
|
13304
13341
|
/**
|
|
13305
13342
|
* Determines whether overlapping symbols in the same layer are rendered in the order
|
|
13306
13343
|
* that they appear in the data source, or by their y position relative to the viewport.
|
|
@@ -16405,6 +16442,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16405
16442
|
function AccessibleMapDelegate(map) {
|
|
16406
16443
|
var _this = this;
|
|
16407
16444
|
this.addToMap = function () {
|
|
16445
|
+
if (_this.mapViewDesc != null) {
|
|
16446
|
+
// AccessibleMapDelegate is already initialized and added to the map.
|
|
16447
|
+
return;
|
|
16448
|
+
}
|
|
16408
16449
|
_this.initializeMapLiveStateInfo();
|
|
16409
16450
|
_this.initializeMapStyleInfo();
|
|
16410
16451
|
_this.createMapKeyBindingInfo();
|
|
@@ -20784,7 +20825,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20784
20825
|
};
|
|
20785
20826
|
if (!this.serviceOptions.mapConfiguration) {
|
|
20786
20827
|
var ensureAuthentication = this.map.authentication ? this.map.authentication.initialize() : Promise.resolve();
|
|
20787
|
-
newPromise = new HijackablePromise(ensureAuthentication.then(function () { return _this._request(_this.serviceOptions.staticAssetsDomain, constants.stylePath + "/" + constants.styleResourcePath, "StyleDefinitions", {
|
|
20828
|
+
newPromise = new HijackablePromise(ensureAuthentication.then(function () { return _this._request(_this.serviceOptions.staticAssetsDomain, constants.stylePath + "/" + constants.styleResourcePath, "StyleDefinitions", {
|
|
20829
|
+
version: _this.serviceOptions.styleDefinitionsVersion,
|
|
20830
|
+
// add MapControlVersion to make sure we have different local cache between map control versions
|
|
20831
|
+
mcv: version.replace(/\./g, ''),
|
|
20832
|
+
}).then(function (definitions) { return ({
|
|
20788
20833
|
version: isNaN(definitions.version) ? 0 : parseFloat(definitions.version),
|
|
20789
20834
|
defaultConfiguration: definitions.defaultStyle,
|
|
20790
20835
|
configurations: definitions.styles
|
|
@@ -20816,9 +20861,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20816
20861
|
// This is needed for flight testing the 2023-01-01 style version.
|
|
20817
20862
|
styleVersion: definitions.version !== undefined && definitions.version !== null
|
|
20818
20863
|
? definitions.version
|
|
20819
|
-
: _this.serviceOptions.styleDefinitionsVersion
|
|
20864
|
+
: _this.serviceOptions.styleDefinitionsVersion,
|
|
20820
20865
|
// thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
|
|
20821
20866
|
//language: styleOptions.language
|
|
20867
|
+
// add MapControlVersion to make sure we have different local cache between map control versions
|
|
20868
|
+
mcv: version.replace(/\./g, '')
|
|
20822
20869
|
},
|
|
20823
20870
|
protocol: "https"
|
|
20824
20871
|
}).toString(),
|
|
@@ -22519,9 +22566,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22519
22566
|
Map.prototype._rebuildStyle = function (diff) {
|
|
22520
22567
|
if (diff === void 0) { diff = true; }
|
|
22521
22568
|
return __awaiter$4(this, void 0, void 0, function () {
|
|
22569
|
+
var _this = this;
|
|
22522
22570
|
return __generator$4(this, function (_a) {
|
|
22523
22571
|
this.styles.setStyle(this.styleOptions, diff);
|
|
22524
|
-
this.imageSprite._restoreImages();
|
|
22572
|
+
this.events.addOnce("stylechanged", function () { return _this.imageSprite._restoreImages(); });
|
|
22525
22573
|
return [2 /*return*/];
|
|
22526
22574
|
});
|
|
22527
22575
|
});
|
package/dist/atlas-core-bare.js
CHANGED
|
@@ -265,7 +265,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
265
265
|
return Url;
|
|
266
266
|
}());
|
|
267
267
|
|
|
268
|
-
var version = "2.3.
|
|
268
|
+
var version = "2.3.2";
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -10052,7 +10052,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10052
10052
|
zoomInButton.setAttribute("alt", "Zoom In");
|
|
10053
10053
|
zoomInButton.setAttribute("type", "button");
|
|
10054
10054
|
zoomInButton.addEventListener("click", function () {
|
|
10055
|
+
var _a;
|
|
10055
10056
|
map.setCamera({
|
|
10057
|
+
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
10056
10058
|
zoom: map.getCamera().zoom + _this.options.zoomDelta,
|
|
10057
10059
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
10058
10060
|
type: "ease",
|
|
@@ -10069,7 +10071,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
10069
10071
|
zoomOutButton.setAttribute("alt", "Zoom Out");
|
|
10070
10072
|
zoomOutButton.setAttribute("type", "button");
|
|
10071
10073
|
zoomOutButton.addEventListener("click", function () {
|
|
10074
|
+
var _a;
|
|
10072
10075
|
map.setCamera({
|
|
10076
|
+
maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
|
|
10073
10077
|
zoom: map.getCamera().zoom - _this.options.zoomDelta,
|
|
10074
10078
|
duration: ZoomControl.ZOOM_DURATION_MS,
|
|
10075
10079
|
type: "ease",
|
|
@@ -13184,6 +13188,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13184
13188
|
* @default "auto"
|
|
13185
13189
|
*/
|
|
13186
13190
|
_this.pitchAlignment = "auto";
|
|
13191
|
+
/**
|
|
13192
|
+
* Radial offset of text, in the direction of the symbol's anchor. Useful in combination
|
|
13193
|
+
* with `variableAnchor`, which defaults to using the two-dimensional `offset` if present.
|
|
13194
|
+
* Default: `undefined`
|
|
13195
|
+
* @default undefined
|
|
13196
|
+
*/
|
|
13197
|
+
_this.radialOffset = undefined;
|
|
13187
13198
|
/**
|
|
13188
13199
|
* The amount to rotate the text clockwise in degrees.
|
|
13189
13200
|
* Default `0`
|
|
@@ -13203,6 +13214,25 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13203
13214
|
* @default "auto"
|
|
13204
13215
|
*/
|
|
13205
13216
|
_this.rotationAlignment = "auto";
|
|
13217
|
+
/**
|
|
13218
|
+
* List of potential anchor locations, to increase the chance of placing high-priority
|
|
13219
|
+
* labels on the map. The renderer will attempt to place the label at each location,
|
|
13220
|
+
* in order, before moving onto the next label. Use `justify: "auto"` to choose text
|
|
13221
|
+
* justification based on anchor position. To apply an offset use the `radialOffset` or
|
|
13222
|
+
* two-dimensional `offset` options.
|
|
13223
|
+
* <p>`"center"`: The center of the icon is placed closest to the anchor.</p>
|
|
13224
|
+
* <p>`"left"`: The left side of the icon is placed closest to the anchor.</p>
|
|
13225
|
+
* <p>`"right"`: The right side of the icon is placed closest to the anchor.</p>
|
|
13226
|
+
* <p>`"top"`: The top of the icon is placed closest to the anchor.</p>
|
|
13227
|
+
* <p>`"bottom"`: The bottom of the icon is placed closest to the anchor.</p>
|
|
13228
|
+
* <p>`"top-left"`: The top left corner of the icon is placed closest to the anchor.</p>
|
|
13229
|
+
* <p>`"top-right"`: The top right corner of the icon is placed closest to the anchor.</p>
|
|
13230
|
+
* <p>`"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.</p>
|
|
13231
|
+
* <p>`"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.</p>
|
|
13232
|
+
* Default: `undefined`
|
|
13233
|
+
* @default undefined
|
|
13234
|
+
*/
|
|
13235
|
+
_this.variableAnchor = undefined;
|
|
13206
13236
|
/**
|
|
13207
13237
|
* The size of the font in pixels.
|
|
13208
13238
|
* Must be a number greater or equal to 0.
|
|
@@ -13301,6 +13331,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
13301
13331
|
* @default "point"
|
|
13302
13332
|
*/
|
|
13303
13333
|
_this.placement = "point";
|
|
13334
|
+
/**
|
|
13335
|
+
* Sorts features in ascending order based on this value. Features with
|
|
13336
|
+
* lower sort keys are drawn and placed first.
|
|
13337
|
+
* Default `undefined`.
|
|
13338
|
+
* @default undefined
|
|
13339
|
+
*/
|
|
13340
|
+
_this.sortKey = undefined;
|
|
13304
13341
|
/**
|
|
13305
13342
|
* Determines whether overlapping symbols in the same layer are rendered in the order
|
|
13306
13343
|
* that they appear in the data source, or by their y position relative to the viewport.
|
|
@@ -17800,6 +17837,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
17800
17837
|
function AccessibleMapDelegate(map) {
|
|
17801
17838
|
var _this = this;
|
|
17802
17839
|
this.addToMap = function () {
|
|
17840
|
+
if (_this.mapViewDesc != null) {
|
|
17841
|
+
// AccessibleMapDelegate is already initialized and added to the map.
|
|
17842
|
+
return;
|
|
17843
|
+
}
|
|
17803
17844
|
_this.initializeMapLiveStateInfo();
|
|
17804
17845
|
_this.initializeMapStyleInfo();
|
|
17805
17846
|
_this.createMapKeyBindingInfo();
|
|
@@ -28503,7 +28544,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
28503
28544
|
};
|
|
28504
28545
|
if (!this.serviceOptions.mapConfiguration) {
|
|
28505
28546
|
var ensureAuthentication = this.map.authentication ? this.map.authentication.initialize() : Promise.resolve();
|
|
28506
|
-
newPromise = new HijackablePromise(ensureAuthentication.then(function () { return _this._request(_this.serviceOptions.staticAssetsDomain, constants.stylePath + "/" + constants.styleResourcePath, "StyleDefinitions", {
|
|
28547
|
+
newPromise = new HijackablePromise(ensureAuthentication.then(function () { return _this._request(_this.serviceOptions.staticAssetsDomain, constants.stylePath + "/" + constants.styleResourcePath, "StyleDefinitions", {
|
|
28548
|
+
version: _this.serviceOptions.styleDefinitionsVersion,
|
|
28549
|
+
// add MapControlVersion to make sure we have different local cache between map control versions
|
|
28550
|
+
mcv: version.replace(/\./g, ''),
|
|
28551
|
+
}).then(function (definitions) { return ({
|
|
28507
28552
|
version: isNaN(definitions.version) ? 0 : parseFloat(definitions.version),
|
|
28508
28553
|
defaultConfiguration: definitions.defaultStyle,
|
|
28509
28554
|
configurations: definitions.styles
|
|
@@ -28535,9 +28580,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
28535
28580
|
// This is needed for flight testing the 2023-01-01 style version.
|
|
28536
28581
|
styleVersion: definitions.version !== undefined && definitions.version !== null
|
|
28537
28582
|
? definitions.version
|
|
28538
|
-
: _this.serviceOptions.styleDefinitionsVersion
|
|
28583
|
+
: _this.serviceOptions.styleDefinitionsVersion,
|
|
28539
28584
|
// thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
|
|
28540
28585
|
//language: styleOptions.language
|
|
28586
|
+
// add MapControlVersion to make sure we have different local cache between map control versions
|
|
28587
|
+
mcv: version.replace(/\./g, '')
|
|
28541
28588
|
},
|
|
28542
28589
|
protocol: "https"
|
|
28543
28590
|
}).toString(),
|
|
@@ -30244,9 +30291,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30244
30291
|
Map.prototype._rebuildStyle = function (diff) {
|
|
30245
30292
|
if (diff === void 0) { diff = true; }
|
|
30246
30293
|
return __awaiter$5(this, void 0, void 0, function () {
|
|
30294
|
+
var _this = this;
|
|
30247
30295
|
return __generator$5(this, function (_a) {
|
|
30248
30296
|
this.styles.setStyle(this.styleOptions, diff);
|
|
30249
|
-
this.imageSprite._restoreImages();
|
|
30297
|
+
this.events.addOnce("stylechanged", function () { return _this.imageSprite._restoreImages(); });
|
|
30250
30298
|
return [2 /*return*/];
|
|
30251
30299
|
});
|
|
30252
30300
|
});
|