azure-maps-control 2.3.1 → 2.3.3
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 +60 -13
- package/dist/atlas-core-bare.js +63 -13
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +60 -13
- package/dist/atlas-core.js +63 -13
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas.js +63 -13
- package/dist/atlas.min.js +1 -1
- package/package.json +1 -1
package/dist/atlas.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.3";
|
|
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.
|
|
@@ -71175,6 +71212,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
71175
71212
|
function AccessibleMapDelegate(map) {
|
|
71176
71213
|
var _this = this;
|
|
71177
71214
|
this.addToMap = function () {
|
|
71215
|
+
if (_this.mapViewDesc != null) {
|
|
71216
|
+
// AccessibleMapDelegate is already initialized and added to the map.
|
|
71217
|
+
return;
|
|
71218
|
+
}
|
|
71178
71219
|
_this.initializeMapLiveStateInfo();
|
|
71179
71220
|
_this.initializeMapStyleInfo();
|
|
71180
71221
|
_this.createMapKeyBindingInfo();
|
|
@@ -75310,6 +75351,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
75310
75351
|
_this.reloadAttribution();
|
|
75311
75352
|
});
|
|
75312
75353
|
};
|
|
75354
|
+
/**
|
|
75355
|
+
* @internal
|
|
75356
|
+
*/
|
|
75313
75357
|
this.reloadAttribution = function () {
|
|
75314
75358
|
var sources = _this.getMapStyleVisibleSources();
|
|
75315
75359
|
// keep track of all rules as well as registered to determine redundant rules that won't get applied.
|
|
@@ -81750,6 +81794,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
81750
81794
|
});
|
|
81751
81795
|
// Make the deferred layers visible once the map instance is fully loaded.
|
|
81752
81796
|
_this._progressiveLoadingState.pendingVisibilityChange = function () {
|
|
81797
|
+
var _a;
|
|
81753
81798
|
// Release the callback.
|
|
81754
81799
|
_this._progressiveLoadingState.pendingVisibilityChange = null;
|
|
81755
81800
|
// Bail out the callback once map style has changed.
|
|
@@ -81763,6 +81808,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
81763
81808
|
layer.layout.visibility = 'visible';
|
|
81764
81809
|
map.setLayoutProperty(layer.id, 'visibility', 'visible');
|
|
81765
81810
|
});
|
|
81811
|
+
// Reload attribution after the deferred layers are visible.
|
|
81812
|
+
(_a = _this.map.copyrightDelegate) === null || _a === void 0 ? void 0 : _a.reloadAttribution();
|
|
81766
81813
|
};
|
|
81767
81814
|
_this.map.events.addOnce('load', _this._progressiveLoadingState.pendingVisibilityChange);
|
|
81768
81815
|
};
|
|
@@ -81878,7 +81925,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
81878
81925
|
};
|
|
81879
81926
|
if (!this.serviceOptions.mapConfiguration) {
|
|
81880
81927
|
var ensureAuthentication = this.map.authentication ? this.map.authentication.initialize() : Promise.resolve();
|
|
81881
|
-
newPromise = new HijackablePromise(ensureAuthentication.then(function () { return _this._request(_this.serviceOptions.staticAssetsDomain, constants.stylePath + "/" + constants.styleResourcePath, "StyleDefinitions", {
|
|
81928
|
+
newPromise = new HijackablePromise(ensureAuthentication.then(function () { return _this._request(_this.serviceOptions.staticAssetsDomain, constants.stylePath + "/" + constants.styleResourcePath, "StyleDefinitions", {
|
|
81929
|
+
version: _this.serviceOptions.styleDefinitionsVersion,
|
|
81930
|
+
// add MapControlVersion to make sure we have different local cache between map control versions
|
|
81931
|
+
mcv: version.replace(/\./g, ''),
|
|
81932
|
+
}).then(function (definitions) { return ({
|
|
81882
81933
|
version: isNaN(definitions.version) ? 0 : parseFloat(definitions.version),
|
|
81883
81934
|
defaultConfiguration: definitions.defaultStyle,
|
|
81884
81935
|
configurations: definitions.styles
|
|
@@ -81910,9 +81961,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
81910
81961
|
// This is needed for flight testing the 2023-01-01 style version.
|
|
81911
81962
|
styleVersion: definitions.version !== undefined && definitions.version !== null
|
|
81912
81963
|
? definitions.version
|
|
81913
|
-
: _this.serviceOptions.styleDefinitionsVersion
|
|
81964
|
+
: _this.serviceOptions.styleDefinitionsVersion,
|
|
81914
81965
|
// thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
|
|
81915
81966
|
//language: styleOptions.language
|
|
81967
|
+
// add MapControlVersion to make sure we have different local cache between map control versions
|
|
81968
|
+
mcv: version.replace(/\./g, '')
|
|
81916
81969
|
},
|
|
81917
81970
|
protocol: "https"
|
|
81918
81971
|
}).toString(),
|
|
@@ -82235,30 +82288,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
82235
82288
|
* Fetches a json resource at the specified domain and path.
|
|
82236
82289
|
*/
|
|
82237
82290
|
StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
|
|
82238
|
-
var _a
|
|
82291
|
+
var _a;
|
|
82239
82292
|
if (customQueryParams === void 0) { customQueryParams = {}; }
|
|
82240
82293
|
return __awaiter$4(this, void 0, void 0, function () {
|
|
82241
82294
|
var requestParams, fetchOptions;
|
|
82242
|
-
var
|
|
82243
|
-
return __generator$4(this, function (
|
|
82244
|
-
switch (
|
|
82295
|
+
var _b;
|
|
82296
|
+
return __generator$4(this, function (_c) {
|
|
82297
|
+
switch (_c.label) {
|
|
82245
82298
|
case 0:
|
|
82246
82299
|
requestParams = {
|
|
82247
82300
|
url: new Url({
|
|
82248
82301
|
protocol: "https",
|
|
82249
82302
|
domain: domain,
|
|
82250
82303
|
path: path,
|
|
82251
|
-
queryParams: __assign$8((
|
|
82252
|
-
// Generate a hash code to avoid cache conflict
|
|
82253
|
-
// TODO: Remove this once style version 2023-01-01 is publicly available
|
|
82254
|
-
_c.hash = StyleManager._hashCode((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.getToken()), _c), customQueryParams)
|
|
82304
|
+
queryParams: __assign$8((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
|
|
82255
82305
|
}).toString()
|
|
82256
82306
|
};
|
|
82257
82307
|
if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
|
|
82258
82308
|
// If a transformRequest(...) was specified use it.
|
|
82259
82309
|
requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
|
|
82260
82310
|
}
|
|
82261
|
-
(
|
|
82311
|
+
(_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
|
|
82262
82312
|
fetchOptions = {
|
|
82263
82313
|
method: "GET",
|
|
82264
82314
|
mode: "cors",
|
|
@@ -82275,7 +82325,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
82275
82325
|
throw new Error("HTTP " + response.status + ": " + response.statusText + " ");
|
|
82276
82326
|
}
|
|
82277
82327
|
})];
|
|
82278
|
-
case 1: return [2 /*return*/,
|
|
82328
|
+
case 1: return [2 /*return*/, _c.sent()];
|
|
82279
82329
|
}
|
|
82280
82330
|
});
|
|
82281
82331
|
});
|