azure-maps-control 2.2.4 → 2.2.5

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.
@@ -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.2.4";
268
+ var version = "2.2.5";
269
269
 
270
270
  /**
271
271
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -10104,6 +10104,72 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10104
10104
 
10105
10105
  var cloneDeepWith_1 = cloneDeepWith;
10106
10106
 
10107
+ /**
10108
+ * A hidden HTML element that is used to provide accessibility to shapes such as bubble.
10109
+ */
10110
+ var AccessibleIndicator = /** @class */ (function () {
10111
+ /**
10112
+ * Constructs an AccessibleIndicator object by initializing a hidden `div` element.
10113
+ * @internal
10114
+ */
10115
+ function AccessibleIndicator(options) {
10116
+ var _this = this;
10117
+ /**
10118
+ * Attaches the indicator to the HTML document in a hidden style.
10119
+ * @param map The map.
10120
+ */
10121
+ this.attach = function (map) {
10122
+ // If attaching to a different map, remove popup on current map
10123
+ if (_this.map !== map) {
10124
+ // If map was defined the indicator was attached to another map.
10125
+ if (_this.map) {
10126
+ _this.detachFromCurrentMap();
10127
+ }
10128
+ _this.map = map;
10129
+ _this.map.indicators._getCollectionDiv().appendChild(_this.element);
10130
+ _this.map.indicators.add(_this);
10131
+ }
10132
+ };
10133
+ /**
10134
+ * Removes the indicator from the map and the HTML document.
10135
+ */
10136
+ this.remove = function () {
10137
+ _this.detachFromCurrentMap();
10138
+ _this.element.remove();
10139
+ };
10140
+ /**
10141
+ * Get the DOM element of the indicator.
10142
+ * @returns The DOM element of the indicator.
10143
+ */
10144
+ this.getElement = function () {
10145
+ return _this.element;
10146
+ };
10147
+ this.detachFromCurrentMap = function () {
10148
+ if (_this.map) {
10149
+ _this.map.indicators.remove(_this);
10150
+ delete _this.map;
10151
+ }
10152
+ };
10153
+ this.element = document.createElement("div");
10154
+ // Set tabindex to 0 to make the element focusable.
10155
+ this.element.setAttribute("tabindex", "0");
10156
+ // Set the role to option, and it's container to listbox so the reader will read the listbox as a list.
10157
+ // For example, NVDA will read "data point, {posinset} of {setsize}" when the indicator is focused.
10158
+ this.element.setAttribute("role", "option");
10159
+ if (options === null || options === void 0 ? void 0 : options.setSize)
10160
+ this.element.setAttribute("aria-setsize", options.setSize.toString());
10161
+ if (options === null || options === void 0 ? void 0 : options.positionInSet)
10162
+ this.element.setAttribute("aria-posinset", options.positionInSet.toString());
10163
+ this.element.setAttribute("aria-label", "data point");
10164
+ this.element.classList.add(AccessibleIndicator.Css.hidden);
10165
+ }
10166
+ // CSS class names.
10167
+ AccessibleIndicator.Css = {
10168
+ hidden: "hidden-accessible-element"
10169
+ };
10170
+ return AccessibleIndicator;
10171
+ }());
10172
+
10107
10173
  var __extends$k = (window && window.__extends) || (function () {
10108
10174
  var extendStatics = function (d, b) {
10109
10175
  extendStatics = Object.setPrototypeOf ||
@@ -10962,7 +11028,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10962
11028
  // and can be used to determine which events are ours vs Mapbox's.
10963
11029
  Layer.LayerEvents = {
10964
11030
  layeradded: undefined,
10965
- layerremoved: undefined
11031
+ layerremoved: undefined,
11032
+ focusin: undefined,
11033
+ focusout: undefined,
10966
11034
  };
10967
11035
  return Layer;
10968
11036
  }(EventEmitter));
@@ -11117,6 +11185,14 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11117
11185
  * @default 8
11118
11186
  */
11119
11187
  _this.radius = 8;
11188
+ /**
11189
+ * @internal
11190
+ * Specifies whether to create focusable indicators for the bubbles.
11191
+ *
11192
+ * Note: We treat this as an internal option for now because we hadn't fully decided the default styling for the indicators.
11193
+ * Once we decide, we will make this a public option or remove it.
11194
+ */
11195
+ _this.createIndicators = false;
11120
11196
  return _this;
11121
11197
  }
11122
11198
  return BubbleLayerOptions;
@@ -11137,6 +11213,58 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11137
11213
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11138
11214
  };
11139
11215
  })();
