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.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.1";
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.
@@ -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();
@@ -81878,7 +81919,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
81878
81919
  };
81879
81920
  if (!this.serviceOptions.mapConfiguration) {
81880
81921
  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", { version: _this.serviceOptions.styleDefinitionsVersion }).then(function (definitions) { return ({
81922
+ newPromise = new HijackablePromise(ensureAuthentication.then(function () { return _this._request(_this.serviceOptions.staticAssetsDomain, constants.stylePath + "/" + constants.styleResourcePath, "StyleDefinitions", {
81923
+ version: _this.serviceOptions.styleDefinitionsVersion,
81924
+ // add MapControlVersion to make sure we have different local cache between map control versions
81925
+ mcv: version.replace(/\./g, ''),
81926
+ }).then(function (definitions) { return ({
81882
81927
  version: isNaN(definitions.version) ? 0 : parseFloat(definitions.version),
81883
81928
  defaultConfiguration: definitions.defaultStyle,
81884
81929
  configurations: definitions.styles
@@ -81910,9 +81955,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
81910
81955
  // This is needed for flight testing the 2023-01-01 style version.
81911
81956
  styleVersion: definitions.version !== undefined && definitions.version !== null
81912
81957
  ? definitions.version
81913
- : _this.serviceOptions.styleDefinitionsVersion
81958
+ : _this.serviceOptions.styleDefinitionsVersion,
81914
81959
  // thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
81915
81960
  //language: styleOptions.language
81961
+ // add MapControlVersion to make sure we have different local cache between map control versions
81962
+ mcv: version.replace(/\./g, '')
81916
81963
  },
81917
81964
  protocol: "https"
81918
81965
  }).toString(),