11216
+ var __awaiter$1 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
11217
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
11218
+ return new (P || (P = Promise))(function (resolve, reject) {
11219
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11220
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
11221
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
11222
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11223
+ });
11224
+ };
11225
+ var __generator$1 = (window && window.__generator) || function (thisArg, body) {
11226
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
11227
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
11228
+ function verb(n) { return function (v) { return step([n, v]); }; }
11229
+ function step(op) {
11230
+ if (f) throw new TypeError("Generator is already executing.");
11231
+ while (_) try {
11232
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
11233
+ if (y = 0, t) op = [op[0] & 2, t.value];
11234
+ switch (op[0]) {
11235
+ case 0: case 1: t = op; break;
11236
+ case 4: _.label++; return { value: op[1], done: false };
11237
+ case 5: _.label++; y = op[1]; op = [0]; continue;
11238
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
11239
+ default:
11240
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
11241
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
11242
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
11243
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
11244
+ if (t[2]) _.ops.pop();
11245
+ _.trys.pop(); continue;
11246
+ }
11247
+ op = body.call(thisArg, _);
11248
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
11249
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
11250
+ }
11251
+ };
11252
+ var __read$3 = (window && window.__read) || function (o, n) {
11253
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
11254
+ if (!m) return o;
11255
+ var i = m.call(o), r, ar = [], e;
11256
+ try {
11257
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
11258
+ }
11259
+ catch (error) { e = { error: error }; }
11260
+ finally {
11261
+ try {
11262
+ if (r && !r.done && (m = i["return"])) m.call(i);
11263
+ }
11264
+ finally { if (e) throw e.error; }
11265
+ }
11266
+ return ar;
11267
+ };
11140
11268
  /**
11141
11269
  * Renders Point objects as scalable circles (bubbles).
11142
11270
  */
@@ -11150,6 +11278,72 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11150
11278
  */
11151
11279
  function BubbleLayer(source, id, options) {
11152
11280
  var _this = _super.call(this, id) || this;
11281
+ _this.accessibleIndicator = [];
11282
+ _this.setAccessibleIndicator = function () { return __awaiter$1(_this, void 0, void 0, function () {
11283
+ var features, createIndicator, insertHiddenBefore, attach;
11284
+ var _this = this;
11285
+ return __generator$1(this, function (_a) {
11286
+ this.accessibleIndicator.forEach(function (indicator) { return indicator.remove(); });
11287
+ this.accessibleIndicator = [];
11288
+ features = this.map.layers.getRenderedShapes(this.map.getCamera().bounds, this);
11289
+ createIndicator = function (features, idx) {
11290
+ var bubbleFeature = features[idx];
11291
+ var indicator = new AccessibleIndicator({ positionInSet: idx + 1, setSize: features.length });
11292
+ var element = indicator.getElement();
11293
+ var _a = __read$3(_this.map.positionsToPixels([bubbleFeature.data.geometry.coordinates]), 1), pixel = _a[0];
11294
+ element.addEventListener('focusin', function (event) {
11295
+ _this.accessibleIndicator.filter(function (p) { return p !== indicator; }).forEach(function (popup) { return popup.remove(); });
11296
+ // insert previous and next popups
11297
+ if (idx - 1 >= 0) {
11298
+ insertHiddenBefore(indicator, createIndicator(features, idx - 1));
11299
+ }
11300
+ if (idx + 1 < features.length) {
11301
+ attach(createIndicator(features, idx + 1));
11302
+ }
11303
+ _this.map._getMap().setPaintProperty(_this.id, 'circle-stroke-color', ['case', ['==', ['get', '_azureMapsShapeId'], bubbleFeature.data.id], '#000000', _this.options.strokeColor]);
11304
+ var focusEvent = {
11305
+ target: element,
11306
+ type: 'focusin',
11307
+ map: _this.map,
11308
+ shape: bubbleFeature,
11309
+ originalEvent: event,
11310
+ pixel: pixel
11311
+ };
11312
+ _this._invokeEvent('focusin', focusEvent);
11313
+ });
11314
+ element.addEventListener('focusout', function (event) {
11315
+ _this.map._getMap().setPaintProperty(_this.id, 'circle-stroke-color', ['case', ['==', ['get', '_azureMapsShapeId'], bubbleFeature.data.id], _this.options.strokeColor, _this.options.strokeColor]);
11316
+ var focusEvent = {
11317
+ target: element,
11318
+ type: 'focusout',
11319
+ map: _this.map,
11320
+ shape: bubbleFeature,
11321
+ originalEvent: event,
11322
+ pixel: pixel
11323
+ };
11324
+ _this._invokeEvent('focusout', focusEvent);
11325
+ });
11326
+ _this.accessibleIndicator.push(indicator);
11327
+ return indicator;
11328
+ };
11329
+ insertHiddenBefore = function (base, toInsert) {
11330
+ toInsert.attach(_this.map);
11331
+ var elementToSwapIn = toInsert.getElement();
11332
+ var baseElement = base.getElement();
11333
+ baseElement.parentElement.insertBefore(elementToSwapIn, baseElement);
11334
+ };
11335
+ attach = function (popup) {
11336
+ popup.attach(_this.map);
11337
+ };
11338
+ if (features.length > 0) {
11339
+ attach(createIndicator(features, 0));
11340
+ }
11341
+ if (features.length > 1) {
11342
+ attach(createIndicator(features, features.length - 1));
11343
+ }
11344
+ return [2 /*return*/];
11345
+ });
11346
+ }); };
11153
11347
  _this.options = new BubbleLayerOptions().merge(cloneDeepWith_1(options, BubbleLayerOptions._cloneCustomizer));
11154
11348
  _this.options.source = source || _this.options.source;
11155
11349
  return _this;
@@ -11197,6 +11391,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11197
11391
  }
11198
11392
  this.options = newOptions;
11199
11393
  };
11394
+ BubbleLayer.prototype.onAdd = function (map) {
11395
+ _super.prototype.onAdd.call(this, map);
11396
+ if (this.options.createIndicators) {
11397
+ map.events.addOnce('idle', this.setAccessibleIndicator);
11398
+ map.events.add('moveend', this.setAccessibleIndicator);
11399
+ }
11400
+ };
11401
+ BubbleLayer.prototype.onRemove = function () {
11402
+ _super.prototype.onRemove.call(this);
11403
+ if (this.options.createIndicators) {
11404
+ this.map.events.remove('idle', this.setAccessibleIndicator);
11405
+ this.map.events.remove('moveend', this.setAccessibleIndicator);
11406
+ }
11407
+ };
11200
11408
  /**
11201
11409
  * @internal
11202
11410
  */
@@ -12315,7 +12523,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12315
12523
  };
12316
12524
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12317
12525
  };
12318
- var __read$3 = (window && window.__read) || function (o, n) {
12526
+ var __read$4 = (window && window.__read) || function (o, n) {
12319
12527
  var m = typeof Symbol === "function" && o[Symbol.iterator];
12320
12528
  if (!m) return o;
12321
12529
  var i = m.call(o), r, ar = [], e;
@@ -12406,7 +12614,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12406
12614
  finally { if (e_1) throw e_1.error; }
12407
12615
  }
12408
12616
  // Then execute the standard merge behavior.
12409
- var merged = _super.prototype.merge.apply(this, __spreadArray([], __read$3(valueList)));
12617
+ var merged = _super.prototype.merge.apply(this, __spreadArray([], __read$4(valueList)));
12410
12618
  if (isNewColorSet) {
12411
12619
  merged.fillPattern = undefined;
12412
12620
  }
@@ -13737,7 +13945,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13737
13945
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13738
13946
  };
13739
13947
  })();
13740
- var __read$4 = (window && window.__read) || function (o, n) {
13948
+ var __read$5 = (window && window.__read) || function (o, n) {
13741
13949
  var m = typeof Symbol === "function" && o[Symbol.iterator];
13742
13950
  if (!m) return o;
13743
13951
  var i = m.call(o), r, ar = [], e;
@@ -13849,7 +14057,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13849
14057
  */
13850
14058
  _this._onDown = function (event) {
13851
14059
  _this.map.popups._addDraggedPopup(_this);
13852
- var _a = __read$4(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
14060
+ var _a = __read$5(_this.map.positionsToPixels([_this.options.position]), 1), anchorPixel = _a[0];
13853
14061
  if (event.type === "mousedown") {
13854
14062
  event = event;
13855
14063
  _this.dragOffset = [
@@ -14013,7 +14221,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14013
14221
  pixel[0] + this.dragOffset[0],
14014
14222
  pixel[1] + this.dragOffset[1]
14015
14223
  ];
14016
- var _a = __read$4(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
14224
+ var _a = __read$5(this.map.pixelsToPositions([anchorPixel]), 1), anchorPos = _a[0];
14017
14225
  this.options.position = anchorPos;
14018
14226
  this.marker.setLngLat(this.options.position);
14019
14227
  this._invokeEvent("drag", { type: "drag", target: this });
@@ -14167,7 +14375,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14167
14375
  posY = pt.y;
14168
14376
  }
14169
14377
  else {
14170
- var _a = __read$4(map.positionsToPixels([options.position]), 1), _b = __read$4(_a[0], 2), x = _b[0], y = _b[1];
14378
+ var _a = __read$5(map.positionsToPixels([options.position]), 1), _b = __read$5(_a[0], 2), x = _b[0], y = _b[1];
14171
14379
  posX = x;
14172
14380
  posY = y;
14173
14381
  }
@@ -15084,7 +15292,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15084
15292
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15085
15293
  };
15086
15294
  })();
15087
- var __read$5 = (window && window.__read) || function (o, n) {
15295
+ var __read$6 = (window && window.__read) || function (o, n) {
15088
15296
  var m = typeof Symbol === "function" && o[Symbol.iterator];
15089
15297
  if (!m) return o;
15090
15298
  var i = m.call(o), r, ar = [], e;
@@ -15237,7 +15445,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15237
15445
  for (var _i = 0; _i < arguments.length; _i++) {
15238
15446
  valueList[_i] = arguments[_i];
15239
15447
  }
15240
- var merged = _super.prototype.merge.apply(this, __spreadArray$1([], __read$5(valueList)));
15448
+ var merged = _super.prototype.merge.apply(this, __spreadArray$1([], __read$6(valueList)));
15241
15449
  if (merged.authType === exports.AuthenticationType.subscriptionKey) {
15242
15450
  merged.authContext = merged.aadAppId = merged.getToken = undefined;
15243
15451
  }
@@ -15936,7 +16144,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15936
16144
  return __assign$4.apply(this, arguments);
15937
16145
  };
15938
16146
 
15939
- var __awaiter$1 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
16147
+ var __awaiter$2 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
15940
16148
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15941
16149
  return new (P || (P = Promise))(function (resolve, reject) {
15942
16150
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -15945,7 +16153,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15945
16153
  step((generator = generator.apply(thisArg, _arguments || [])).next());
15946
16154
  });
15947
16155
  };
15948
- var __generator$1 = (window && window.__generator) || function (thisArg, body) {
16156
+ var __generator$2 = (window && window.__generator) || function (thisArg, body) {
15949
16157
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
15950
16158
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
15951
16159
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -15972,7 +16180,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15972
16180
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
15973
16181
  }
15974
16182
  };
15975
- var __read$6 = (window && window.__read) || function (o, n) {
16183
+ var __read$7 = (window && window.__read) || function (o, n) {
15976
16184
  var m = typeof Symbol === "function" && o[Symbol.iterator];
15977
16185
  if (!m) return o;
15978
16186
  var i = m.call(o), r, ar = [], e;
@@ -16129,14 +16337,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16129
16337
  var trafficOptions = _this.map.getTraffic();
16130
16338
  if (trafficOptions.flow !== "none") {
16131
16339
  var trafficFlowComponent = _this.map.layers.getLayerById("traffic_" + trafficOptions.flow);
16340
+ if (!trafficFlowComponent && ['absolute', 'relative-delay'].includes(trafficOptions.flow)) {
16341
+ // Fallback to relative if deprecated flow type is used
16342
+ trafficFlowComponent = _this.map.layers.getLayerById("traffic_relative");
16343
+ }
16132
16344
  if (trafficFlowComponent) {
16133
- _this.lastFlowMode = trafficOptions.flow;
16345
+ _this.lastFlowMode = trafficFlowComponent.getId().replace("traffic_", "");
16134
16346
  trafficFlowComponent._updateLayoutProperty("visibility", "visible", "none");
16135
16347
  }
16136
16348
  }
16137
16349
  };
16138
16350
  this.removeFromMap = function () {
16139
- var trafficOptions = _this.map.getTraffic();
16140
16351
  if (_this.lastFlowMode != "none") {
16141
16352
  var trafficFlowComponent = _this.map.layers.getLayerById("traffic_" + _this.lastFlowMode);
16142
16353
  if (trafficFlowComponent) {
@@ -16870,7 +17081,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16870
17081
  };
16871
17082
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
16872
17083
  };
16873
- var __read$7 = (window && window.__read) || function (o, n) {
17084
+ var __read$8 = (window && window.__read) || function (o, n) {
16874
17085
  var m = typeof Symbol === "function" && o[Symbol.iterator];
16875
17086
  if (!m) return o;
16876
17087
  var i = m.call(o), r, ar = [], e;
@@ -17068,7 +17279,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17068
17279
  var callbacks = new Dictionary(this.mapCallbackHandler.getEventCallbacks(eventType, layer));
17069
17280
  if (callbacks) {
17070
17281
  callbacks.forEach(function (_a, callback) {
17071
- var _b = __read$7(_a, 2), _ = _b[0], once = _b[1];
17282
+ var _b = __read$8(_a, 2), _ = _b[0], once = _b[1];
17072
17283
  // Invoking a listener this way circumvents the fire once logic in the modified callback.
17073
17284
  // So we check if the callback was added as a fire once and if so remove it here.
17074
17285
  if (once) {
@@ -17176,7 +17387,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17176
17387
  eventDict.forEach(function (callbackDict, eventType) {
17177
17388
  callbackDict.forEach(function (_a) {
17178
17389
  var e_6, _b;
17179
- var _c = __read$7(_a, 1), modifiedCallback = _c[0];
17390
+ var _c = __read$8(_a, 1), modifiedCallback = _c[0];
17180
17391
  try {
17181
17392
  for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
17182
17393
  var mbLayerId = _e.value;
@@ -17209,7 +17420,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17209
17420
  eventDict.forEach(function (callbackDict, eventType) {
17210
17421
  callbackDict.forEach(function (_a) {
17211
17422
  var e_7, _b;
17212
- var _c = __read$7(_a, 1), modifiedCallback = _c[0];
17423
+ var _c = __read$8(_a, 1), modifiedCallback = _c[0];
17213
17424
  try {
17214
17425
  for (var _d = __values$a(layer._getLayerIds()), _e = _d.next(); !_e.done; _e = _d.next()) {
17215
17426
  var mbLayerId = _e.value;
@@ -17608,7 +17819,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17608
17819
  };
17609
17820
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
17610
17821
  };
17611
- var __read$8 = (window && window.__read) || function (o, n) {
17822
+ var __read$9 = (window && window.__read) || function (o, n) {
17612
17823
  var m = typeof Symbol === "function" && o[Symbol.iterator];
17613
17824
  if (!m) return o;
17614
17825
  var i = m.call(o), r, ar = [], e;
@@ -18060,7 +18271,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18060
18271
  // If a specified layer hasn't been added to the map throw an error.
18061
18272
  var index = this_1.layerIndex.findIndex(function (l) { return l.getId() === layerId; });
18062
18273
  if (index > -1) {
18063
- layerIds.push.apply(layerIds, __spreadArray$3([], __read$8(this_1.layerIndex[index]._getLayerIds()
18274
+ layerIds.push.apply(layerIds, __spreadArray$3([], __read$9(this_1.layerIndex[index]._getLayerIds()
18064
18275
  .filter(function (id) { return !!_this.map._getMap().getLayer(id); }))));
18065
18276
  }
18066
18277
  else {
@@ -18803,7 +19014,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18803
19014
  };
18804
19015
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
18805
19016
  };
18806
- var __read$9 = (window && window.__read) || function (o, n) {
19017
+ var __read$a = (window && window.__read) || function (o, n) {
18807
19018
  var m = typeof Symbol === "function" && o[Symbol.iterator];
18808
19019
  if (!m) return o;
18809
19020
  var i = m.call(o), r, ar = [], e;
@@ -18894,7 +19105,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
18894
19105
  }
18895
19106
  finally { if (e_1) throw e_1.error; }
18896
19107
  }
18897
- return _super.prototype.merge.apply(this, __spreadArray$4([], __read$9(valuesList)));
19108
+ return _super.prototype.merge.apply(this, __spreadArray$4([], __read$a(valuesList)));
18898
19109
  };
18899
19110
  return CameraBoundsOptions;
18900
19111
  }(Options));
@@ -19367,7 +19578,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19367
19578
  };
19368
19579
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
19369
19580
  };
19370
- var __read$a = (window && window.__read) || function (o, n) {
19581
+ var __read$b = (window && window.__read) || function (o, n) {
19371
19582
  var m = typeof Symbol === "function" && o[Symbol.iterator];
19372
19583
  if (!m) return o;
19373
19584
  var i = m.call(o), r, ar = [], e;
@@ -19542,7 +19753,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19542
19753
  finally { if (e_1) throw e_1.error; }
19543
19754
  }
19544
19755
  // Then execute the standard merge behavior.
19545
- return _super.prototype.merge.apply(this, __spreadArray$5([], __read$a(valueList)));
19756
+ return _super.prototype.merge.apply(this, __spreadArray$5([], __read$b(valueList)));
19546
19757
  };
19547
19758
  return StyleOptions;
19548
19759
  }(Options));
@@ -19584,7 +19795,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19584
19795
  };
19585
19796
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
19586
19797
  };
19587
- var __read$b = (window && window.__read) || function (o, n) {
19798
+ var __read$c = (window && window.__read) || function (o, n) {
19588
19799
  var m = typeof Symbol === "function" && o[Symbol.iterator];
19589
19800
  if (!m) return o;
19590
19801
  var i = m.call(o), r, ar = [], e;
@@ -19835,10 +20046,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19835
20046
  // won't change default behavior in Options as usually that's what desired
19836
20047
  // instead capture it here and reassign.
19837
20048
  var currentTransforms = this._transformers;
19838
- var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return __spreadArray$6(__spreadArray$6([], __read$b(flattened)), __read$b(value._transformers || [])); }, []) : [];
20049
+ var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return __spreadArray$6(__spreadArray$6([], __read$c(flattened)), __read$c(value._transformers || [])); }, []) : [];
19839
20050
  // Then execute the standard merge behavior.
19840
20051
  // If subscription key auth method isn't being used then the subscription key property should be undefined.
19841
- var merged = _super.prototype.merge.apply(this, __spreadArray$6([], __read$b(valueList)));
20052
+ var merged = _super.prototype.merge.apply(this, __spreadArray$6([], __read$c(valueList)));
19842
20053
  if (merged.authOptions.authType !== exports.AuthenticationType.subscriptionKey) {
19843
20054
  merged["subscription-key"] = merged.subscriptionKey = undefined;
19844
20055
  }
@@ -19850,7 +20061,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
19850
20061
  if (merged.mapConfiguration && typeof merged.mapConfiguration !== 'string') {
19851
20062
  merged.mapConfiguration = __assign$7(__assign$7({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
19852
20063
  }
19853
- this._transformers = __spreadArray$6(__spreadArray$6([], __read$b(currentTransforms || [])), __read$b(transformersToMerge.filter(function (toMerge) { return !currentTransforms.includes(toMerge); })));
20064
+ this._transformers = __spreadArray$6(__spreadArray$6([], __read$c(currentTransforms || [])), __read$c(transformersToMerge.filter(function (toMerge) { return !currentTransforms.includes(toMerge); })));
19854
20065
  if (this.transformRequest && !this._transformers.includes(this.transformRequest)) {
19855
20066
  this._transformers.push(this.transformRequest);
19856
20067
  }
@@ -20046,7 +20257,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20046
20257
  };
20047
20258
  return __assign$8.apply(this, arguments);
20048
20259
  };
20049
- var __awaiter$2 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20260
+ var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20050
20261
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20051
20262
  return new (P || (P = Promise))(function (resolve, reject) {
20052
20263
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -20055,7 +20266,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20055
20266
  step((generator = generator.apply(thisArg, _arguments || [])).next());
20056
20267
  });
20057
20268
  };
20058
- var __generator$2 = (window && window.__generator) || function (thisArg, body) {
20269
+ var __generator$3 = (window && window.__generator) || function (thisArg, body) {
20059
20270
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
20060
20271
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
20061
20272
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -20082,7 +20293,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20082
20293
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
20083
20294
  }
20084
20295
  };
20085
- var __read$c = (window && window.__read) || function (o, n) {
20296
+ var __read$d = (window && window.__read) || function (o, n) {
20086
20297
  var m = typeof Symbol === "function" && o[Symbol.iterator];
20087
20298
  if (!m) return o;
20088
20299
  var i = m.call(o), r, ar = [], e;
@@ -20149,9 +20360,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20149
20360
  _this._progressiveLoadingState.mapStyle = currentMapStyle;
20150
20361
  // Select deferrable layers
20151
20362
  var deferredLayers = Object.entries(layerGroupLayers).reduce(function (deferred, _a) {
20152
- var _b = __read$c(_a, 2), groupName = _b[0], layers = _b[1];
20363
+ var _b = __read$d(_a, 2), groupName = _b[0], layers = _b[1];
20153
20364
  var isInInitialLayerGroup = validInitLayerGroups.includes(groupName);
20154
- return __spreadArray$7(__spreadArray$7([], __read$c(deferred)), __read$c(layers.filter(function (layer) {
20365
+ return __spreadArray$7(__spreadArray$7([], __read$d(deferred)), __read$d(layers.filter(function (layer) {
20155
20366
  var _a;
20156
20367
  // Exclude custom layers
20157
20368
  if (layer.type === 'custom')
@@ -20232,9 +20443,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20232
20443
  || definitions.configurations[0];
20233
20444
  }
20234
20445
  };
20235
- this._lookUpAsync = function (options) { return __awaiter$2(_this, void 0, void 0, function () {
20446
+ this._lookUpAsync = function (options) { return __awaiter$3(_this, void 0, void 0, function () {
20236
20447
  var definitions, result;
20237
- return __generator$2(this, function (_a) {
20448
+ return __generator$3(this, function (_a) {
20238
20449
  switch (_a.label) {
20239
20450
  case 0: return [4 /*yield*/, this.definitions()];
20240
20451
  case 1:
@@ -20420,8 +20631,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20420
20631
  return style.theme.toLowerCase();
20421
20632
  };
20422
20633
  StyleManager.prototype.getThemeAsync = function (styleOptions) {
20423
- return __awaiter$2(this, void 0, void 0, function () {
20424
- return __generator$2(this, function (_a) {
20634
+ return __awaiter$3(this, void 0, void 0, function () {
20635
+ return __generator$3(this, function (_a) {
20425
20636
  switch (_a.label) {
20426
20637
  case 0: return [4 /*yield*/, this._lookUpAsync(styleOptions)];
20427
20638
  case 1: return [2 /*return*/, (_a.sent()).theme];
@@ -20511,9 +20722,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20511
20722
  setLayerVisibility(nextLayer, styleOptions.showBuildingModels ? 'visible' : 'none');
20512
20723
  }
20513
20724
  // Set visibility of traffic layers depending on traffic settings.
20514
- if (trafficOptions.flow !== 'none' &&
20515
- layerGroup === "traffic_" + trafficOptions.flow &&
20516
- nextLayer.type == 'line') {
20725
+ if (trafficOptions.flow !== 'none' && nextLayer.type == 'line' &&
20726
+ (layerGroup === "traffic_" + trafficOptions.flow ||
20727
+ // Check if deprecated flow types are used and the layer is a bing-traffic layer.
20728
+ // Needed for backwards compatibility in Bing styles to support deprecated flow types.
20729
+ (['absolute', 'relative-delay'].includes(trafficOptions.flow) && nextLayer['source'] === "bing-traffic"))) {
20517
20730
  setLayerVisibility(nextLayer, 'visible');
20518
20731
  }
20519
20732
  // Set visibility of labels
@@ -20542,7 +20755,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20542
20755
  // A FundamentalMapLayer (grouped layer) representation of the next style must be built.
20543
20756
  var previousLayers = this.map.layers.getLayers();
20544
20757
  var nextLayers = Object.entries(layerGroupLayers).map(function (_a) {
20545
- var _b = __read$c(_a, 2), layerGroupName = _b[0], layerGroupMapboxLayers = _b[1];
20758
+ var _b = __read$d(_a, 2), layerGroupName = _b[0], layerGroupMapboxLayers = _b[1];
20546
20759
  return _this._buildFundamentalLayerFrom(layerGroupMapboxLayers, layerGroupName);
20547
20760
  });
20548
20761
  // Update FundamentalMapLayers in LayerManager
@@ -20641,10 +20854,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20641
20854
  StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
20642
20855
  var _a, _b;
20643
20856
  if (customQueryParams === void 0) { customQueryParams = {}; }
20644
- return __awaiter$2(this, void 0, void 0, function () {
20857
+ return __awaiter$3(this, void 0, void 0, function () {
20645
20858
  var requestParams, fetchOptions;
20646
20859
  var _c;
20647
- return __generator$2(this, function (_d) {
20860
+ return __generator$3(this, function (_d) {
20648
20861
  switch (_d.label) {
20649
20862
  case 0:
20650
20863
  requestParams = {
@@ -20707,6 +20920,123 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20707
20920
  */
20708
20921
  var isHMREnabled = function () { return 'ENVIRONMENT' in window && !!window['ENVIRONMENT']['hmr']; };
20709
20922
 
20923
+ var __values$j = (window && window.__values) || function(o) {
20924
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
20925
+ if (m) return m.call(o);
20926
+ if (o && typeof o.length === "number") return {
20927
+ next: function () {
20928
+ if (o && i >= o.length) o = void 0;
20929
+ return { value: o && o[i++], done: !o };
20930
+ }
20931
+ };
20932
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
20933
+ };
20934
+ /**
20935
+ * @internal
20936
+ * A manager for the map control's hidden indicators.
20937
+ * Exposed through the `indicators` property of the `atlas.Map` class.
20938
+ * Cannot be instantiated by the user.
20939
+ */
20940
+ var AccessibleIndicatorManager = /** @class */ (function () {
20941
+ /**
20942
+ * Constructs the indicator manager to be exposed only through the `indicators` property of the `Map` class.
20943
+ * @param map The map whose indicators are being managed by this.
20944
+ * @internal
20945
+ */
20946
+ function AccessibleIndicatorManager(map) {
20947
+ this.map = map;
20948
+ this.indicators = new Set();
20949
+ }
20950
+ /**
20951
+ * Adds an indicator to the map
20952
+ * @param indicator The indicator(s) to add.
20953
+ */
20954
+ AccessibleIndicatorManager.prototype.add = function (indicator) {
20955
+ var e_1, _a;
20956
+ indicator = Array.isArray(indicator) ? indicator : [indicator];
20957
+ try {
20958
+ for (var indicator_1 = __values$j(indicator), indicator_1_1 = indicator_1.next(); !indicator_1_1.done; indicator_1_1 = indicator_1.next()) {
20959
+ var i = indicator_1_1.value;
20960
+ if (!this.indicators.has(i)) {
20961
+ this.indicators.add(i);
20962
+ i.attach(this.map);
20963
+ }
20964
+ }
20965
+ }
20966
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
20967
+ finally {
20968
+ try {
20969
+ if (indicator_1_1 && !indicator_1_1.done && (_a = indicator_1.return)) _a.call(indicator_1);
20970
+ }
20971
+ finally { if (e_1) throw e_1.error; }
20972
+ }
20973
+ };
20974
+ /**
20975
+ * Removes all indicators from the map.
20976
+ */
20977
+ AccessibleIndicatorManager.prototype.clear = function () {
20978
+ var _this = this;
20979
+ this.indicators.forEach(function (indicator) {
20980
+ _this.indicators.delete(indicator);
20981
+ indicator.remove();
20982
+ });
20983
+ };
20984
+ /**
20985
+ * Removes an indicator from the map
20986
+ * @param indicator The indicator(s) to remove.
20987
+ */
20988
+ AccessibleIndicatorManager.prototype.remove = function (indicator) {
20989
+ var e_2, _a;
20990
+ indicator = Array.isArray(indicator) ? indicator : [indicator];
20991
+ try {
20992
+ for (var indicator_2 = __values$j(indicator), indicator_2_1 = indicator_2.next(); !indicator_2_1.done; indicator_2_1 = indicator_2.next()) {
20993
+ var i = indicator_2_1.value;
20994
+ if (this.indicators.has(i)) {
20995
+ this.indicators.delete(i);
20996
+ i.remove();
20997
+ }
20998
+ }
20999
+ }
21000
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
21001
+ finally {
21002
+ try {
21003
+ if (indicator_2_1 && !indicator_2_1.done && (_a = indicator_2.return)) _a.call(indicator_2);
21004
+ }
21005
+ finally { if (e_2) throw e_2.error; }
21006
+ }
21007
+ };
21008
+ /**
21009
+ * Returns the indicators currently attached to the map.
21010
+ */
21011
+ AccessibleIndicatorManager.prototype.getIndicators = function () {
21012
+ return Array.from(this.indicators);
21013
+ };
21014
+ /**
21015
+ * Returns the div element that should contain all the indicator containers.
21016
+ * Creates it if it doesn't already exist.
21017
+ * @internal
21018
+ */
21019
+ AccessibleIndicatorManager.prototype._getCollectionDiv = function () {
21020
+ var collection = this.map.getMapContainer()
21021
+ .querySelector("." + AccessibleIndicatorManager.Css.collection);
21022
+ if (!collection) {
21023
+ // If the collection div doesn't exist create it.
21024
+ collection = document.createElement("div");
21025
+ collection.setAttribute("aria-label", "map data");
21026
+ // Set the container role to listbox, and the descents' role to option, so the reader will read the listbox as a list.
21027
+ // For example, NVDA will read "data point, 1 of 1" when the indicator is focused.
21028
+ collection.setAttribute("role", "listbox");
21029
+ collection.classList.add(AccessibleIndicatorManager.Css.collection);
21030
+ this.map.getMapContainer().appendChild(collection);
21031
+ }
21032
+ return collection;
21033
+ };
21034
+ AccessibleIndicatorManager.Css = {
21035
+ collection: "accessible-indicator-collection-container"
21036
+ };
21037
+ return AccessibleIndicatorManager;
21038
+ }());
21039
+
20710
21040
  var __extends$18 = (window && window.__extends) || (function () {
20711
21041
  var extendStatics = function (d, b) {
20712
21042
  extendStatics = Object.setPrototypeOf ||
@@ -20733,7 +21063,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20733
21063
  };
20734
21064
  return __assign$9.apply(this, arguments);
20735
21065
  };
20736
- var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
21066
+ var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20737
21067
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20738
21068
  return new (P || (P = Promise))(function (resolve, reject) {
20739
21069
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -20742,7 +21072,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20742
21072
  step((generator = generator.apply(thisArg, _arguments || [])).next());
20743
21073
  });
20744
21074
  };
20745
- var __generator$3 = (window && window.__generator) || function (thisArg, body) {
21075
+ var __generator$4 = (window && window.__generator) || function (thisArg, body) {
20746
21076
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
20747
21077
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
20748
21078
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -20769,7 +21099,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20769
21099
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
20770
21100
  }
20771
21101
  };
20772
- var __read$d = (window && window.__read) || function (o, n) {
21102
+ var __read$e = (window && window.__read) || function (o, n) {
20773
21103
  var m = typeof Symbol === "function" && o[Symbol.iterator];
20774
21104
  if (!m) return o;
20775
21105
  var i = m.call(o), r, ar = [], e;
@@ -20790,7 +21120,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20790
21120
  to[j] = from[i];
20791
21121
  return to;
20792
21122
  };
20793
- var __values$j = (window && window.__values) || function(o) {
21123
+ var __values$k = (window && window.__values) || function(o) {
20794
21124
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
20795
21125
  if (m) return m.call(o);
20796
21126
  if (o && typeof o.length === "number") return {
@@ -20896,6 +21226,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20896
21226
  _this.markers = new HtmlMarkerManager(_this);
20897
21227
  _this.sources = new SourceManager(_this);
20898
21228
  _this.popups = new PopupManager(_this);
21229
+ _this.indicators = new AccessibleIndicatorManager(_this);
20899
21230
  // Add CSS classes and set attributes for DOM elements.
20900
21231
  _this.map.getContainer().classList.add(Map.Css.container);
20901
21232
  _this.map.getCanvasContainer().classList.add(Map.Css.canvasContainer);
@@ -20938,7 +21269,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20938
21269
  _this.localizedStringsPromise = Localizer.getStrings(_this.styleOptions.language);
20939
21270
  var stylesInit = _this.styles.initStyleset();
20940
21271
  Promise.all([authManInit, stylesInit]).then(function (_a) {
20941
- var _b = __read$d(_a, 2), _ = _b[0], definitions = _b[1];
21272
+ var _b = __read$e(_a, 2), _ = _b[0], definitions = _b[1];
20942
21273
  // Check that the map hasn't been removed for any reason.
20943
21274
  // If so no need to finish styling the map.
20944
21275
  if (_this.removed) {
@@ -21037,6 +21368,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21037
21368
  else {
21038
21369
  this.accessibleMapDelegate.removeFromMap();
21039
21370
  }
21371
+ if (this.styles.serviceOptions.mapConfiguration !== this.serviceOptions.mapConfiguration) {
21372
+ this.styles.initPromise = null;
21373
+ this.styles.serviceOptions.mapConfiguration = this.serviceOptions.mapConfiguration;
21374
+ this.setStyle({});
21375
+ }
21040
21376
  };
21041
21377
  /**
21042
21378
  * Adds request transformer
@@ -21586,7 +21922,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21586
21922
  urls = layer.getOptions().subdomains || [];
21587
21923
  }
21588
21924
  // Add the tile urls to the layer, but don't update the map yet.
21589
- urls.push.apply(urls, __spreadArray$8([], __read$d(tileSources)));
21925
+ urls.push.apply(urls, __spreadArray$8([], __read$e(tileSources)));
21590
21926
  layer._setOptionsNoUpdate({
21591
21927
  subdomains: urls
21592
21928
  });
@@ -21608,7 +21944,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21608
21944
  Map.prototype.removeLayers = function (layerNames) {
21609
21945
  var e_1, _a;
21610
21946
  try {
21611
- for (var layerNames_1 = __values$j(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
21947
+ for (var layerNames_1 = __values$k(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
21612
21948
  var layerName = layerNames_1_1.value;
21613
21949
  // Previously calling removeLayers for layers that didn't exist in the map just did nothing.
21614
21950
  // Now, LayerManager will throw an error, so we need to check if the layer exists before calling remove.
@@ -21750,6 +22086,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21750
22086
  this.layers.clear();
21751
22087
  this.sources.clear();
21752
22088
  this.markers.clear();
22089
+ this.indicators.clear();
21753
22090
  };
21754
22091
  /**
21755
22092
  * Clean up the map's resources. Map will not function correctly after calling this method.
@@ -21802,7 +22139,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21802
22139
  var e_2, _a;
21803
22140
  var positions = [];
21804
22141
  try {
21805
- for (var pixels_1 = __values$j(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
22142
+ for (var pixels_1 = __values$k(pixels), pixels_1_1 = pixels_1.next(); !pixels_1_1.done; pixels_1_1 = pixels_1.next()) {
21806
22143
  var pixel = pixels_1_1.value;
21807
22144
  var lngLat = this.map.unproject(pixel);
21808
22145
  positions.push(new Position(lngLat.lng, lngLat.lat));
@@ -21825,7 +22162,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21825
22162
  var e_3, _a;
21826
22163
  var pixels = [];
21827
22164
  try {
21828
- for (var positions_1 = __values$j(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
22165
+ for (var positions_1 = __values$k(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {
21829
22166
  var position = positions_1_1.value;
21830
22167
  var point = this.map.project(position);
21831
22168
  pixels.push(new Pixel(point.x, point.y));
@@ -21873,8 +22210,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21873
22210
  */
21874
22211
  Map.prototype._rebuildStyle = function (diff) {
21875
22212
  if (diff === void 0) { diff = true; }
21876
- return __awaiter$3(this, void 0, void 0, function () {
21877
- return __generator$3(this, function (_a) {
22213
+ return __awaiter$4(this, void 0, void 0, function () {
22214
+ return __generator$4(this, function (_a) {
21878
22215
  this.styles.setStyle(this.styleOptions, diff);
21879
22216
  this.imageSprite._restoreImages();
21880
22217
  return [2 /*return*/];
@@ -22090,7 +22427,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
22090
22427
  return Map;
22091
22428
  }(EventEmitter));
22092
22429
 
22093
- var __read$e = (window && window.__read) || function (o, n) {
22430
+ var __read$f = (window && window.__read) || function (o, n) {
22094
22431
  var m = typeof Symbol === "function" && o[Symbol.iterator];
22095
22432
  if (!m) return o;
22096
22433
  var i = m.call(o), r, ar = [], e;
@@ -22252,7 +22589,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
22252
22589
  lineLength = 50;
22253
22590
  }
22254
22591
  var lines = c.split(/<(tr|div|br|li|h[0-9]|p>)/);
22255
- longestStringLength = Math.max.apply(Math, __spreadArray$9([], __read$e((lines.map(function (el) { return el.replace(/<[a-zA-Z0-9\s=\/]+>/g, "").length; }))))) - 1;
22592
+ longestStringLength = Math.max.apply(Math, __spreadArray$9([], __read$f((lines.map(function (el) { return el.replace(/<[a-zA-Z0-9\s=\/]+>/g, "").length; }))))) - 1;
22256
22593
  var w = Math.ceil(longestStringLength * 3.5);
22257
22594
  if (w < width) {
22258
22595
  width = w;