azure-maps-control 3.2.0 → 3.3.0

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
@@ -91,12 +91,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
91
91
 
92
92
  var azuremapsMaplibreGlDev = {exports: {}};
93
93
 
94
- /* Build timestamp: Mon, 04 Mar 2024 19:21:28 GMT */
94
+ /* Build timestamp: Mon, 22 Apr 2024 08:56:33 GMT */
95
95
 
96
96
  (function (module, exports) {
97
97
  /**
98
98
  * The Azure Maps fork of MapLibre GL JS
99
- * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.0.2/LICENSE.txt
99
+ * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.1.2/LICENSE.txt
100
100
  */
101
101
  (function (global, factory) {
102
102
  module.exports = factory() ;
@@ -1281,9 +1281,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
1281
1281
  const body = yield response.blob();
1282
1282
  throw new AJAXError(response.status, response.statusText, requestParameters.url, body);
1283
1283
  }
1284
- const parsePromise = (requestParameters.type === 'arrayBuffer' || requestParameters.type === 'image') ? response.arrayBuffer() :
1285
- requestParameters.type === 'json' ? response.json() :
1286
- response.text();
1284
+ let parsePromise;
1285
+ if ((requestParameters.type === 'arrayBuffer' || requestParameters.type === 'image')) {
1286
+ parsePromise = response.arrayBuffer();
1287
+ }
1288
+ else if (requestParameters.type === 'json') {
1289
+ parsePromise = response.json();
1290
+ }
1291
+ else {
1292
+ parsePromise = response.text();
1293
+ }
1287
1294
  const result = yield parsePromise;
1288
1295
  if (abortController.signal.aborted) {
1289
1296
  throw createAbortError();
@@ -1354,7 +1361,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
1354
1361
  return protocolLoadFn(requestParameters, abortController);
1355
1362
  }
1356
1363
  if (isWorker(self) && self.worker && self.worker.actor) {
1357
- return self.worker.actor.sendAsync({ type: 'getResource', data: requestParameters, targetMapId: GLOBAL_DISPATCHER_ID }, abortController);
1364
+ return self.worker.actor.sendAsync({ type: "GR" /* MessageType.getResource */, data: requestParameters, targetMapId: GLOBAL_DISPATCHER_ID }, abortController);
1358
1365
  }
1359
1366
  }
1360
1367
  if (!isFileURL(requestParameters.url)) {
@@ -1362,7 +1369,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
1362
1369
  return makeFetchRequest(requestParameters, abortController);
1363
1370
  }
1364
1371
  if (isWorker(self) && self.worker && self.worker.actor) {
1365
- return self.worker.actor.sendAsync({ type: 'getResource', data: requestParameters, mustQueue: true, targetMapId: GLOBAL_DISPATCHER_ID }, abortController);
1372
+ return self.worker.actor.sendAsync({ type: "GR" /* MessageType.getResource */, data: requestParameters, mustQueue: true, targetMapId: GLOBAL_DISPATCHER_ID }, abortController);
1366
1373
  }
1367
1374
  }
1368
1375
  return makeXMLHttpRequest(requestParameters, abortController);
@@ -11879,6 +11886,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11879
11886
  this.pluginStatus = state.pluginStatus;
11880
11887
  this.pluginURL = state.pluginURL;
11881
11888
  }
11889
+ getState() {
11890
+ return {
11891
+ pluginStatus: this.pluginStatus,
11892
+ pluginURL: this.pluginURL
11893
+ };
11894
+ }
11882
11895
  setMethods(rtlTextPlugin) {
11883
11896
  this.applyArabicShaping = rtlTextPlugin.applyArabicShaping;
11884
11897
  this.processBidirectionalText = rtlTextPlugin.processBidirectionalText;
@@ -15693,6 +15706,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15693
15706
  */
15694
15707
 
15695
15708
  var ortho = orthoNO;
15709
+ /**
15710
+ * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
15711
+ *
15712
+ * @param {ReadonlyMat4} a The first matrix.
15713
+ * @param {ReadonlyMat4} b The second matrix.
15714
+ * @returns {Boolean} True if the matrices are equal, false otherwise.
15715
+ */
15716
+
15717
+ function exactEquals$5(a, b) {
15718
+ return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8] && a[9] === b[9] && a[10] === b[10] && a[11] === b[11] && a[12] === b[12] && a[13] === b[13] && a[14] === b[14] && a[15] === b[15];
15719
+ }
15696
15720
  /**
15697
15721
  * Returns whether or not the matrices have approximately the same elements in the same position.
15698
15722
  *
@@ -21223,12 +21247,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21223
21247
  // conversion here.
21224
21248
  const resolvedTokens = layer.getValueAndResolveTokens('text-field', evaluationFeature, canonical, availableImages);
21225
21249
  const formattedText = Formatted.factory(resolvedTokens);
21226
- if (containsRTLText(formattedText)) {
21227
- this.hasRTLText = true;
21228
- }
21229
- if (!this.hasRTLText || // non-rtl text so can proceed safely
21250
+ // on this instance: if hasRTLText is already true, all future calls to containsRTLText can be skipped.
21251
+ const bucketHasRTLText = this.hasRTLText = (this.hasRTLText || containsRTLText(formattedText));
21252
+ if (!bucketHasRTLText || // non-rtl text so can proceed safely
21230
21253
  rtlWorkerPlugin.getRTLTextPluginStatus() === 'unavailable' || // We don't intend to lazy-load the rtl text plugin, so proceed with incorrect shaping
21231
- this.hasRTLText && rtlWorkerPlugin.isParsed() // Use the rtlText plugin to shape text
21254
+ bucketHasRTLText && rtlWorkerPlugin.isParsed() // Use the rtlText plugin to shape text
21232
21255
  ) {
21233
21256
  text = transformText(formattedText, layer, evaluationFeature);
21234
21257
  }
@@ -24868,6 +24891,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
24868
24891
  exports.equals = equals$6;
24869
24892
  exports.evaluateSizeForFeature = evaluateSizeForFeature;
24870
24893
  exports.evaluateSizeForZoom = evaluateSizeForZoom;
24894
+ exports.exactEquals = exactEquals$5;
24871
24895
  exports.extend = extend;
24872
24896
  exports.filterObject = filterObject;
24873
24897
  exports.findLineIntersection = findLineIntersection;
@@ -25109,6 +25133,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25109
25133
  featureIndex.bucketLayerIDs.push(family.map((l) => l.id));
25110
25134
  }
25111
25135
  }
25136
+ // options.glyphDependencies looks like: {"SomeFontName":{"10":true,"32":true}}
25137
+ // this line makes an object like: {"SomeFontName":[10,32]}
25112
25138
  const stacks = performance.mapObject(options.glyphDependencies, (glyphs) => Object.keys(glyphs).map(Number));
25113
25139
  this.inFlightDependencies.forEach((request) => request === null || request === void 0 ? void 0 : request.abort());
25114
25140
  this.inFlightDependencies = [];
@@ -25116,21 +25142,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25116
25142
  if (Object.keys(stacks).length) {
25117
25143
  const abortController = new AbortController();
25118
25144
  this.inFlightDependencies.push(abortController);
25119
- getGlyphsPromise = actor.sendAsync({ type: 'getGlyphs', data: { stacks, source: this.source, tileID: this.tileID, type: 'glyphs' } }, abortController);
25145
+ getGlyphsPromise = actor.sendAsync({ type: "GG" /* MessageType.getGlyphs */, data: { stacks, source: this.source, tileID: this.tileID, type: 'glyphs' } }, abortController);
25120
25146
  }
25121
25147
  const icons = Object.keys(options.iconDependencies);
25122
25148
  let getIconsPromise = Promise.resolve({});
25123
25149
  if (icons.length) {
25124
25150
  const abortController = new AbortController();
25125
25151
  this.inFlightDependencies.push(abortController);
25126
- getIconsPromise = actor.sendAsync({ type: 'getImages', data: { icons, source: this.source, tileID: this.tileID, type: 'icons' } }, abortController);
25152
+ getIconsPromise = actor.sendAsync({ type: "GI" /* MessageType.getImages */, data: { icons, source: this.source, tileID: this.tileID, type: 'icons' } }, abortController);
25127
25153
  }
25128
25154
  const patterns = Object.keys(options.patternDependencies);
25129
25155
  let getPatternsPromise = Promise.resolve({});
25130
25156
  if (patterns.length) {
25131
25157
  const abortController = new AbortController();
25132
25158
  this.inFlightDependencies.push(abortController);
25133
- getPatternsPromise = actor.sendAsync({ type: 'getImages', data: { icons: patterns, source: this.source, tileID: this.tileID, type: 'patterns' } }, abortController);
25159
+ getPatternsPromise = actor.sendAsync({ type: "GI" /* MessageType.getImages */, data: { icons: patterns, source: this.source, tileID: this.tileID, type: 'patterns' } }, abortController);
25134
25160
  }
25135
25161
  const [glyphMap, iconMap, patternMap] = yield Promise.all([getGlyphsPromise, getIconsPromise, getPatternsPromise]);
25136
25162
  const glyphAtlas = new GlyphAtlas(glyphMap);
@@ -27180,8 +27206,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27180
27206
  * @returns a promise that resolves when the data is loaded and parsed into a GeoJSON object
27181
27207
  */
27182
27208
  loadData(params) {
27183
- var _a;
27184
27209
  return performance.__awaiter(this, void 0, void 0, function* () {
27210
+ var _a;
27185
27211
  (_a = this._pendingRequest) === null || _a === void 0 ? void 0 : _a.abort();
27186
27212
  const perf = (params && params.request && params.request.collectResourceTiming) ?
27187
27213
  new performance.RequestPerformance(params.request) : false;
@@ -27358,37 +27384,37 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27358
27384
  }
27359
27385
  performance.rtlWorkerPlugin.setMethods(rtlTextPlugin);
27360
27386
  };
27361
- this.actor.registerMessageHandler('loadDEMTile', (mapId, params) => {
27387
+ this.actor.registerMessageHandler("LDT" /* MessageType.loadDEMTile */, (mapId, params) => {
27362
27388
  return this._getDEMWorkerSource(mapId, params.source).loadTile(params);
27363
27389
  });
27364
- this.actor.registerMessageHandler('removeDEMTile', (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27390
+ this.actor.registerMessageHandler("RDT" /* MessageType.removeDEMTile */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27365
27391
  this._getDEMWorkerSource(mapId, params.source).removeTile(params);
27366
27392
  }));
27367
- this.actor.registerMessageHandler('getClusterExpansionZoom', (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27393
+ this.actor.registerMessageHandler("GCEZ" /* MessageType.getClusterExpansionZoom */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27368
27394
  return this._getWorkerSource(mapId, params.type, params.source).getClusterExpansionZoom(params);
27369
27395
  }));
27370
- this.actor.registerMessageHandler('getClusterChildren', (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27396
+ this.actor.registerMessageHandler("GCC" /* MessageType.getClusterChildren */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27371
27397
  return this._getWorkerSource(mapId, params.type, params.source).getClusterChildren(params);
27372
27398
  }));
27373
- this.actor.registerMessageHandler('getClusterLeaves', (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27399
+ this.actor.registerMessageHandler("GCL" /* MessageType.getClusterLeaves */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27374
27400
  return this._getWorkerSource(mapId, params.type, params.source).getClusterLeaves(params);
27375
27401
  }));
27376
- this.actor.registerMessageHandler('loadData', (mapId, params) => {
27402
+ this.actor.registerMessageHandler("LD" /* MessageType.loadData */, (mapId, params) => {
27377
27403
  return this._getWorkerSource(mapId, params.type, params.source).loadData(params);
27378
27404
  });
27379
- this.actor.registerMessageHandler('loadTile', (mapId, params) => {
27405
+ this.actor.registerMessageHandler("LT" /* MessageType.loadTile */, (mapId, params) => {
27380
27406
  return this._getWorkerSource(mapId, params.type, params.source).loadTile(params);
27381
27407
  });
27382
- this.actor.registerMessageHandler('reloadTile', (mapId, params) => {
27408
+ this.actor.registerMessageHandler("RT" /* MessageType.reloadTile */, (mapId, params) => {
27383
27409
  return this._getWorkerSource(mapId, params.type, params.source).reloadTile(params);
27384
27410
  });
27385
- this.actor.registerMessageHandler('abortTile', (mapId, params) => {
27411
+ this.actor.registerMessageHandler("AT" /* MessageType.abortTile */, (mapId, params) => {
27386
27412
  return this._getWorkerSource(mapId, params.type, params.source).abortTile(params);
27387
27413
  });
27388
- this.actor.registerMessageHandler('removeTile', (mapId, params) => {
27414
+ this.actor.registerMessageHandler("RMT" /* MessageType.removeTile */, (mapId, params) => {
27389
27415
  return this._getWorkerSource(mapId, params.type, params.source).removeTile(params);
27390
27416
  });
27391
- this.actor.registerMessageHandler('removeSource', (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27417
+ this.actor.registerMessageHandler("RS" /* MessageType.removeSource */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27392
27418
  if (!this.workerSources[mapId] ||
27393
27419
  !this.workerSources[mapId][params.type] ||
27394
27420
  !this.workerSources[mapId][params.type][params.source]) {
@@ -27400,22 +27426,28 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27400
27426
  worker.removeSource(params);
27401
27427
  }
27402
27428
  }));
27403
- this.actor.registerMessageHandler('setReferrer', (_mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27429
+ this.actor.registerMessageHandler("RM" /* MessageType.removeMap */, (mapId) => performance.__awaiter(this, void 0, void 0, function* () {
27430
+ delete this.layerIndexes[mapId];
27431
+ delete this.availableImages[mapId];
27432
+ delete this.workerSources[mapId];
27433
+ delete this.demWorkerSources[mapId];
27434
+ }));
27435
+ this.actor.registerMessageHandler("SR" /* MessageType.setReferrer */, (_mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27404
27436
  this.referrer = params;
27405
27437
  }));
27406
- this.actor.registerMessageHandler('syncRTLPluginState', (mapId, params) => {
27438
+ this.actor.registerMessageHandler("SRPS" /* MessageType.syncRTLPluginState */, (mapId, params) => {
27407
27439
  return this._syncRTLPluginState(mapId, params);
27408
27440
  });
27409
- this.actor.registerMessageHandler('importScript', (_mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27441
+ this.actor.registerMessageHandler("IS" /* MessageType.importScript */, (_mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27410
27442
  this.self.importScripts(params);
27411
27443
  }));
27412
- this.actor.registerMessageHandler('setImages', (mapId, params) => {
27444
+ this.actor.registerMessageHandler("SI" /* MessageType.setImages */, (mapId, params) => {
27413
27445
  return this._setImages(mapId, params);
27414
27446
  });
27415
- this.actor.registerMessageHandler('updateLayers', (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27447
+ this.actor.registerMessageHandler("UL" /* MessageType.updateLayers */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27416
27448
  this._getLayerIndex(mapId).update(params.layers, params.removedIds);
27417
27449
  }));
27418
- this.actor.registerMessageHandler('setLayers', (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27450
+ this.actor.registerMessageHandler("SL" /* MessageType.setLayers */, (mapId, params) => performance.__awaiter(this, void 0, void 0, function* () {
27419
27451
  this._getLayerIndex(mapId).replace(params);
27420
27452
  }));
27421
27453
  }
@@ -27430,19 +27462,34 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27430
27462
  }
27431
27463
  });
27432
27464
  }
27433
- _syncRTLPluginState(map, state) {
27465
+ _syncRTLPluginState(mapId, incomingState) {
27434
27466
  return performance.__awaiter(this, void 0, void 0, function* () {
27435
- performance.rtlWorkerPlugin.setState(state);
27436
- const pluginURL = performance.rtlWorkerPlugin.getPluginURL();
27437
- if (state.pluginStatus === 'loaded' && !performance.rtlWorkerPlugin.isParsed() && pluginURL != null) {
27438
- this.self.importScripts(pluginURL);
27439
- const complete = performance.rtlWorkerPlugin.isParsed();
27440
- if (complete) {
27441
- return complete;
27442
- }
27443
- throw new Error(`RTL Text Plugin failed to import scripts from ${pluginURL}`);
27467
+ // Parsed plugin cannot be changed, so just return its current state.
27468
+ if (performance.rtlWorkerPlugin.isParsed()) {
27469
+ return performance.rtlWorkerPlugin.getState();
27470
+ }
27471
+ if (incomingState.pluginStatus !== 'loading') {
27472
+ // simply sync and done
27473
+ performance.rtlWorkerPlugin.setState(incomingState);
27474
+ return incomingState;
27475
+ }
27476
+ const urlToLoad = incomingState.pluginURL;
27477
+ this.self.importScripts(urlToLoad);
27478
+ const complete = performance.rtlWorkerPlugin.isParsed();
27479
+ if (complete) {
27480
+ const loadedState = {
27481
+ pluginStatus: 'loaded',
27482
+ pluginURL: urlToLoad
27483
+ };
27484
+ performance.rtlWorkerPlugin.setState(loadedState);
27485
+ return loadedState;
27444
27486
  }
27445
- return false;
27487
+ // error case
27488
+ performance.rtlWorkerPlugin.setState({
27489
+ pluginStatus: 'error',
27490
+ pluginURL: ''
27491
+ });
27492
+ throw new Error(`RTL Text Plugin failed to import scripts from ${urlToLoad}`);
27446
27493
  });
27447
27494
  }
27448
27495
  _getAvailableImages(mapId) {
@@ -27520,11 +27567,15 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27520
27567
  define('index', ['exports', './shared'], (function (exports, performance$1) {
27521
27568
  var name = "azuremaps-maplibre-gl";
27522
27569
  var description = "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library";
27523
- var version$2 = "4.0.2";
27570
+ var version$2 = "4.1.2";
27524
27571
  var main = "dist/azuremaps-maplibre-gl.js";
27525
27572
  var style = "dist/azuremaps-maplibre-gl.css";
27526
27573
  var license = "BSD-3-Clause";
27574
+ var homepage = "https://maplibre.org/";
27527
27575
  var funding = "https://github.com/maplibre/maplibre-gl-js?sponsor=1";
27576
+ var bugs = {
27577
+ url: "https://github.com/maplibre/maplibre-gl-js/issues/"
27578
+ };
27528
27579
  var repository = {
27529
27580
  type: "git",
27530
27581
  url: "https://dev.azure.com/msazure/One/_git/Azure-IoT-Maps-maplibre-gl-js"
@@ -27574,7 +27625,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27574
27625
  "@types/d3": "^7.4.3",
27575
27626
  "@types/diff": "^5.0.9",
27576
27627
  "@types/earcut": "^2.1.4",
27577
- "@types/eslint": "^8.56.2",
27628
+ "@types/eslint": "^8.56.7",
27578
27629
  "@types/gl": "^6.0.5",
27579
27630
  "@types/glob": "^8.1.0",
27580
27631
  "@types/jest": "^29.5.12",
@@ -27582,74 +27633,74 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27582
27633
  "@types/minimist": "^1.2.5",
27583
27634
  "@types/murmurhash-js": "^1.0.6",
27584
27635
  "@types/nise": "^1.4.4",
27585
- "@types/node": "^20.11.19",
27636
+ "@types/node": "^20.12.6",
27586
27637
  "@types/offscreencanvas": "^2019.7.3",
27587
27638
  "@types/pixelmatch": "^5.2.6",
27588
27639
  "@types/pngjs": "^6.0.4",
27589
- "@types/react": "^18.2.56",
27590
- "@types/react-dom": "^18.2.19",
27640
+ "@types/react": "^18.2.75",
27641
+ "@types/react-dom": "^18.2.24",
27591
27642
  "@types/request": "^2.48.12",
27592
27643
  "@types/shuffle-seed": "^1.1.3",
27593
27644
  "@types/window-or-global": "^1.0.6",
27594
- "@typescript-eslint/eslint-plugin": "^7.0.0",
27595
- "@typescript-eslint/parser": "^6.21.0",
27596
- address: "^2.0.1",
27645
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
27646
+ "@typescript-eslint/parser": "^7.6.0",
27647
+ address: "^2.0.2",
27597
27648
  benchmark: "^2.1.4",
27598
27649
  canvas: "^2.11.2",
27599
- cssnano: "^6.0.3",
27600
- d3: "^7.8.5",
27650
+ cssnano: "^6.1.2",
27651
+ d3: "^7.9.0",
27601
27652
  "d3-queue": "^3.0.7",
27602
- "devtools-protocol": "^0.0.1262051",
27653
+ "devtools-protocol": "^0.0.1284279",
27603
27654
  diff: "^5.2.0",
27604
27655
  "dts-bundle-generator": "^9.3.1",
27605
- eslint: "^8.56.0",
27656
+ eslint: "^8.57.0",
27606
27657
  "eslint-config-mourner": "^3.0.0",
27607
27658
  "eslint-plugin-html": "^8.0.0",
27608
27659
  "eslint-plugin-import": "^2.29.1",
27609
- "eslint-plugin-jest": "^27.9.0",
27610
- "eslint-plugin-react": "^7.33.2",
27660
+ "eslint-plugin-jest": "^28.2.0",
27661
+ "eslint-plugin-react": "^7.34.1",
27611
27662
  "eslint-plugin-tsdoc": "0.2.17",
27612
27663
  expect: "^29.7.0",
27613
- glob: "^10.3.10",
27664
+ glob: "^10.3.12",
27614
27665
  "is-builtin-module": "^3.2.1",
27615
27666
  jest: "^29.7.0",
27616
27667
  "jest-environment-jsdom": "^29.7.0",
27617
- "jest-monocart-coverage": "^1.0.2",
27668
+ "jest-monocart-coverage": "^1.1.0",
27618
27669
  "jest-webgl-canvas-mock": "^2.5.3",
27619
27670
  jsdom: "^24.0.0",
27620
27671
  "json-stringify-pretty-compact": "^4.0.0",
27621
27672
  minimist: "^1.2.8",
27622
27673
  "mock-geolocation": "^1.0.11",
27623
- "monocart-coverage-reports": "^2.5.0",
27674
+ "monocart-coverage-reports": "^2.7.8",
27624
27675
  nise: "^5.1.9",
27625
27676
  "npm-font-open-sans": "^1.1.0",
27626
27677
  "npm-run-all": "^4.1.5",
27627
27678
  "pdf-merger-js": "^5.1.1",
27628
27679
  pixelmatch: "^5.3.0",
27629
27680
  pngjs: "^7.0.0",
27630
- postcss: "^8.4.35",
27681
+ postcss: "^8.4.38",
27631
27682
  "postcss-cli": "^11.0.0",
27632
27683
  "postcss-inline-svg": "^6.0.0",
27633
27684
  "pretty-bytes": "^6.1.1",
27634
- puppeteer: "^22.1.0",
27685
+ puppeteer: "^22.6.3",
27635
27686
  react: "^18.2.0",
27636
27687
  "react-dom": "^18.2.0",
27637
- rollup: "^4.12.0",
27688
+ rollup: "^4.14.1",
27638
27689
  "rollup-plugin-sourcemaps": "^0.6.3",
27639
27690
  rw: "^1.3.3",
27640
27691
  semver: "^7.6.0",
27641
27692
  "shuffle-seed": "^1.1.6",
27642
27693
  "source-map-explorer": "^2.5.3",
27643
27694
  st: "^3.0.0",
27644
- stylelint: "^16.2.1",
27695
+ stylelint: "^16.3.1",
27645
27696
  "stylelint-config-standard": "^36.0.0",
27646
27697
  "ts-jest": "^29.1.2",
27647
27698
  "ts-node": "^10.9.2",
27648
27699
  tslib: "^2.6.2",
27649
- typedoc: "^0.25.8",
27700
+ typedoc: "^0.25.13",
27650
27701
  "typedoc-plugin-markdown": "^3.17.1",
27651
27702
  "typedoc-plugin-missing-exports": "^2.2.0",
27652
- typescript: "^5.3.3"
27703
+ typescript: "^5.4.4"
27653
27704
  };
27654
27705
  var overrides = {
27655
27706
  "postcss-inline-svg": {
@@ -27664,18 +27715,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27664
27715
  "generate-shaders": "node --no-warnings --loader ts-node/esm build/generate-shaders.ts",
27665
27716
  "generate-struct-arrays": "node --no-warnings --loader ts-node/esm build/generate-struct-arrays.ts",
27666
27717
  "generate-style-code": "node --no-warnings --loader ts-node/esm build/generate-style-code.ts",
27667
- "generate-typings": "dts-bundle-generator --export-referenced-types --umd-module-name=maplibregl -o ./dist/azuremaps-maplibre-gl.d.ts ./src/index.ts",
27718
+ "generate-typings": "dts-bundle-generator --export-referenced-types --umd-module-name=maplibregl -o ./dist/maplibre-gl.d.ts ./src/index.ts",
27668
27719
  "generate-docs": "typedoc && node --no-warnings --loader ts-node/esm build/generate-docs.ts",
27669
27720
  "generate-images": "node --no-warnings --loader ts-node/esm build/generate-doc-images.ts",
27670
27721
  "build-dist": "npm run build-css && npm run generate-typings && npm run build-dev && npm run build-csp-dev && npm run build-prod && npm run build-csp",
27671
- "build-aml-package": "npm run build-dist && node ./build/build-aml-package.js",
27672
27722
  "build-dev": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev",
27673
27723
  "watch-dev": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev --watch",
27674
27724
  "build-prod": "rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:production",
27675
27725
  "build-csp": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.csp.ts",
27676
27726
  "build-csp-dev": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.csp.ts --environment BUILD:dev",
27677
- "build-css": "postcss -o dist/azuremaps-maplibre-gl.css src/css/azuremaps-maplibre-gl.css",
27678
- "watch-css": "postcss --watch -o dist/azuremaps-maplibre-gl.css src/css/azuremaps-maplibre-gl.css",
27727
+ "build-css": "postcss -o dist/maplibre-gl.css src/css/maplibre-gl.css",
27728
+ "watch-css": "postcss --watch -o dist/maplibre-gl.css src/css/maplibre-gl.css",
27679
27729
  "build-benchmarks": "npm run build-dev && rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts",
27680
27730
  "watch-benchmarks": "rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts --watch",
27681
27731
  "start-server": "st --no-cache -H 0.0.0.0 --port 9966 .",
@@ -27699,7 +27749,14 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27699
27749
  "gl-stats": "node --no-warnings --loader ts-node/esm test/bench/gl-stats.ts",
27700
27750
  prepare: "npm run codegen",
27701
27751
  typecheck: "tsc --noEmit && tsc --project tsconfig.dist.json",
27702
- tsnode: "node --experimental-loader=ts-node/esm --no-warnings"
27752
+ tsnode: "node --experimental-loader=ts-node/esm --no-warnings",
27753
+ "build-aml-css": "postcss -o dist/azuremaps-maplibre-gl.css src/css/azuremaps-maplibre-gl.css",
27754
+ "watch-aml-css": "postcss --watch -o dist/azuremaps-maplibre-gl.css src/css/azuremaps-maplibre-gl.css",
27755
+ "build-es2017-dev": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.es2017.ts --environment BUILD:dev",
27756
+ "build-es2017": "rollup --configPlugin @rollup/plugin-typescript -c rollup.config.es2017.ts --environment BUILD:production",
27757
+ "generate-aml-typings": "dts-bundle-generator --export-referenced-types --umd-module-name=maplibregl -o ./dist/azuremaps-maplibre-gl.d.ts ./src/index.ts",
27758
+ "build-aml-dist": "npm run generate-aml-typings && run-p --print-label build-aml-css build-dev build-prod build-es2017-dev build-es2017",
27759
+ "build-aml-package": "npm run build-aml-dist && node ./build/build-aml-package.js"
27703
27760
  };
27704
27761
  var files = [
27705
27762
  "build/",
@@ -27718,7 +27775,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27718
27775
  main: main,
27719
27776
  style: style,
27720
27777
  license: license,
27778
+ homepage: homepage,
27721
27779
  funding: funding,
27780
+ bugs: bugs,
27722
27781
  repository: repository,
27723
27782
  types: types,
27724
27783
  type: type,
@@ -28148,20 +28207,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28148
28207
  })(ImageRequest || (ImageRequest = {}));
28149
28208
  ImageRequest.resetRequestQueue();
28150
28209
 
28151
- /**
28152
- * A type of MapLibre resource.
28153
- */
28154
- var ResourceType;
28155
- (function (ResourceType) {
28156
- ResourceType["Glyphs"] = "Glyphs";
28157
- ResourceType["Image"] = "Image";
28158
- ResourceType["Source"] = "Source";
28159
- ResourceType["SpriteImage"] = "SpriteImage";
28160
- ResourceType["SpriteJSON"] = "SpriteJSON";
28161
- ResourceType["Style"] = "Style";
28162
- ResourceType["Tile"] = "Tile";
28163
- ResourceType["Unknown"] = "Unknown";
28164
- })(ResourceType || (ResourceType = {}));
28165
28210
  class RequestManager {
28166
28211
  constructor(transformRequestFn) {
28167
28212
  this._transformRequestFn = transformRequestFn;
@@ -28231,9 +28276,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28231
28276
  const jsonsMap = {};
28232
28277
  const imagesMap = {};
28233
28278
  for (const { id, url } of spriteArray) {
28234
- const jsonRequestParameters = requestManager.transformRequest(requestManager.normalizeSpriteURL(url, format, '.json'), ResourceType.SpriteJSON);
28279
+ const jsonRequestParameters = requestManager.transformRequest(requestManager.normalizeSpriteURL(url, format, '.json'), "SpriteJSON" /* ResourceType.SpriteJSON */);
28235
28280
  jsonsMap[id] = performance$1.getJSON(jsonRequestParameters, abortController);
28236
- const imageRequestParameters = requestManager.transformRequest(requestManager.normalizeSpriteURL(url, format, '.png'), ResourceType.SpriteImage);
28281
+ const imageRequestParameters = requestManager.transformRequest(requestManager.normalizeSpriteURL(url, format, '.png'), "SpriteImage" /* ResourceType.SpriteImage */);
28237
28282
  imagesMap[id] = ImageRequest.getImage(imageRequestParameters, abortController);
28238
28283
  }
28239
28284
  yield Promise.all([...Object.values(jsonsMap), ...Object.values(imagesMap)]);
@@ -28605,7 +28650,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28605
28650
  return performance$1.__awaiter(this, void 0, void 0, function* () {
28606
28651
  const begin = range * 256;
28607
28652
  const end = begin + 255;
28608
- const request = requestManager.transformRequest(urlTemplate.replace('{fontstack}', fontstack).replace('{range}', `${begin}-${end}`), ResourceType.Glyphs);
28653
+ const request = requestManager.transformRequest(urlTemplate.replace('{fontstack}', fontstack).replace('{range}', `${begin}-${end}`), "Glyphs" /* ResourceType.Glyphs */);
28609
28654
  const response = yield performance$1.getArrayBuffer(request, new AbortController());
28610
28655
  if (!response || !response.data) {
28611
28656
  throw new Error(`Could not load glyph range. range: ${range}, ${begin}-${end}`);
@@ -29308,7 +29353,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29308
29353
  function getGlobalDispatcher() {
29309
29354
  if (!globalDispatcher) {
29310
29355
  globalDispatcher = new Dispatcher(getGlobalWorkerPool(), performance$1.GLOBAL_DISPATCHER_ID);
29311
- globalDispatcher.registerMessageHandler('getResource', (_mapId, params, abortController) => {
29356
+ globalDispatcher.registerMessageHandler("GR" /* MessageType.getResource */, (_mapId, params, abortController) => {
29312
29357
  return performance$1.makeRequest(params, abortController);
29313
29358
  });
29314
29359
  }
@@ -29472,7 +29517,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29472
29517
  return performance$1.__awaiter(this, void 0, void 0, function* () {
29473
29518
  let tileJSON = options;
29474
29519
  if (options.url) {
29475
- const response = yield performance$1.getJSON(requestManager.transformRequest(options.url, ResourceType.Source), abortController);
29520
+ const response = yield performance$1.getJSON(requestManager.transformRequest(options.url, "Source" /* ResourceType.Source */), abortController);
29476
29521
  tileJSON = response.data;
29477
29522
  }
29478
29523
  else {
@@ -29940,7 +29985,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29940
29985
  return performance$1.__awaiter(this, void 0, void 0, function* () {
29941
29986
  const url = tile.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme);
29942
29987
  const params = {
29943
- request: this.map._requestManager.transformRequest(url, ResourceType.Tile),
29988
+ request: this.map._requestManager.transformRequest(url, "Tile" /* ResourceType.Tile */),
29944
29989
  uid: tile.uid,
29945
29990
  tileID: tile.tileID,
29946
29991
  zoom: tile.tileID.overscaledZ,
@@ -29952,10 +29997,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29952
29997
  promoteId: this.promoteId
29953
29998
  };
29954
29999
  params.request.collectResourceTiming = this._collectResourceTiming;
29955
- let messageType = 'reloadTile';
30000
+ let messageType = "RT" /* MessageType.reloadTile */;
29956
30001
  if (!tile.actor || tile.state === 'expired') {
29957
30002
  tile.actor = this.dispatcher.getActor();
29958
- messageType = 'loadTile';
30003
+ messageType = "LT" /* MessageType.loadTile */;
29959
30004
  }
29960
30005
  else if (tile.state === 'loading') {
29961
30006
  return new Promise((resolve, reject) => {
@@ -30004,7 +30049,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30004
30049
  delete tile.abortController;
30005
30050
  }
30006
30051
  if (tile.actor) {
30007
- yield tile.actor.sendAsync({ type: 'abortTile', data: { uid: tile.uid, type: this.type, source: this.id } });
30052
+ yield tile.actor.sendAsync({
30053
+ type: "AT" /* MessageType.abortTile */,
30054
+ data: { uid: tile.uid, type: this.type, source: this.id }
30055
+ });
30008
30056
  }
30009
30057
  });
30010
30058
  }
@@ -30012,7 +30060,14 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30012
30060
  return performance$1.__awaiter(this, void 0, void 0, function* () {
30013
30061
  tile.unloadVectorData();
30014
30062
  if (tile.actor) {
30015
- yield tile.actor.sendAsync({ type: 'removeTile', data: { uid: tile.uid, type: this.type, source: this.id } });
30063
+ yield tile.actor.sendAsync({
30064
+ type: "RMT" /* MessageType.removeTile */,
30065
+ data: {
30066
+ uid: tile.uid,
30067
+ type: this.type,
30068
+ source: this.id
30069
+ }
30070
+ });
30016
30071
  }
30017
30072
  });
30018
30073
  }
@@ -30149,7 +30204,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30149
30204
  const url = tile.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme);
30150
30205
  tile.abortController = new AbortController();
30151
30206
  try {
30152
- const response = yield ImageRequest.getImage(this.map._requestManager.transformRequest(url, ResourceType.Tile), tile.abortController, this.map._refreshExpiredTiles);
30207
+ const response = yield ImageRequest.getImage(this.map._requestManager.transformRequest(url, "Tile" /* ResourceType.Tile */), tile.abortController, this.map._refreshExpiredTiles);
30153
30208
  delete tile.abortController;
30154
30209
  if (tile.aborted) {
30155
30210
  tile.state = 'unloaded';
@@ -30239,7 +30294,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30239
30294
  loadTile(tile) {
30240
30295
  return performance$1.__awaiter(this, void 0, void 0, function* () {
30241
30296
  const url = tile.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme);
30242
- const request = this.map._requestManager.transformRequest(url, ResourceType.Tile);
30297
+ const request = this.map._requestManager.transformRequest(url, "Tile" /* ResourceType.Tile */);
30243
30298
  tile.neighboringTiles = this._getNeighboringTiles(tile.tileID);
30244
30299
  tile.abortController = new AbortController();
30245
30300
  try {
@@ -30270,7 +30325,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30270
30325
  if (!tile.actor || tile.state === 'expired') {
30271
30326
  tile.actor = this.dispatcher.getActor();
30272
30327
  /* eslint-disable require-atomic-updates */
30273
- const data = yield tile.actor.sendAsync({ type: 'loadDEMTile', data: params });
30328
+ const data = yield tile.actor.sendAsync({ type: "LDT" /* MessageType.loadDEMTile */, data: params });
30274
30329
  tile.dem = data;
30275
30330
  tile.needsHillshadePrepare = true;
30276
30331
  tile.needsTerrainPrepare = true;
@@ -30344,7 +30399,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30344
30399
  delete tile.neighboringTiles;
30345
30400
  tile.state = 'unloaded';
30346
30401
  if (tile.actor) {
30347
- yield tile.actor.sendAsync({ type: 'removeDEMTile', data: { type: this.type, uid: tile.uid, source: this.id } });
30402
+ yield tile.actor.sendAsync({ type: "RDT" /* MessageType.removeDEMTile */, data: { type: this.type, uid: tile.uid, source: this.id } });
30348
30403
  }
30349
30404
  });
30350
30405
  }
@@ -30530,7 +30585,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30530
30585
  * @returns a promise that is resolved with the zoom number
30531
30586
  */
30532
30587
  getClusterExpansionZoom(clusterId) {
30533
- return this.actor.sendAsync({ type: 'getClusterExpansionZoom', data: { type: this.type, clusterId, source: this.id } });
30588
+ return this.actor.sendAsync({ type: "GCEZ" /* MessageType.getClusterExpansionZoom */, data: { type: this.type, clusterId, source: this.id } });
30534
30589
  }
30535
30590
  /**
30536
30591
  * For clustered sources, fetches the children of the given cluster on the next zoom level (as an array of GeoJSON features).
@@ -30539,7 +30594,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30539
30594
  * @returns a promise that is resolved when the features are retrieved
30540
30595
  */
30541
30596
  getClusterChildren(clusterId) {
30542
- return this.actor.sendAsync({ type: 'getClusterChildren', data: { type: this.type, clusterId, source: this.id } });
30597
+ return this.actor.sendAsync({ type: "GCC" /* MessageType.getClusterChildren */, data: { type: this.type, clusterId, source: this.id } });
30543
30598
  }
30544
30599
  /**
30545
30600
  * For clustered sources, fetches the original points that belong to the cluster (as an array of GeoJSON features).
@@ -30567,7 +30622,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30567
30622
  * ```
30568
30623
  */
30569
30624
  getClusterLeaves(clusterId, limit, offset) {
30570
- return this.actor.sendAsync({ type: 'getClusterLeaves', data: {
30625
+ return this.actor.sendAsync({ type: "GCL" /* MessageType.getClusterLeaves */, data: {
30571
30626
  type: this.type,
30572
30627
  source: this.id,
30573
30628
  clusterId,
@@ -30588,7 +30643,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30588
30643
  options.dataDiff = diff;
30589
30644
  }
30590
30645
  else if (typeof this._data === 'string') {
30591
- options.request = this.map._requestManager.transformRequest(browser.resolveURL(this._data), ResourceType.Source);
30646
+ options.request = this.map._requestManager.transformRequest(browser.resolveURL(this._data), "Source" /* ResourceType.Source */);
30592
30647
  options.request.collectResourceTiming = this._collectResourceTiming;
30593
30648
  }
30594
30649
  else {
@@ -30597,7 +30652,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30597
30652
  this._pendingLoads++;
30598
30653
  this.fire(new performance$1.Event('dataloading', { dataType: 'source' }));
30599
30654
  try {
30600
- const result = yield this.actor.sendAsync({ type: 'loadData', data: options });
30655
+ const result = yield this.actor.sendAsync({ type: "LD" /* MessageType.loadData */, data: options });
30601
30656
  this._pendingLoads--;
30602
30657
  if (this._removed || result.abandoned) {
30603
30658
  this.fire(new performance$1.Event('dataabort', { dataType: 'source' }));
@@ -30631,7 +30686,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30631
30686
  }
30632
30687
  loadTile(tile) {
30633
30688
  return performance$1.__awaiter(this, void 0, void 0, function* () {
30634
- const message = !tile.actor ? 'loadTile' : 'reloadTile';
30689
+ const message = !tile.actor ? "LT" /* MessageType.loadTile */ : "RT" /* MessageType.reloadTile */;
30635
30690
  tile.actor = this.actor;
30636
30691
  const params = {
30637
30692
  type: this.type,
@@ -30650,7 +30705,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30650
30705
  delete tile.abortController;
30651
30706
  tile.unloadVectorData();
30652
30707
  if (!tile.aborted) {
30653
- tile.loadVectorData(data, this.map.painter, message === 'reloadTile');
30708
+ tile.loadVectorData(data, this.map.painter, message === "RT" /* MessageType.reloadTile */);
30654
30709
  }
30655
30710
  });
30656
30711
  }
@@ -30666,12 +30721,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30666
30721
  unloadTile(tile) {
30667
30722
  return performance$1.__awaiter(this, void 0, void 0, function* () {
30668
30723
  tile.unloadVectorData();
30669
- yield this.actor.sendAsync({ type: 'removeTile', data: { uid: tile.uid, type: this.type, source: this.id } });
30724
+ yield this.actor.sendAsync({ type: "RMT" /* MessageType.removeTile */, data: { uid: tile.uid, type: this.type, source: this.id } });
30670
30725
  });
30671
30726
  }
30672
30727
  onRemove() {
30673
30728
  this._removed = true;
30674
- this.actor.sendAsync({ type: 'removeSource', data: { type: this.type, source: this.id } });
30729
+ this.actor.sendAsync({ type: "RS" /* MessageType.removeSource */, data: { type: this.type, source: this.id } });
30675
30730
  }
30676
30731
  serialize() {
30677
30732
  return performance$1.extend({}, this._options, {
@@ -30755,7 +30810,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30755
30810
  this.url = this.options.url;
30756
30811
  this._request = new AbortController();
30757
30812
  try {
30758
- const image = yield ImageRequest.getImage(this.map._requestManager.transformRequest(this.url, ResourceType.Image), this._request);
30813
+ const image = yield ImageRequest.getImage(this.map._requestManager.transformRequest(this.url, "Image" /* ResourceType.Image */), this._request);
30759
30814
  this._request = null;
30760
30815
  this._loaded = true;
30761
30816
  if (image && image.data) {
@@ -30983,7 +31038,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30983
31038
  const options = this.options;
30984
31039
  this.urls = [];
30985
31040
  for (const url of options.urls) {
30986
- this.urls.push(this.map._requestManager.transformRequest(url, ResourceType.Source).url);
31041
+ this.urls.push(this.map._requestManager.transformRequest(url, "Source" /* ResourceType.Source */).url);
30987
31042
  }
30988
31043
  try {
30989
31044
  const video = yield performance$1.getVideo(this.urls);
@@ -31350,65 +31405,78 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31350
31405
  return output;
31351
31406
  }
31352
31407
 
31408
+ const RTLPluginLoadedEventName = 'RTLPluginLoaded';
31409
+
31353
31410
  class RTLMainThreadPlugin extends performance$1.Evented {
31354
31411
  constructor() {
31355
31412
  super(...arguments);
31356
- this.pluginStatus = 'unavailable';
31357
- this.pluginURL = null;
31413
+ this.status = 'unavailable';
31414
+ this.url = null;
31358
31415
  this.dispatcher = getGlobalDispatcher();
31359
- this.queue = [];
31360
31416
  }
31361
- _sendPluginStateToWorker() {
31362
- return performance$1.__awaiter(this, void 0, void 0, function* () {
31363
- yield this.dispatcher.broadcast('syncRTLPluginState', { pluginStatus: this.pluginStatus, pluginURL: this.pluginURL });
31364
- this.fire(new performance$1.Event('pluginStateChange', { pluginStatus: this.pluginStatus, pluginURL: this.pluginURL }));
31417
+ /** Sync RTL plugin state by broadcasting a message to the worker */
31418
+ _syncState(statusToSend) {
31419
+ this.status = statusToSend;
31420
+ return this.dispatcher.broadcast("SRPS" /* MessageType.syncRTLPluginState */, { pluginStatus: statusToSend, pluginURL: this.url })
31421
+ .catch((e) => {
31422
+ this.status = 'error';
31423
+ throw e;
31365
31424
  });
31366
31425
  }
31426
+ /** This one is exposed to outside */
31367
31427
  getRTLTextPluginStatus() {
31368
- return this.pluginStatus;
31428
+ return this.status;
31369
31429
  }
31370
31430
  clearRTLTextPlugin() {
31371
- this.pluginStatus = 'unavailable';
31372
- this.pluginURL = null;
31431
+ this.status = 'unavailable';
31432
+ this.url = null;
31373
31433
  }
31374
- setRTLTextPlugin(url, deferred = false) {
31375
- return performance$1.__awaiter(this, void 0, void 0, function* () {
31376
- if (this.pluginStatus === 'deferred' || this.pluginStatus === 'loading' || this.pluginStatus === 'loaded') {
31434
+ setRTLTextPlugin(url_1) {
31435
+ return performance$1.__awaiter(this, arguments, void 0, function* (url, deferred = false) {
31436
+ if (this.url) {
31437
+ // error
31377
31438
  throw new Error('setRTLTextPlugin cannot be called multiple times.');
31378
31439
  }
31379
- this.pluginURL = browser.resolveURL(url);
31380
- this.pluginStatus = 'deferred';
31381
- yield this._sendPluginStateToWorker();
31382
- if (!deferred) {
31383
- //Start downloading the plugin immediately if not intending to lazy-load
31384
- yield this._downloadRTLTextPlugin();
31385
- }
31386
- });
31387
- }
31388
- _downloadRTLTextPlugin() {
31389
- return performance$1.__awaiter(this, void 0, void 0, function* () {
31390
- if (this.pluginStatus !== 'deferred' || !this.pluginURL) {
31391
- throw new Error('rtl-text-plugin cannot be downloaded unless a pluginURL is specified');
31392
- }
31393
- try {
31394
- this.pluginStatus = 'loading';
31395
- yield this._sendPluginStateToWorker();
31396
- yield performance$1.getArrayBuffer({ url: this.pluginURL }, new AbortController());
31397
- this.pluginStatus = 'loaded';
31440
+ this.url = browser.resolveURL(url);
31441
+ if (!this.url) {
31442
+ throw new Error(`requested url ${url} is invalid`);
31443
+ }
31444
+ if (this.status === 'unavailable') {
31445
+ // from initial state:
31446
+ if (deferred) {
31447
+ this.status = 'deferred';
31448
+ // fire and forget: in this case it does not need wait for the broadcasting result
31449
+ // it is important to sync the deferred status once because
31450
+ // symbol_bucket will be checking it in worker
31451
+ this._syncState(this.status);
31452
+ }
31453
+ else {
31454
+ return this._requestImport();
31455
+ }
31398
31456
  }
31399
- catch (_a) {
31400
- this.pluginStatus = 'error';
31457
+ else if (this.status === 'requested') {
31458
+ return this._requestImport();
31401
31459
  }
31402
- yield this._sendPluginStateToWorker();
31403
31460
  });
31404
31461
  }
31405
- lazyLoadRTLTextPlugin() {
31462
+ /** Send a message to worker which will import the RTL plugin script */
31463
+ _requestImport() {
31406
31464
  return performance$1.__awaiter(this, void 0, void 0, function* () {
31407
- if (this.pluginStatus === 'deferred') {
31408
- yield this._downloadRTLTextPlugin();
31409
- }
31465
+ // all errors/exceptions will be handled by _syncState
31466
+ yield this._syncState('loading');
31467
+ this.status = 'loaded';
31468
+ this.fire(new performance$1.Event(RTLPluginLoadedEventName));
31410
31469
  });
31411
31470
  }
31471
+ /** Start a lazy loading process of RTL plugin */
31472
+ lazyLoad() {
31473
+ if (this.status === 'unavailable') {
31474
+ this.status = 'requested';
31475
+ }
31476
+ else if (this.status === 'deferred') {
31477
+ this._requestImport();
31478
+ }
31479
+ }
31412
31480
  }
31413
31481
  let rtlMainThreadPlugin = null;
31414
31482
  function rtlMainThreadPluginFactory() {
@@ -31520,7 +31588,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31520
31588
  if (bucket instanceof performance$1.SymbolBucket) {
31521
31589
  if (bucket.hasRTLText) {
31522
31590
  this.hasRTLText = true;
31523
- rtlMainThreadPluginFactory().lazyLoadRTLTextPlugin();
31591
+ rtlMainThreadPluginFactory().lazyLoad();
31524
31592
  break;
31525
31593
  }
31526
31594
  }
@@ -35278,7 +35346,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35278
35346
  class Style extends performance$1.Evented {
35279
35347
  constructor(map, options = {}) {
35280
35348
  super();
35281
- this._rtlTextPluginStateChange = () => {
35349
+ this._rtlPluginLoaded = () => {
35282
35350
  for (const id in this.sourceCaches) {
35283
35351
  const sourceType = this.sourceCaches[id].getSource().type;
35284
35352
  if (sourceType === 'vector' || sourceType === 'geojson') {
@@ -35291,10 +35359,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35291
35359
  };
35292
35360
  this.map = map;
35293
35361
  this.dispatcher = new Dispatcher(getGlobalWorkerPool(), map._getMapId());
35294
- this.dispatcher.registerMessageHandler('getGlyphs', (mapId, params) => {
35362
+ this.dispatcher.registerMessageHandler("GG" /* MessageType.getGlyphs */, (mapId, params) => {
35295
35363
  return this.getGlyphs(mapId, params);
35296
35364
  });
35297
- this.dispatcher.registerMessageHandler('getImages', (mapId, params) => {
35365
+ this.dispatcher.registerMessageHandler("GI" /* MessageType.getImages */, (mapId, params) => {
35298
35366
  return this.getImages(mapId, params);
35299
35367
  });
35300
35368
  this.imageManager = new ImageManager();
@@ -35310,8 +35378,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35310
35378
  this._loaded = false;
35311
35379
  this._availableImages = [];
35312
35380
  this._resetUpdates();
35313
- this.dispatcher.broadcast('setReferrer', performance$1.getReferrer());
35314
- rtlMainThreadPluginFactory().on('pluginStateChange', this._rtlTextPluginStateChange);
35381
+ this.dispatcher.broadcast("SR" /* MessageType.setReferrer */, performance$1.getReferrer());
35382
+ rtlMainThreadPluginFactory().on(RTLPluginLoadedEventName, this._rtlPluginLoaded);
35315
35383
  this.on('data', (event) => {
35316
35384
  if (event.dataType !== 'source' || event.sourceDataType !== 'metadata') {
35317
35385
  return;
@@ -35336,7 +35404,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35336
35404
  this.fire(new performance$1.Event('dataloading', { dataType: 'style' }));
35337
35405
  options.validate = typeof options.validate === 'boolean' ?
35338
35406
  options.validate : true;
35339
- const request = this.map._requestManager.transformRequest(url, ResourceType.Style);
35407
+ const request = this.map._requestManager.transformRequest(url, "Style" /* ResourceType.Style */);
35340
35408
  this._loadStyleRequest = new AbortController();
35341
35409
  performance$1.getJSON(request, this._loadStyleRequest).then((response) => {
35342
35410
  this._loadStyleRequest = null;
@@ -35389,7 +35457,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35389
35457
  const dereferencedLayers = performance$1.derefLayers(this.stylesheet.layers);
35390
35458
  // Broadcast layers to workers first, so that expensive style processing (createStyleLayer)
35391
35459
  // can happen in parallel on both main and worker threads.
35392
- this.dispatcher.broadcast('setLayers', dereferencedLayers);
35460
+ this.dispatcher.broadcast("SL" /* MessageType.setLayers */, dereferencedLayers);
35393
35461
  this._order = dereferencedLayers.map((layer) => layer.id);
35394
35462
  this._layers = {};
35395
35463
  // reset serialization field, to be populated only when needed
@@ -35442,7 +35510,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35442
35510
  if (isUpdate) {
35443
35511
  this._changed = true;
35444
35512
  }
35445
- this.dispatcher.broadcast('setImages', this._availableImages);
35513
+ this.dispatcher.broadcast("SI" /* MessageType.setImages */, this._availableImages);
35446
35514
  this.fire(new performance$1.Event('data', { dataType: 'style' }));
35447
35515
  if (completion) {
35448
35516
  completion(err);
@@ -35457,7 +35525,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35457
35525
  this._spritesImagesIds = {};
35458
35526
  this._availableImages = this.imageManager.listImages();
35459
35527
  this._changed = true;
35460
- this.dispatcher.broadcast('setImages', this._availableImages);
35528
+ this.dispatcher.broadcast("SI" /* MessageType.setImages */, this._availableImages);
35461
35529
  this.fire(new performance$1.Event('data', { dataType: 'style' }));
35462
35530
  }
35463
35531
  _validateLayer(layer) {
@@ -35628,7 +35696,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35628
35696
  }
35629
35697
  }
35630
35698
  _updateWorkerLayers(updatedIds, removedIds) {
35631
- this.dispatcher.broadcast('updateLayers', {
35699
+ this.dispatcher.broadcast("UL" /* MessageType.updateLayers */, {
35632
35700
  layers: this._serializeByIds(updatedIds),
35633
35701
  removedIds
35634
35702
  });
@@ -35763,7 +35831,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
35763
35831
  this._availableImages = this.imageManager.listImages();
35764
35832
  this._changedImages[id] = true;
35765
35833
  this._changed = true;
35766
- this.dispatcher.broadcast('setImages', this._availableImages);
35834
+ this.dispatcher.broadcast("SI" /* MessageType.setImages */, this._availableImages);
35767
35835
  this.fire(new performance$1.Event('data', { dataType: 'style' }));
35768
35836
  }
35769
35837
  listImages() {
@@ -36342,7 +36410,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
36342
36410
  this._spriteRequest.abort();
36343
36411
  this._spriteRequest = null;
36344
36412
  }
36345
- rtlMainThreadPluginFactory().off('pluginStateChange', this._rtlTextPluginStateChange);
36413
+ rtlMainThreadPluginFactory().off(RTLPluginLoadedEventName, this._rtlPluginLoaded);
36346
36414
  for (const layerId in this._layers) {
36347
36415
  const layer = this._layers[layerId];
36348
36416
  layer.setEventedParent(null);
@@ -36354,6 +36422,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
36354
36422
  }
36355
36423
  this.imageManager.setEventedParent(null);
36356
36424
  this.setEventedParent(null);
36425
+ if (mapRemoved) {
36426
+ this.dispatcher.broadcast("RM" /* MessageType.removeMap */, undefined);
36427
+ }
36357
36428
  this.dispatcher.remove(mapRemoved);
36358
36429
  }
36359
36430
  _clearSource(id) {
@@ -36528,7 +36599,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
36528
36599
  delete this._spritesImagesIds[id];
36529
36600
  this._availableImages = this.imageManager.listImages();
36530
36601
  this._changed = true;
36531
- this.dispatcher.broadcast('setImages', this._availableImages);
36602
+ this.dispatcher.broadcast("SI" /* MessageType.setImages */, this._availableImages);
36532
36603
  this.fire(new performance$1.Event('data', { dataType: 'style' }));
36533
36604
  }
36534
36605
  /**
@@ -39071,12 +39142,10 @@ uniform ${precision} ${type} u_${name};
39071
39142
  for (const segmentState of tileRenderState) {
39072
39143
  const state = segmentState.state;
39073
39144
  context.activeTexture.set(gl.TEXTURE0);
39074
- // @ts-ignore
39075
39145
  state.atlasTexture.bind(state.atlasInterpolation, gl.CLAMP_TO_EDGE);
39076
39146
  if (state.atlasTextureIcon) {
39077
39147
  context.activeTexture.set(gl.TEXTURE1);
39078
39148
  if (state.atlasTextureIcon) {
39079
- // @ts-ignore
39080
39149
  state.atlasTextureIcon.bind(state.atlasInterpolationIcon, gl.CLAMP_TO_EDGE);
39081
39150
  }
39082
39151
  }
@@ -39944,7 +40013,7 @@ uniform ${precision} ${type} u_${name};
39944
40013
  this.context = new Context(gl);
39945
40014
  this.transform = transform;
39946
40015
  this._tileTextures = {};
39947
- this.terrainFacilitator = { dirty: true, matrix: performance$1.create(), renderTime: 0 };
40016
+ this.terrainFacilitator = { dirty: true, matrix: performance$1.identity(new Float64Array(16)), renderTime: 0 };
39948
40017
  this.setup();
39949
40018
  // Within each layer there are multiple distinct z-planes that can be drawn to.
39950
40019
  // This is implemented using the WebGL depth buffer.
@@ -40153,19 +40222,11 @@ uniform ${precision} ${type} u_${name};
40153
40222
  break;
40154
40223
  }
40155
40224
  }
40225
+ this.maybeDrawDepthAndCoords(false);
40156
40226
  if (this.renderToTexture) {
40157
40227
  this.renderToTexture.prepareForRender(this.style, this.transform.zoom);
40158
40228
  // this is disabled, because render-to-texture is rendering all layers from bottom to top.
40159
40229
  this.opaquePassCutoff = 0;
40160
- // update coords/depth-framebuffer on camera movement, or tile reloading
40161
- const newTiles = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime);
40162
- if (this.terrainFacilitator.dirty || !performance$1.equals(this.terrainFacilitator.matrix, this.transform.projMatrix) || newTiles.length) {
40163
- performance$1.copy(this.terrainFacilitator.matrix, this.transform.projMatrix);
40164
- this.terrainFacilitator.renderTime = Date.now();
40165
- this.terrainFacilitator.dirty = false;
40166
- drawDepth(this, this.style.map.terrain);
40167
- drawCoords(this, this.style.map.terrain);
40168
- }
40169
40230
  }
40170
40231
  // Offscreen pass ===============================================
40171
40232
  // We first do all rendering that requires rendering to a separate
@@ -40228,6 +40289,30 @@ uniform ${precision} ${type} u_${name};
40228
40289
  // encounters more expected values.
40229
40290
  this.context.setDefault();
40230
40291
  }
40292
+ /**
40293
+ * Update the depth and coords framebuffers, if the contents of those frame buffers is out of date.
40294
+ * If requireExact is false, then the contents of those frame buffers is not updated if it is close
40295
+ * to accurate (that is, the camera has not moved much since it was updated last).
40296
+ */
40297
+ maybeDrawDepthAndCoords(requireExact) {
40298
+ if (!this.style || !this.style.map || !this.style.map.terrain) {
40299
+ return;
40300
+ }
40301
+ const prevMatrix = this.terrainFacilitator.matrix;
40302
+ const currMatrix = this.transform.projMatrix;
40303
+ // Update coords/depth-framebuffer on camera movement, or tile reloading
40304
+ let doUpdate = this.terrainFacilitator.dirty;
40305
+ doUpdate || (doUpdate = requireExact ? !performance$1.exactEquals(prevMatrix, currMatrix) : !performance$1.equals(prevMatrix, currMatrix));
40306
+ doUpdate || (doUpdate = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length > 0);
40307
+ if (!doUpdate) {
40308
+ return;
40309
+ }
40310
+ performance$1.copy(prevMatrix, currMatrix);
40311
+ this.terrainFacilitator.renderTime = Date.now();
40312
+ this.terrainFacilitator.dirty = false;
40313
+ drawDepth(this, this.style.map.terrain);
40314
+ drawCoords(this, this.style.map.terrain);
40315
+ }
40231
40316
  renderLayer(painter, sourceCache, layer, coords) {
40232
40317
  if (layer.isHidden(this.transform.zoom))
40233
40318
  return;
@@ -40575,6 +40660,7 @@ uniform ${precision} ${type} u_${name};
40575
40660
  }
40576
40661
  }
40577
40662
 
40663
+ const MAX_VALID_LATITUDE = 85.051129;
40578
40664
  /**
40579
40665
  * @internal
40580
40666
  * A single transform, generally used for a single tile to be
@@ -40583,7 +40669,6 @@ uniform ${precision} ${type} u_${name};
40583
40669
  class Transform {
40584
40670
  constructor(minZoom, maxZoom, minPitch, maxPitch, renderWorldCopies) {
40585
40671
  this.tileSize = 512; // constant
40586
- this.maxValidLatitude = 85.051129; // constant
40587
40672
  this._renderWorldCopies = renderWorldCopies === undefined ? true : !!renderWorldCopies;
40588
40673
  this._minZoom = minZoom || 0;
40589
40674
  this._maxZoom = maxZoom || 22;
@@ -40729,6 +40814,9 @@ uniform ${precision} ${type} u_${name};
40729
40814
  this._constrain();
40730
40815
  this._calcMatrices();
40731
40816
  }
40817
+ /**
40818
+ * Elevation at current center point, meters above sea level
40819
+ */
40732
40820
  get elevation() { return this._elevation; }
40733
40821
  set elevation(elevation) {
40734
40822
  if (elevation === this._elevation)
@@ -40926,7 +41014,7 @@ uniform ${precision} ${type} u_${name};
40926
41014
  * @returns Point
40927
41015
  */
40928
41016
  project(lnglat) {
40929
- const lat = performance$1.clamp(lnglat.lat, -this.maxValidLatitude, this.maxValidLatitude);
41017
+ const lat = performance$1.clamp(lnglat.lat, -MAX_VALID_LATITUDE, MAX_VALID_LATITUDE);
40930
41018
  return new performance$1.Point(performance$1.mercatorXfromLng(lnglat.lng) * this.worldSize, performance$1.mercatorYfromLat(lat) * this.worldSize);
40931
41019
  }
40932
41020
  /**
@@ -40954,20 +41042,24 @@ uniform ${precision} ${type} u_${name};
40954
41042
  * @param terrain - the terrain
40955
41043
  */
40956
41044
  recalculateZoom(terrain) {
41045
+ const origElevation = this.elevation;
41046
+ const origAltitude = Math.cos(this._pitch) * this.cameraToCenterDistance / this._pixelPerMeter;
40957
41047
  // find position the camera is looking on
40958
41048
  const center = this.pointLocation(this.centerPoint, terrain);
40959
41049
  const elevation = terrain.getElevationForLngLatZoom(center, this.tileZoom);
40960
41050
  const deltaElevation = this.elevation - elevation;
40961
41051
  if (!deltaElevation)
40962
41052
  return;
40963
- // calculate mercator distance between camera & target
40964
- const cameraPosition = this.getCameraPosition();
40965
- const camera = performance$1.MercatorCoordinate.fromLngLat(cameraPosition.lngLat, cameraPosition.altitude);
40966
- const target = performance$1.MercatorCoordinate.fromLngLat(center, elevation);
40967
- const dx = camera.x - target.x, dy = camera.y - target.y, dz = camera.z - target.z;
40968
- const distance = Math.sqrt(dx * dx + dy * dy + dz * dz);
40969
- // from this distance we calculate the new zoomlevel
40970
- const zoom = this.scaleZoom(this.cameraToCenterDistance / distance / this.tileSize);
41053
+ // The camera's altitude off the ground + the ground's elevation = a constant:
41054
+ // this means the camera stays at the same total height.
41055
+ const requiredAltitude = origAltitude + origElevation - elevation;
41056
+ // Since altitude = Math.cos(this._pitch) * this.cameraToCenterDistance / pixelPerMeter:
41057
+ const requiredPixelPerMeter = Math.cos(this._pitch) * this.cameraToCenterDistance / requiredAltitude;
41058
+ // Since pixelPerMeter = mercatorZfromAltitude(1, center.lat) * worldSize:
41059
+ const requiredWorldSize = requiredPixelPerMeter / performance$1.mercatorZfromAltitude(1, center.lat);
41060
+ // Since worldSize = this.tileSize * scale:
41061
+ const requiredScale = requiredWorldSize / this.tileSize;
41062
+ const zoom = this.scaleZoom(requiredScale);
40971
41063
  // update matrices
40972
41064
  this._elevation = elevation;
40973
41065
  this._center = center;
@@ -41110,7 +41202,7 @@ uniform ${precision} ${type} u_${name};
41110
41202
  }
41111
41203
  else {
41112
41204
  this.lngRange = null;
41113
- this.latRange = [-this.maxValidLatitude, this.maxValidLatitude];
41205
+ this.latRange = [-MAX_VALID_LATITUDE, MAX_VALID_LATITUDE];
41114
41206
  }
41115
41207
  }
41116
41208
  /**
@@ -41136,60 +41228,92 @@ uniform ${precision} ${type} u_${name};
41136
41228
  customLayerMatrix() {
41137
41229
  return this.mercatorMatrix.slice();
41138
41230
  }
41139
- _constrain() {
41140
- if (!this.center || !this.width || !this.height || this._constraining)
41141
- return;
41142
- this._constraining = true;
41143
- let minY = -90;
41144
- let maxY = 90;
41145
- let minX = -180;
41146
- let maxX = 180;
41147
- let sy, sx, x2, y2;
41148
- const size = this.size, unmodified = this._unmodified;
41231
+ /**
41232
+ * Get center lngLat and zoom to ensure that
41233
+ * 1) everything beyond the bounds is excluded
41234
+ * 2) a given lngLat is as near the center as possible
41235
+ * Bounds are those set by maxBounds or North & South "Poles" and, if only 1 globe is displayed, antimeridian.
41236
+ */
41237
+ getConstrained(lngLat, zoom) {
41238
+ zoom = performance$1.clamp(+zoom, this.minZoom, this.maxZoom);
41239
+ const result = {
41240
+ center: new performance$1.LngLat(lngLat.lng, lngLat.lat),
41241
+ zoom
41242
+ };
41243
+ let lngRange = this.lngRange;
41244
+ if (!this._renderWorldCopies && lngRange === null) {
41245
+ const almost180 = 180 - 1e-10;
41246
+ lngRange = [-almost180, almost180];
41247
+ }
41248
+ const worldSize = this.tileSize * this.zoomScale(result.zoom); // A world size for the requested zoom level, not the current world size
41249
+ let minY = 0;
41250
+ let maxY = worldSize;
41251
+ let minX = 0;
41252
+ let maxX = worldSize;
41253
+ let scaleY = 0;
41254
+ let scaleX = 0;
41255
+ const { x: screenWidth, y: screenHeight } = this.size;
41149
41256
  if (this.latRange) {
41150
41257
  const latRange = this.latRange;
41151
- minY = performance$1.mercatorYfromLat(latRange[1]) * this.worldSize;
41152
- maxY = performance$1.mercatorYfromLat(latRange[0]) * this.worldSize;
41153
- sy = maxY - minY < size.y ? size.y / (maxY - minY) : 0;
41154
- }
41155
- if (this.lngRange) {
41156
- const lngRange = this.lngRange;
41157
- minX = performance$1.wrap(performance$1.mercatorXfromLng(lngRange[0]) * this.worldSize, 0, this.worldSize);
41158
- maxX = performance$1.wrap(performance$1.mercatorXfromLng(lngRange[1]) * this.worldSize, 0, this.worldSize);
41258
+ minY = performance$1.mercatorYfromLat(latRange[1]) * worldSize;
41259
+ maxY = performance$1.mercatorYfromLat(latRange[0]) * worldSize;
41260
+ const shouldZoomIn = maxY - minY < screenHeight;
41261
+ if (shouldZoomIn)
41262
+ scaleY = screenHeight / (maxY - minY);
41263
+ }
41264
+ if (lngRange) {
41265
+ minX = performance$1.wrap(performance$1.mercatorXfromLng(lngRange[0]) * worldSize, 0, worldSize);
41266
+ maxX = performance$1.wrap(performance$1.mercatorXfromLng(lngRange[1]) * worldSize, 0, worldSize);
41159
41267
  if (maxX < minX)
41160
- maxX += this.worldSize;
41161
- sx = maxX - minX < size.x ? size.x / (maxX - minX) : 0;
41162
- }
41163
- const point = this.point;
41164
- // how much the map should scale to fit the screen into given latitude/longitude ranges
41165
- const s = Math.max(sx || 0, sy || 0);
41166
- if (s) {
41167
- this.center = this.unproject(new performance$1.Point(sx ? (maxX + minX) / 2 : point.x, sy ? (maxY + minY) / 2 : point.y));
41168
- this.zoom += this.scaleZoom(s);
41169
- this._unmodified = unmodified;
41170
- this._constraining = false;
41171
- return;
41268
+ maxX += worldSize;
41269
+ const shouldZoomIn = maxX - minX < screenWidth;
41270
+ if (shouldZoomIn)
41271
+ scaleX = screenWidth / (maxX - minX);
41272
+ }
41273
+ const { x: originalX, y: originalY } = this.project.call({ worldSize }, lngLat);
41274
+ let modifiedX, modifiedY;
41275
+ const scale = Math.max(scaleX || 0, scaleY || 0);
41276
+ if (scale) {
41277
+ // zoom in to exclude all beyond the given lng/lat ranges
41278
+ const newPoint = new performance$1.Point(scaleX ? (maxX + minX) / 2 : originalX, scaleY ? (maxY + minY) / 2 : originalY);
41279
+ result.center = this.unproject.call({ worldSize }, newPoint).wrap();
41280
+ result.zoom += this.scaleZoom(scale);
41281
+ return result;
41172
41282
  }
41173
41283
  if (this.latRange) {
41174
- const y = point.y, h2 = size.y / 2;
41175
- if (y - h2 < minY)
41176
- y2 = minY + h2;
41177
- if (y + h2 > maxY)
41178
- y2 = maxY - h2;
41284
+ const h2 = screenHeight / 2;
41285
+ if (originalY - h2 < minY)
41286
+ modifiedY = minY + h2;
41287
+ if (originalY + h2 > maxY)
41288
+ modifiedY = maxY - h2;
41179
41289
  }
41180
- if (this.lngRange) {
41290
+ if (lngRange) {
41181
41291
  const centerX = (minX + maxX) / 2;
41182
- const x = performance$1.wrap(point.x, centerX - this.worldSize / 2, centerX + this.worldSize / 2);
41183
- const w2 = size.x / 2;
41184
- if (x - w2 < minX)
41185
- x2 = minX + w2;
41186
- if (x + w2 > maxX)
41187
- x2 = maxX - w2;
41292
+ let wrappedX = originalX;
41293
+ if (this._renderWorldCopies) {
41294
+ wrappedX = performance$1.wrap(originalX, centerX - worldSize / 2, centerX + worldSize / 2);
41295
+ }
41296
+ const w2 = screenWidth / 2;
41297
+ if (wrappedX - w2 < minX)
41298
+ modifiedX = minX + w2;
41299
+ if (wrappedX + w2 > maxX)
41300
+ modifiedX = maxX - w2;
41188
41301
  }
41189
41302
  // pan the map if the screen goes off the range
41190
- if (x2 !== undefined || y2 !== undefined) {
41191
- this.center = this.unproject(new performance$1.Point(x2 !== undefined ? x2 : point.x, y2 !== undefined ? y2 : point.y)).wrap();
41303
+ if (modifiedX !== undefined || modifiedY !== undefined) {
41304
+ const newPoint = new performance$1.Point(modifiedX !== null && modifiedX !== void 0 ? modifiedX : originalX, modifiedY !== null && modifiedY !== void 0 ? modifiedY : originalY);
41305
+ result.center = this.unproject.call({ worldSize }, newPoint).wrap();
41192
41306
  }
41307
+ return result;
41308
+ }
41309
+ _constrain() {
41310
+ if (!this.center || !this.width || !this.height || this._constraining)
41311
+ return;
41312
+ this._constraining = true;
41313
+ const unmodified = this._unmodified;
41314
+ const { center, zoom } = this.getConstrained(this.center, this.zoom);
41315
+ this.center = center;
41316
+ this.zoom = zoom;
41193
41317
  this._unmodified = unmodified;
41194
41318
  this._constraining = false;
41195
41319
  }
@@ -44699,6 +44823,7 @@ uniform ${precision} ${type} u_${name};
44699
44823
  * @see [Navigate the map with game-like controls](https://maplibre.org/maplibre-gl-js/docs/examples/game-controls/)
44700
44824
  */
44701
44825
  easeTo(options, eventData) {
44826
+ var _a;
44702
44827
  this._stop(false, options.easeId);
44703
44828
  options = performance$1.extend({
44704
44829
  offset: [0, 0],
@@ -44707,11 +44832,11 @@ uniform ${precision} ${type} u_${name};
44707
44832
  }, options);
44708
44833
  if (options.animate === false || (!options.essential && browser.prefersReducedMotion))
44709
44834
  options.duration = 0;
44710
- const tr = this._getTransformForUpdate(), startZoom = this.getZoom(), startBearing = this.getBearing(), startPitch = this.getPitch(), startPadding = this.getPadding(), zoom = 'zoom' in options ? +options.zoom : startZoom, bearing = 'bearing' in options ? this._normalizeBearing(options.bearing, startBearing) : startBearing, pitch = 'pitch' in options ? +options.pitch : startPitch, padding = 'padding' in options ? options.padding : tr.padding;
44835
+ const tr = this._getTransformForUpdate(), startZoom = this.getZoom(), startBearing = this.getBearing(), startPitch = this.getPitch(), startPadding = this.getPadding(), bearing = 'bearing' in options ? this._normalizeBearing(options.bearing, startBearing) : startBearing, pitch = 'pitch' in options ? +options.pitch : startPitch, padding = 'padding' in options ? options.padding : tr.padding;
44711
44836
  const offsetAsPoint = performance$1.Point.convert(options.offset);
44712
44837
  let pointAtOffset = tr.centerPoint.add(offsetAsPoint);
44713
44838
  const locationAtOffset = tr.pointLocation(pointAtOffset);
44714
- const center = performance$1.LngLat.convert(options.center || locationAtOffset);
44839
+ const { center, zoom } = tr.getConstrained(performance$1.LngLat.convert(options.center || locationAtOffset), (_a = options.zoom) !== null && _a !== void 0 ? _a : startZoom);
44715
44840
  this._normalizeCenter(center);
44716
44841
  const from = tr.project(locationAtOffset);
44717
44842
  const delta = tr.project(center).sub(from);
@@ -44927,6 +45052,7 @@ uniform ${precision} ${type} u_${name};
44927
45052
  * @see [Fly to a location based on scroll position](https://maplibre.org/maplibre-gl-js/docs/examples/scroll-fly-to/)
44928
45053
  */
44929
45054
  flyTo(options, eventData) {
45055
+ var _a;
44930
45056
  // Fall through to jumpTo if user has set prefers-reduced-motion
44931
45057
  if (!options.essential && browser.prefersReducedMotion) {
44932
45058
  const coercedOptions = performance$1.pick(options, ['center', 'zoom', 'bearing', 'pitch', 'around']);
@@ -44947,16 +45073,15 @@ uniform ${precision} ${type} u_${name};
44947
45073
  easing: performance$1.defaultEasing
44948
45074
  }, options);
44949
45075
  const tr = this._getTransformForUpdate(), startZoom = this.getZoom(), startBearing = this.getBearing(), startPitch = this.getPitch(), startPadding = this.getPadding();
44950
- const zoom = 'zoom' in options ? performance$1.clamp(+options.zoom, tr.minZoom, tr.maxZoom) : startZoom;
44951
45076
  const bearing = 'bearing' in options ? this._normalizeBearing(options.bearing, startBearing) : startBearing;
44952
45077
  const pitch = 'pitch' in options ? +options.pitch : startPitch;
44953
45078
  const padding = 'padding' in options ? options.padding : tr.padding;
44954
- const scale = tr.zoomScale(zoom - startZoom);
44955
45079
  const offsetAsPoint = performance$1.Point.convert(options.offset);
44956
45080
  let pointAtOffset = tr.centerPoint.add(offsetAsPoint);
44957
45081
  const locationAtOffset = tr.pointLocation(pointAtOffset);
44958
- const center = performance$1.LngLat.convert(options.center || locationAtOffset);
45082
+ const { center, zoom } = tr.getConstrained(performance$1.LngLat.convert(options.center || locationAtOffset), (_a = options.zoom) !== null && _a !== void 0 ? _a : startZoom);
44959
45083
  this._normalizeCenter(center);
45084
+ const scale = tr.zoomScale(zoom - startZoom);
44960
45085
  const from = tr.project(locationAtOffset);
44961
45086
  const delta = tr.project(center).sub(from);
44962
45087
  let rho = options.curve;
@@ -45126,21 +45251,19 @@ uniform ${precision} ${type} u_${name};
45126
45251
  delta < -180 ? 360 : 0;
45127
45252
  }
45128
45253
  /**
45129
- * Query the current elevation of location. Returns `null` if terrain is not enabled. Elevation is in meters relative to mean sea-level.
45254
+ * Get the elevation difference between a given point
45255
+ * and a point that is currently in the middle of the screen.
45256
+ * This method should be used for proper positioning of custom 3d objects, as explained [here](https://maplibre.org/maplibre-gl-js/docs/examples/add-3d-model-with-terrain/)
45257
+ * Returns null if terrain is not enabled.
45258
+ * This method is subject to change in Maplibre GL JS v5.
45130
45259
  * @param lngLatLike - [x,y] or LngLat coordinates of the location
45131
- * @returns elevation in meters
45260
+ * @returns elevation offset in meters
45132
45261
  */
45133
45262
  queryTerrainElevation(lngLatLike) {
45134
45263
  if (!this.terrain) {
45135
45264
  return null;
45136
45265
  }
45137
45266
  const elevation = this.terrain.getElevationForLngLatZoom(performance$1.LngLat.convert(lngLatLike), this.transform.tileZoom);
45138
- /**
45139
- * Different zoomlevels with different terrain-tiles the elevation-values are not the same.
45140
- * map.transform.elevation variable with the center-altitude.
45141
- * In maplibre the proj-matrix is translated by this value in negative z-direction.
45142
- * So we need to add this value to the elevation to get the correct value.
45143
- */
45144
45267
  return elevation - this.transform.elevation;
45145
45268
  }
45146
45269
  }
@@ -45787,11 +45910,16 @@ uniform ${precision} ${type} u_${name};
45787
45910
  * @returns mercator coordinate for a screen pixel
45788
45911
  */
45789
45912
  pointCoordinate(p) {
45913
+ // First, ensure the coords framebuffer is up to date.
45914
+ this.painter.maybeDrawDepthAndCoords(true);
45790
45915
  const rgba = new Uint8Array(4);
45791
45916
  const context = this.painter.context, gl = context.gl;
45917
+ const px = Math.round(p.x * this.painter.pixelRatio / devicePixelRatio);
45918
+ const py = Math.round(p.y * this.painter.pixelRatio / devicePixelRatio);
45919
+ const fbHeight = Math.round(this.painter.height / devicePixelRatio);
45792
45920
  // grab coordinate pixel from coordinates framebuffer
45793
45921
  context.bindFramebuffer.set(this.getFramebuffer('coords').framebuffer);
45794
- gl.readPixels(p.x, this.painter.height / devicePixelRatio - p.y - 1, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, rgba);
45922
+ gl.readPixels(px, fbHeight - py - 1, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, rgba);
45795
45923
  context.bindFramebuffer.set(null);
45796
45924
  // decode coordinates (encoding see getCoordsTexture)
45797
45925
  const x = rgba[0] + ((rgba[2] >> 4) << 8);
@@ -47210,7 +47338,7 @@ uniform ${precision} ${type} u_${name};
47210
47338
  _diffStyle(style, options) {
47211
47339
  if (typeof style === 'string') {
47212
47340
  const url = style;
47213
- const request = this._requestManager.transformRequest(url, ResourceType.Style);
47341
+ const request = this._requestManager.transformRequest(url, "Style" /* ResourceType.Style */);
47214
47342
  performance$1.getJSON(request, new AbortController()).then((response) => {
47215
47343
  this._updateDiff(response.data, options);
47216
47344
  }).catch((error) => {
@@ -47654,7 +47782,7 @@ uniform ${precision} ${type} u_${name};
47654
47782
  * @see [Add an icon to the map](https://maplibre.org/maplibre-gl-js/docs/examples/add-image/)
47655
47783
  */
47656
47784
  loadImage(url) {
47657
- return ImageRequest.getImage(this._requestManager.transformRequest(url, ResourceType.Image), new AbortController());
47785
+ return ImageRequest.getImage(this._requestManager.transformRequest(url, "Image" /* ResourceType.Image */), new AbortController());
47658
47786
  }
47659
47787
  /**
47660
47788
  * Returns an Array of strings containing the IDs of all images currently available in the map.
@@ -48881,8 +49009,8 @@ uniform ${precision} ${type} u_${name};
48881
49009
  }
48882
49010
 
48883
49011
  let supportsGeolocation;
48884
- function checkGeolocationSupport(forceRecalculation = false) {
48885
- return performance$1.__awaiter(this, void 0, void 0, function* () {
49012
+ function checkGeolocationSupport() {
49013
+ return performance$1.__awaiter(this, arguments, void 0, function* (forceRecalculation = false) {
48886
49014
  if (supportsGeolocation !== undefined && !forceRecalculation) {
48887
49015
  return supportsGeolocation;
48888
49016
  }
@@ -49032,6 +49160,7 @@ uniform ${precision} ${type} u_${name};
49032
49160
  }
49033
49161
  };
49034
49162
  this._update = (e) => {
49163
+ var _a;
49035
49164
  if (!this._map)
49036
49165
  return;
49037
49166
  const isFullyLoaded = this._map.loaded() && !this._map.isMoving();
@@ -49041,6 +49170,9 @@ uniform ${precision} ${type} u_${name};
49041
49170
  if (this._map.transform.renderWorldCopies) {
49042
49171
  this._lngLat = smartWrap(this._lngLat, this._flatPos, this._map.transform);
49043
49172
  }
49173
+ else {
49174
+ this._lngLat = (_a = this._lngLat) === null || _a === void 0 ? void 0 : _a.wrap();
49175
+ }
49044
49176
  this._flatPos = this._pos = this._map.project(this._lngLat)._add(this._offset);
49045
49177
  if (this._map.terrain) {
49046
49178
  // flat position is saved because smartWrap needs non-elevated points
@@ -49429,6 +49561,8 @@ uniform ${precision} ${type} u_${name};
49429
49561
  */
49430
49562
  togglePopup() {
49431
49563
  const popup = this._popup;
49564
+ if (this._element.style.opacity === this._opacityWhenCovered)
49565
+ return this;
49432
49566
  if (!popup)
49433
49567
  return this;
49434
49568
  else if (popup.isOpen())
@@ -49440,7 +49574,7 @@ uniform ${precision} ${type} u_${name};
49440
49574
  return this;
49441
49575
  }
49442
49576
  _updateOpacity(force = false) {
49443
- var _a;
49577
+ var _a, _b;
49444
49578
  const terrain = (_a = this._map) === null || _a === void 0 ? void 0 : _a.terrain;
49445
49579
  if (!terrain) {
49446
49580
  if (this._element.style.opacity !== this._opacity) {
@@ -49477,6 +49611,8 @@ uniform ${precision} ${type} u_${name};
49477
49611
  const markerDistanceCenter = map.transform.lngLatToCameraDepth(this._lngLat, elevation + elevationToCenter);
49478
49612
  // Display at full opacity if center is visible.
49479
49613
  const centerIsInvisible = markerDistanceCenter - terrainDistanceCenter > forgiveness;
49614
+ if (((_b = this._popup) === null || _b === void 0 ? void 0 : _b.isOpen()) && centerIsInvisible)
49615
+ this._popup.remove();
49480
49616
  this._element.style.opacity = centerIsInvisible ? this._opacityWhenCovered : this._opacity;
49481
49617
  }
49482
49618
  /**
@@ -50320,10 +50456,14 @@ uniform ${precision} ${type} u_${name};
50320
50456
  constructor(options = {}) {
50321
50457
  super();
50322
50458
  this._onFullscreenChange = () => {
50323
- const fullscreenElement = window.document.fullscreenElement ||
50459
+ var _a;
50460
+ let fullscreenElement = window.document.fullscreenElement ||
50324
50461
  window.document.mozFullScreenElement ||
50325
50462
  window.document.webkitFullscreenElement ||
50326
50463
  window.document.msFullscreenElement;
50464
+ while ((_a = fullscreenElement === null || fullscreenElement === void 0 ? void 0 : fullscreenElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.fullscreenElement) {
50465
+ fullscreenElement = fullscreenElement.shadowRoot.fullscreenElement;
50466
+ }
50327
50467
  if ((fullscreenElement === this._container) !== this._fullscreen) {
50328
50468
  this._handleFullscreenChange();
50329
50469
  }
@@ -50513,7 +50653,8 @@ uniform ${precision} ${type} u_${name};
50513
50653
  closeOnClick: true,
50514
50654
  focusAfterOpen: true,
50515
50655
  className: '',
50516
- maxWidth: '240px'
50656
+ maxWidth: '240px',
50657
+ subpixelPositioning: false
50517
50658
  };
50518
50659
  const focusQuerySelector = [
50519
50660
  'a[href]',
@@ -50613,8 +50754,8 @@ uniform ${precision} ${type} u_${name};
50613
50754
  this._map.off('drag', this._onDrag);
50614
50755
  this._map._canvasContainer.classList.remove('maplibregl-track-pointer');
50615
50756
  delete this._map;
50757
+ this.fire(new performance$1.Event('close'));
50616
50758
  }
50617
- this.fire(new performance$1.Event('close'));
50618
50759
  return this;
50619
50760
  };
50620
50761
  this._onMouseUp = (event) => {
@@ -50627,6 +50768,7 @@ uniform ${precision} ${type} u_${name};
50627
50768
  this._update(event.point);
50628
50769
  };
50629
50770
  this._update = (cursor) => {
50771
+ var _a;
50630
50772
  const hasPosition = this._lngLat || this._trackPointer;
50631
50773
  if (!this._map || !hasPosition || !this._content) {
50632
50774
  return;
@@ -50650,6 +50792,9 @@ uniform ${precision} ${type} u_${name};
50650
50792
  if (this._map.transform.renderWorldCopies && !this._trackPointer) {
50651
50793
  this._lngLat = smartWrap(this._lngLat, this._flatPos, this._map.transform);
50652
50794
  }
50795
+ else {
50796
+ this._lngLat = (_a = this._lngLat) === null || _a === void 0 ? void 0 : _a.wrap();
50797
+ }
50653
50798
  if (this._trackPointer && !cursor)
50654
50799
  return;
50655
50800
  const pos = this._flatPos = this._pos = this._trackPointer && cursor ? cursor : this._map.project(this._lngLat);
@@ -50685,7 +50830,10 @@ uniform ${precision} ${type} u_${name};
50685
50830
  anchor = anchorComponents.join('-');
50686
50831
  }
50687
50832
  }
50688
- const offsetedPos = pos.add(offset[anchor]).round();
50833
+ let offsetedPos = pos.add(offset[anchor]);
50834
+ if (!this.options.subpixelPositioning) {
50835
+ offsetedPos = offsetedPos.round();
50836
+ }
50689
50837
  DOM.setTransform(this._container, `${anchorTranslate[anchor]} translate(${offsetedPos.x}px,${offsetedPos.y}px)`);
50690
50838
  applyAnchorClass(this._container, anchor, 'popup');
50691
50839
  };
@@ -50994,6 +51142,20 @@ uniform ${precision} ${type} u_${name};
50994
51142
  return this._container.classList.toggle(className);
50995
51143
  }
50996
51144
  }
51145
+ /**
51146
+ * Set the option to allow subpixel positioning of the popup by passing a boolean
51147
+ *
51148
+ * @param value - When boolean is true, subpixel positioning is enabled for the popup.
51149
+ *
51150
+ * @example
51151
+ * ```ts
51152
+ * let popup = new Popup()
51153
+ * popup.setSubpixelPositioning(true);
51154
+ * ```
51155
+ */
51156
+ setSubpixelPositioning(value) {
51157
+ this.options.subpixelPositioning = value;
51158
+ }
50997
51159
  _createCloseButton() {
50998
51160
  if (this.options.closeButton) {
50999
51161
  this._closeButton = DOM.create('button', 'maplibregl-popup-close-button', this._content);
@@ -51075,7 +51237,9 @@ uniform ${precision} ${type} u_${name};
51075
51237
  * ```
51076
51238
  * @see [Add support for right-to-left scripts](https://maplibre.org/maplibre-gl-js/docs/examples/mapbox-gl-rtl-text/)
51077
51239
  */
51078
- function setRTLTextPlugin(pluginURL, lazy) { return rtlMainThreadPluginFactory().setRTLTextPlugin(pluginURL, lazy); }
51240
+ function setRTLTextPlugin(pluginURL, lazy) {
51241
+ return rtlMainThreadPluginFactory().setRTLTextPlugin(pluginURL, lazy);
51242
+ }
51079
51243
  /**
51080
51244
  * Gets the map's [RTL text plugin](https://www.mapbox.com/mapbox-gl-js/plugins/#mapbox-gl-rtl-text) status.
51081
51245
  * The status can be `unavailable` (i.e. not requested or removed), `loading`, `loaded` or `error`.
@@ -51086,7 +51250,9 @@ uniform ${precision} ${type} u_${name};
51086
51250
  * const pluginStatus = getRTLTextPluginStatus();
51087
51251
  * ```
51088
51252
  */
51089
- function getRTLTextPluginStatus() { return rtlMainThreadPluginFactory().getRTLTextPluginStatus(); }
51253
+ function getRTLTextPluginStatus() {
51254
+ return rtlMainThreadPluginFactory().getRTLTextPluginStatus();
51255
+ }
51090
51256
  /**
51091
51257
  * Returns the package version of the library
51092
51258
  * @returns Package version of the library
@@ -51176,7 +51342,7 @@ uniform ${precision} ${type} u_${name};
51176
51342
  * importScriptInWorkers('add-protocol-worker.js');
51177
51343
  * ```
51178
51344
  */
51179
- function importScriptInWorkers(workerUrl) { return getGlobalDispatcher().broadcast('importScript', workerUrl); }
51345
+ function importScriptInWorkers(workerUrl) { return getGlobalDispatcher().broadcast("IS" /* MessageType.importScript */, workerUrl); }
51180
51346
 
51181
51347
  exports.AJAXError = performance$1.AJAXError;
51182
51348
  exports.Evented = performance$1.Evented;
@@ -51489,7 +51655,7 @@ uniform ${precision} ${type} u_${name};
51489
51655
  return Options;
51490
51656
  }());
51491
51657
 
51492
- var __extends$1j = (window && window.__extends) || (function () {
51658
+ var __extends$1l = (window && window.__extends) || (function () {
51493
51659
  var extendStatics = function (d, b) {
51494
51660
  extendStatics = Object.setPrototypeOf ||
51495
51661
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -51524,7 +51690,7 @@ uniform ${precision} ${type} u_${name};
51524
51690
  * @private
51525
51691
  */
51526
51692
  var UrlOptions = /** @class */ (function (_super) {
51527
- __extends$1j(UrlOptions, _super);
51693
+ __extends$1l(UrlOptions, _super);
51528
51694
  function UrlOptions() {
51529
51695
  var _this = _super !== null && _super.apply(this, arguments) || this;
51530
51696
  _this.domain = undefined;
@@ -52051,7 +52217,7 @@ uniform ${precision} ${type} u_${name};
52051
52217
  return UserAgent;
52052
52218
  }());
52053
52219
 
52054
- var version$3 = "3.2.0";
52220
+ var version$3 = "3.3.0";
52055
52221
 
52056
52222
  /**
52057
52223
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -52083,7 +52249,7 @@ uniform ${precision} ${type} u_${name};
52083
52249
  return Version;
52084
52250
  }());
52085
52251
 
52086
- var __extends$1i = (window && window.__extends) || (function () {
52252
+ var __extends$1k = (window && window.__extends) || (function () {
52087
52253
  var extendStatics = function (d, b) {
52088
52254
  extendStatics = Object.setPrototypeOf ||
52089
52255
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -52157,7 +52323,7 @@ uniform ${precision} ${type} u_${name};
52157
52323
  * Options for specifying how the map control should authenticate with the Azure Maps services.
52158
52324
  */
52159
52325
  var AuthenticationOptions = /** @class */ (function (_super) {
52160
- __extends$1i(AuthenticationOptions, _super);
52326
+ __extends$1k(AuthenticationOptions, _super);
52161
52327
  function AuthenticationOptions() {
52162
52328
  var _this = _super !== null && _super.apply(this, arguments) || this;
52163
52329
  /**
@@ -53007,7 +53173,7 @@ uniform ${precision} ${type} u_${name};
53007
53173
  eventTarget.addEventListener("keydown", dismissTooltip);
53008
53174
  };
53009
53175
 
53010
- var __extends$1h = (window && window.__extends) || (function () {
53176
+ var __extends$1j = (window && window.__extends) || (function () {
53011
53177
  var extendStatics = function (d, b) {
53012
53178
  extendStatics = Object.setPrototypeOf ||
53013
53179
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53057,7 +53223,7 @@ uniform ${precision} ${type} u_${name};
53057
53223
  * The options for adding a control to the map.
53058
53224
  */
53059
53225
  var ControlOptions = /** @class */ (function (_super) {
53060
- __extends$1h(ControlOptions, _super);
53226
+ __extends$1j(ControlOptions, _super);
53061
53227
  function ControlOptions() {
53062
53228
  var _this = _super !== null && _super.apply(this, arguments) || this;
53063
53229
  /**
@@ -53201,7 +53367,7 @@ uniform ${precision} ${type} u_${name};
53201
53367
  EventEmitter: EventEmitter
53202
53368
  });
53203
53369
 
53204
- var __extends$1g = (window && window.__extends) || (function () {
53370
+ var __extends$1i = (window && window.__extends) || (function () {
53205
53371
  var extendStatics = function (d, b) {
53206
53372
  extendStatics = Object.setPrototypeOf ||
53207
53373
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53221,7 +53387,7 @@ uniform ${precision} ${type} u_${name};
53221
53387
  * Implements control interface and provides support for automatic styling based on the map style.
53222
53388
  */
53223
53389
  var ControlBase = /** @class */ (function (_super) {
53224
- __extends$1g(ControlBase, _super);
53390
+ __extends$1i(ControlBase, _super);
53225
53391
  function ControlBase() {
53226
53392
  var _this = _super !== null && _super.apply(this, arguments) || this;
53227
53393
  /**
@@ -53323,7 +53489,7 @@ uniform ${precision} ${type} u_${name};
53323
53489
  return ControlBase;
53324
53490
  }(EventEmitter));
53325
53491
 
53326
- var __extends$1f = (window && window.__extends) || (function () {
53492
+ var __extends$1h = (window && window.__extends) || (function () {
53327
53493
  var extendStatics = function (d, b) {
53328
53494
  extendStatics = Object.setPrototypeOf ||
53329
53495
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53342,7 +53508,7 @@ uniform ${precision} ${type} u_${name};
53342
53508
  * The options for a CompassControl object.
53343
53509
  */
53344
53510
  var CompassControlOptions = /** @class */ (function (_super) {
53345
- __extends$1f(CompassControlOptions, _super);
53511
+ __extends$1h(CompassControlOptions, _super);
53346
53512
  function CompassControlOptions() {
53347
53513
  var _this = _super !== null && _super.apply(this, arguments) || this;
53348
53514
  /**
@@ -53367,7 +53533,7 @@ uniform ${precision} ${type} u_${name};
53367
53533
  return CompassControlOptions;
53368
53534
  }(Options));
53369
53535
 
53370
- var __extends$1e = (window && window.__extends) || (function () {
53536
+ var __extends$1g = (window && window.__extends) || (function () {
53371
53537
  var extendStatics = function (d, b) {
53372
53538
  extendStatics = Object.setPrototypeOf ||
53373
53539
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53386,7 +53552,7 @@ uniform ${precision} ${type} u_${name};
53386
53552
  * A control for changing the rotation of the map.
53387
53553
  */
53388
53554
  var CompassControl = /** @class */ (function (_super) {
53389
- __extends$1e(CompassControl, _super);
53555
+ __extends$1g(CompassControl, _super);
53390
53556
  /**
53391
53557
  * Constructs a CompassControl.
53392
53558
  * @param options The options for the control.
@@ -53485,6 +53651,7 @@ uniform ${precision} ${type} u_${name};
53485
53651
  var grid = document.createElement("div");
53486
53652
  grid.classList.add("sub-container");
53487
53653
  grid.classList.add("hidden-accessible-element");
53654
+ grid.setAttribute("aria-hidden", "true");
53488
53655
  var rotationRightButton = this.constructRightRotationButton(map);
53489
53656
  var rotationLeftButton = this.constructLeftRotationButton(map);
53490
53657
  var tooltipLeft = buildAccessibleTooltip("Rotate Left");
@@ -53570,7 +53737,7 @@ uniform ${precision} ${type} u_${name};
53570
53737
  return CompassControl;
53571
53738
  }(ControlBase));
53572
53739
 
53573
- var __extends$1d = (window && window.__extends) || (function () {
53740
+ var __extends$1f = (window && window.__extends) || (function () {
53574
53741
  var extendStatics = function (d, b) {
53575
53742
  extendStatics = Object.setPrototypeOf ||
53576
53743
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53589,7 +53756,7 @@ uniform ${precision} ${type} u_${name};
53589
53756
  * The options for a PitchControl object.
53590
53757
  */
53591
53758
  var PitchControlOptions = /** @class */ (function (_super) {
53592
- __extends$1d(PitchControlOptions, _super);
53759
+ __extends$1f(PitchControlOptions, _super);
53593
53760
  function PitchControlOptions() {
53594
53761
  var _this = _super !== null && _super.apply(this, arguments) || this;
53595
53762
  /**
@@ -53614,7 +53781,7 @@ uniform ${precision} ${type} u_${name};
53614
53781
  return PitchControlOptions;
53615
53782
  }(Options));
53616
53783
 
53617
- var __extends$1c = (window && window.__extends) || (function () {
53784
+ var __extends$1e = (window && window.__extends) || (function () {
53618
53785
  var extendStatics = function (d, b) {
53619
53786
  extendStatics = Object.setPrototypeOf ||
53620
53787
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53633,7 +53800,7 @@ uniform ${precision} ${type} u_${name};
53633
53800
  * A control for changing the pitch of the map.
53634
53801
  */
53635
53802
  var PitchControl = /** @class */ (function (_super) {
53636
- __extends$1c(PitchControl, _super);
53803
+ __extends$1e(PitchControl, _super);
53637
53804
  /**
53638
53805
  * Constructs a PitchControl.
53639
53806
  * @param options The options for the control.
@@ -53780,6 +53947,7 @@ uniform ${precision} ${type} u_${name};
53780
53947
  var grid = document.createElement("div");
53781
53948
  grid.classList.add("sub-container");
53782
53949
  grid.classList.add("hidden-accessible-element");
53950
+ grid.setAttribute("aria-hidden", "true");
53783
53951
  this.pitchIncrementButton = this.constructPitchIncrementButton(map);
53784
53952
  this.pitchDecrementButton = this.constructPitchDecrementButton(map);
53785
53953
  var tooltipIncrement = buildAccessibleTooltip("Increase Pitch");
@@ -53860,7 +54028,7 @@ uniform ${precision} ${type} u_${name};
53860
54028
  return PitchControl;
53861
54029
  }(ControlBase));
53862
54030
 
53863
- var __extends$1b = (window && window.__extends) || (function () {
54031
+ var __extends$1d = (window && window.__extends) || (function () {
53864
54032
  var extendStatics = function (d, b) {
53865
54033
  extendStatics = Object.setPrototypeOf ||
53866
54034
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -53879,7 +54047,7 @@ uniform ${precision} ${type} u_${name};
53879
54047
  * A control to display a scale bar on the map.
53880
54048
  */
53881
54049
  var ScaleControl = /** @class */ (function (_super) {
53882
- __extends$1b(ScaleControl, _super);
54050
+ __extends$1d(ScaleControl, _super);
53883
54051
  /**
53884
54052
  * A control to displays a scale bar relative to the pixel resolution at the center of the map.
53885
54053
  * @param options Options for defining how the control is rendered and functions.
@@ -57397,7 +57565,7 @@ uniform ${precision} ${type} u_${name};
57397
57565
 
57398
57566
  var merge$1 = /*@__PURE__*/getDefaultExportFromCjs(merge_1);
57399
57567
 
57400
- var __extends$1a = (window && window.__extends) || (function () {
57568
+ var __extends$1c = (window && window.__extends) || (function () {
57401
57569
  var extendStatics = function (d, b) {
57402
57570
  extendStatics = Object.setPrototypeOf ||
57403
57571
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -57416,13 +57584,13 @@ uniform ${precision} ${type} u_${name};
57416
57584
  * The options for a StyleControl object.
57417
57585
  */
57418
57586
  var StyleControlOptions = /** @class */ (function (_super) {
57419
- __extends$1a(StyleControlOptions, _super);
57587
+ __extends$1c(StyleControlOptions, _super);
57420
57588
  function StyleControlOptions() {
57421
57589
  var _this = _super !== null && _super.apply(this, arguments) || this;
57422
57590
  /**
57423
- * The layout to display the styles in.
57424
- * <p>`"icons"`: A row of clickable icons for each style.</p>
57425
- * <p>`"list"`: A scrollable list with the icons and names for each style.</p>
57591
+ * The layout to display the styles in.<br />
57592
+ * `"icons"`: A row of clickable icons for each style.<br />
57593
+ * `"list"`: A scrollable list with the icons and names for each style.<br />
57426
57594
  * Default `"icons"`
57427
57595
  * @default "icons"
57428
57596
  */
@@ -57461,7 +57629,7 @@ uniform ${precision} ${type} u_${name};
57461
57629
  return StyleControlOptions;
57462
57630
  }(Options));
57463
57631
 
57464
- var __extends$19 = (window && window.__extends) || (function () {
57632
+ var __extends$1b = (window && window.__extends) || (function () {
57465
57633
  var extendStatics = function (d, b) {
57466
57634
  extendStatics = Object.setPrototypeOf ||
57467
57635
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -57532,7 +57700,7 @@ uniform ${precision} ${type} u_${name};
57532
57700
  * A control for changing the style of the map.
57533
57701
  */
57534
57702
  var StyleControl = /** @class */ (function (_super) {
57535
- __extends$19(StyleControl, _super);
57703
+ __extends$1b(StyleControl, _super);
57536
57704
  /**
57537
57705
  * Constructs a StyleControl.
57538
57706
  * @param options The options for the control.
@@ -57827,6 +57995,7 @@ uniform ${precision} ${type} u_${name};
57827
57995
  }
57828
57996
  styleOpsGrid.setAttribute("aria-label", "Style Options");
57829
57997
  styleOpsGrid.classList.add("hidden-accessible-element");
57998
+ styleOpsGrid.setAttribute("aria-hidden", "true");
57830
57999
  // Once the map's style definition is initialized create a map between style names and icons.
57831
58000
  // If a style is one of those to be shown by the style picker also create it's element.
57832
58001
  this.map.styles.definitions().then(function (definitions) { return __awaiter$7(_this, void 0, void 0, function () {
@@ -57896,7 +58065,7 @@ uniform ${precision} ${type} u_${name};
57896
58065
  return StyleControl;
57897
58066
  }(ControlBase));
57898
58067
 
57899
- var __extends$18 = (window && window.__extends) || (function () {
58068
+ var __extends$1a = (window && window.__extends) || (function () {
57900
58069
  var extendStatics = function (d, b) {
57901
58070
  extendStatics = Object.setPrototypeOf ||
57902
58071
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -57915,17 +58084,17 @@ uniform ${precision} ${type} u_${name};
57915
58084
  * The options for setting traffic on the map.
57916
58085
  */
57917
58086
  var TrafficOptions = /** @class */ (function (_super) {
57918
- __extends$18(TrafficOptions, _super);
58087
+ __extends$1a(TrafficOptions, _super);
57919
58088
  function TrafficOptions() {
57920
58089
  var _this = _super !== null && _super.apply(this, arguments) || this;
57921
58090
  /**
57922
- * The type of traffic flow to display:
57923
- * <p>"none" is to display no traffic flow data</p>
57924
- * <p>"relative" is the speed of the road relative to free-flow</p>
57925
- * <p>@deprecated "absolute" is the absolute speed of the road</p>
57926
- * <p>@deprecated "relative-delay" displays relative speed only where they differ from free-flow;
57927
- * false to stop displaying the traffic flow.</p>
57928
- * default `"none"``
58091
+ * The type of traffic flow to display:<br />
58092
+ * `"none"` is to display no traffic flow data<br />
58093
+ * `"relative"` is the speed of the road relative to free-flow<br />
58094
+ * @deprecated `"absolute"` is the absolute speed of the road<br />
58095
+ * @deprecated `"relative-delay"` displays relative speed only where they differ from free-flow;
58096
+ * false to stop displaying the traffic flow.<br />
58097
+ * default `"none"`
57929
58098
  * @default "none"
57930
58099
  */
57931
58100
  _this.flow = "none";
@@ -57940,7 +58109,7 @@ uniform ${precision} ${type} u_${name};
57940
58109
  return TrafficOptions;
57941
58110
  }(Options));
57942
58111
 
57943
- var __extends$17 = (window && window.__extends) || (function () {
58112
+ var __extends$19 = (window && window.__extends) || (function () {
57944
58113
  var extendStatics = function (d, b) {
57945
58114
  extendStatics = Object.setPrototypeOf ||
57946
58115
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -57959,7 +58128,7 @@ uniform ${precision} ${type} u_${name};
57959
58128
  * The options for a TrafficControl object.
57960
58129
  */
57961
58130
  var TrafficControlOptions = /** @class */ (function (_super) {
57962
- __extends$17(TrafficControlOptions, _super);
58131
+ __extends$19(TrafficControlOptions, _super);
57963
58132
  function TrafficControlOptions() {
57964
58133
  var _this = _super !== null && _super.apply(this, arguments) || this;
57965
58134
  /**
@@ -57979,7 +58148,7 @@ uniform ${precision} ${type} u_${name};
57979
58148
  return TrafficControlOptions;
57980
58149
  }(TrafficOptions));
57981
58150
 
57982
- var __extends$16 = (window && window.__extends) || (function () {
58151
+ var __extends$18 = (window && window.__extends) || (function () {
57983
58152
  var extendStatics = function (d, b) {
57984
58153
  extendStatics = Object.setPrototypeOf ||
57985
58154
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -57998,7 +58167,7 @@ uniform ${precision} ${type} u_${name};
57998
58167
  * A control that toggles traffic data on the map.
57999
58168
  */
58000
58169
  var TrafficControl = /** @class */ (function (_super) {
58001
- __extends$16(TrafficControl, _super);
58170
+ __extends$18(TrafficControl, _super);
58002
58171
  /**
58003
58172
  * Constructs a TrafficControl
58004
58173
  * @param options The options for the control.
@@ -58125,7 +58294,7 @@ uniform ${precision} ${type} u_${name};
58125
58294
  return TrafficControl;
58126
58295
  }(ControlBase));
58127
58296
 
58128
- var __extends$15 = (window && window.__extends) || (function () {
58297
+ var __extends$17 = (window && window.__extends) || (function () {
58129
58298
  var extendStatics = function (d, b) {
58130
58299
  extendStatics = Object.setPrototypeOf ||
58131
58300
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -58155,7 +58324,7 @@ uniform ${precision} ${type} u_${name};
58155
58324
  * A control that display traffic legend on the map.
58156
58325
  */
58157
58326
  var TrafficLegendControl = /** @class */ (function (_super) {
58158
- __extends$15(TrafficLegendControl, _super);
58327
+ __extends$17(TrafficLegendControl, _super);
58159
58328
  /**
58160
58329
  * Construct a traffic legend control
58161
58330
  */
@@ -58889,7 +59058,7 @@ uniform ${precision} ${type} u_${name};
58889
59058
  return Feature;
58890
59059
  }());
58891
59060
 
58892
- var __extends$14 = (window && window.__extends) || (function () {
59061
+ var __extends$16 = (window && window.__extends) || (function () {
58893
59062
  var extendStatics = function (d, b) {
58894
59063
  extendStatics = Object.setPrototypeOf ||
58895
59064
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -58908,7 +59077,7 @@ uniform ${precision} ${type} u_${name};
58908
59077
  * Represent a pixel coordinate or offset. Extends an array of [x, y].
58909
59078
  */
58910
59079
  var Pixel = /** @class */ (function (_super) {
58911
- __extends$14(Pixel, _super);
59080
+ __extends$16(Pixel, _super);
58912
59081
  /**
58913
59082
  * Constructs a Pixel object and initializes it with the specified x and y coordinates.
58914
59083
  * @param x The horizontal pixel offset.
@@ -61128,7 +61297,7 @@ uniform ${precision} ${type} u_${name};
61128
61297
  return result;
61129
61298
  }
61130
61299
 
61131
- var __extends$13 = (window && window.__extends) || (function () {
61300
+ var __extends$15 = (window && window.__extends) || (function () {
61132
61301
  var extendStatics = function (d, b) {
61133
61302
  extendStatics = Object.setPrototypeOf ||
61134
61303
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -61148,7 +61317,7 @@ uniform ${precision} ${type} u_${name};
61148
61317
  * full description is detailed in [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-3.1.1}.
61149
61318
  */
61150
61319
  var Position = /** @class */ (function (_super) {
61151
- __extends$13(Position, _super);
61320
+ __extends$15(Position, _super);
61152
61321
  /**
61153
61322
  * Constructs a Position.
61154
61323
  * @param longitude The position's longitude.
@@ -61211,10 +61380,10 @@ uniform ${precision} ${type} u_${name};
61211
61380
  Position.fromLatLng = function (y, x, z) {
61212
61381
  var position = [];
61213
61382
  if (typeof y === "number") {
61214
- position.push(y);
61215
61383
  if (typeof x === "number") {
61216
61384
  position.push(x);
61217
61385
  }
61386
+ position.push(y);
61218
61387
  if (typeof z === "number") {
61219
61388
  position.push(z);
61220
61389
  }
@@ -61223,10 +61392,10 @@ uniform ${precision} ${type} u_${name};
61223
61392
  // Assume array is in the form [lat, lng] or [lat, lng, elv]
61224
61393
  if (y.length >= 2 && typeof y[0] === "number" && typeof y[1] === "number") {
61225
61394
  if (y.length >= 3 && typeof y[2] === "number") {
61226
- position.push(y[0], y[1], y[2]);
61395
+ position.push(y[1], y[0], y[2]);
61227
61396
  }
61228
61397
  else {
61229
- position.push(y[0], y[1]);
61398
+ position.push(y[1], y[0]);
61230
61399
  }
61231
61400
  }
61232
61401
  }
@@ -61340,7 +61509,7 @@ uniform ${precision} ${type} u_${name};
61340
61509
  return Polygon;
61341
61510
  }());
61342
61511
 
61343
- var __extends$12 = (window && window.__extends) || (function () {
61512
+ var __extends$14 = (window && window.__extends) || (function () {
61344
61513
  var extendStatics = function (d, b) {
61345
61514
  extendStatics = Object.setPrototypeOf ||
61346
61515
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -61370,7 +61539,7 @@ uniform ${precision} ${type} u_${name};
61370
61539
  * A helper class that wraps a Geometry or Feature and makes it easy to update and maintain.
61371
61540
  */
61372
61541
  var Shape = /** @class */ (function (_super) {
61373
- __extends$12(Shape, _super);
61542
+ __extends$14(Shape, _super);
61374
61543
  function Shape(data, id, properties) {
61375
61544
  var _this = _super.call(this) || this;
61376
61545
  var geometry;
@@ -61666,7 +61835,7 @@ uniform ${precision} ${type} u_${name};
61666
61835
  return Shape;
61667
61836
  }(EventEmitter));
61668
61837
 
61669
- var __extends$11 = (window && window.__extends) || (function () {
61838
+ var __extends$13 = (window && window.__extends) || (function () {
61670
61839
  var extendStatics = function (d, b) {
61671
61840
  extendStatics = Object.setPrototypeOf ||
61672
61841
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -61699,7 +61868,7 @@ uniform ${precision} ${type} u_${name};
61699
61868
  * [RFC 7946]{@link https://tools.ietf.org/html/rfc7946#section-5}.
61700
61869
  */
61701
61870
  var BoundingBox = /** @class */ (function (_super) {
61702
- __extends$11(BoundingBox, _super);
61871
+ __extends$13(BoundingBox, _super);
61703
61872
  function BoundingBox(southwestPositionOrPositions, northeastPosition) {
61704
61873
  var _this = this;
61705
61874
  if (southwestPositionOrPositions && northeastPosition) {
@@ -62416,7 +62585,7 @@ uniform ${precision} ${type} u_${name};
62416
62585
  return MultiPolygon;
62417
62586
  }());
62418
62587
 
62419
- var __extends$10 = (window && window.__extends) || (function () {
62588
+ var __extends$12 = (window && window.__extends) || (function () {
62420
62589
  var extendStatics = function (d, b) {
62421
62590
  extendStatics = Object.setPrototypeOf ||
62422
62591
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -62447,7 +62616,7 @@ uniform ${precision} ${type} u_${name};
62447
62616
  * The `z` dimension of `MercatorPoint` is conformal. A cube in the mercator coordinate space would be rendered as a cube.
62448
62617
  */
62449
62618
  var MercatorPoint = /** @class */ (function (_super) {
62450
- __extends$10(MercatorPoint, _super);
62619
+ __extends$12(MercatorPoint, _super);
62451
62620
  /**
62452
62621
  * Constructs a MercatorPoint.
62453
62622
  * @param x A points x position in mercator units.
@@ -62936,7 +63105,7 @@ uniform ${precision} ${type} u_${name};
62936
63105
  simplify: simplify
62937
63106
  });
62938
63107
 
62939
- var __extends$$ = (window && window.__extends) || (function () {
63108
+ var __extends$11 = (window && window.__extends) || (function () {
62940
63109
  var extendStatics = function (d, b) {
62941
63110
  extendStatics = Object.setPrototypeOf ||
62942
63111
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -62955,7 +63124,7 @@ uniform ${precision} ${type} u_${name};
62955
63124
  * The options for a ZoomControl object.
62956
63125
  */
62957
63126
  var ZoomControlOptions = /** @class */ (function (_super) {
62958
- __extends$$(ZoomControlOptions, _super);
63127
+ __extends$11(ZoomControlOptions, _super);
62959
63128
  function ZoomControlOptions() {
62960
63129
  var _this = _super !== null && _super.apply(this, arguments) || this;
62961
63130
  /**
@@ -62975,7 +63144,7 @@ uniform ${precision} ${type} u_${name};
62975
63144
  return ZoomControlOptions;
62976
63145
  }(Options));
62977
63146
 
62978
- var __extends$_ = (window && window.__extends) || (function () {
63147
+ var __extends$10 = (window && window.__extends) || (function () {
62979
63148
  var extendStatics = function (d, b) {
62980
63149
  extendStatics = Object.setPrototypeOf ||
62981
63150
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -62994,7 +63163,7 @@ uniform ${precision} ${type} u_${name};
62994
63163
  * A control for changing the zoom of the map.
62995
63164
  */
62996
63165
  var ZoomControl = /** @class */ (function (_super) {
62997
- __extends$_(ZoomControl, _super);
63166
+ __extends$10(ZoomControl, _super);
62998
63167
  /**
62999
63168
  * Constructs a ZoomControl.
63000
63169
  * @param options The options for the control.
@@ -63229,7 +63398,7 @@ uniform ${precision} ${type} u_${name};
63229
63398
  return AccessibleIndicator;
63230
63399
  }());
63231
63400
 
63232
- var __extends$Z = (window && window.__extends) || (function () {
63401
+ var __extends$$ = (window && window.__extends) || (function () {
63233
63402
  var extendStatics = function (d, b) {
63234
63403
  extendStatics = Object.setPrototypeOf ||
63235
63404
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -63251,7 +63420,7 @@ uniform ${precision} ${type} u_${name};
63251
63420
  * @module Object Definitions
63252
63421
  */
63253
63422
  var DataSourceOptions = /** @class */ (function (_super) {
63254
- __extends$Z(DataSourceOptions, _super);
63423
+ __extends$$(DataSourceOptions, _super);
63255
63424
  function DataSourceOptions() {
63256
63425
  var _this = _super !== null && _super.apply(this, arguments) || this;
63257
63426
  /*
@@ -63311,7 +63480,8 @@ uniform ${precision} ${type} u_${name};
63311
63480
  */
63312
63481
  _this.generateId = false;
63313
63482
  /**
63314
- * A property to use as a feature id (for feature state). Either a property name, or an object of the form {<sourceLayer>: <propertyName>}.
63483
+ * A specified property name to be used as a feature ID (for feature state).
63484
+ * This can either be a property name or an object in the form `{<sourceLayer>: <propertyName>}`.
63315
63485
  */
63316
63486
  _this.promoteId = undefined;
63317
63487
  /**
@@ -63323,7 +63493,7 @@ uniform ${precision} ${type} u_${name};
63323
63493
  return DataSourceOptions;
63324
63494
  }(Options));
63325
63495
 
63326
- var __extends$Y = (window && window.__extends) || (function () {
63496
+ var __extends$_ = (window && window.__extends) || (function () {
63327
63497
  var extendStatics = function (d, b) {
63328
63498
  extendStatics = Object.setPrototypeOf ||
63329
63499
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -63343,7 +63513,7 @@ uniform ${precision} ${type} u_${name};
63343
63513
  * A source must be added to a layer before it is visible on the map.
63344
63514
  */
63345
63515
  var Source = /** @class */ (function (_super) {
63346
- __extends$Y(Source, _super);
63516
+ __extends$_(Source, _super);
63347
63517
  function Source(id) {
63348
63518
  var _this = _super.call(this) || this;
63349
63519
  _this.id = id || uuid();
@@ -63382,7 +63552,7 @@ uniform ${precision} ${type} u_${name};
63382
63552
  return Source;
63383
63553
  }(EventEmitter));
63384
63554
 
63385
- var __extends$X = (window && window.__extends) || (function () {
63555
+ var __extends$Z = (window && window.__extends) || (function () {
63386
63556
  var extendStatics = function (d, b) {
63387
63557
  extendStatics = Object.setPrototypeOf ||
63388
63558
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -63414,7 +63584,7 @@ uniform ${precision} ${type} u_${name};
63414
63584
  * The DataSource class may be used with the SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, and HeatMapLayer.
63415
63585
  */
63416
63586
  var DataSource = /** @class */ (function (_super) {
63417
- __extends$X(DataSource, _super);
63587
+ __extends$Z(DataSource, _super);
63418
63588
  /**
63419
63589
  * A data source class that makes it easy to manage shapes data that will be displayed on the map.
63420
63590
  * A data source must be added to a layer before it is visible on the map.
@@ -63869,7 +64039,7 @@ uniform ${precision} ${type} u_${name};
63869
64039
  return DataSource;
63870
64040
  }(Source));
63871
64041
 
63872
- var __extends$W = (window && window.__extends) || (function () {
64042
+ var __extends$Y = (window && window.__extends) || (function () {
63873
64043
  var extendStatics = function (d, b) {
63874
64044
  extendStatics = Object.setPrototypeOf ||
63875
64045
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -63891,7 +64061,7 @@ uniform ${precision} ${type} u_${name};
63891
64061
  * @module Object Definitions
63892
64062
  */
63893
64063
  var VectorTileSourceOptions = /** @class */ (function (_super) {
63894
- __extends$W(VectorTileSourceOptions, _super);
64064
+ __extends$Y(VectorTileSourceOptions, _super);
63895
64065
  function VectorTileSourceOptions() {
63896
64066
  /*
63897
64067
  * TODO:
@@ -63944,7 +64114,7 @@ uniform ${precision} ${type} u_${name};
63944
64114
  return VectorTileSourceOptions;
63945
64115
  }(Options));
63946
64116
 
63947
- var __extends$V = (window && window.__extends) || (function () {
64117
+ var __extends$X = (window && window.__extends) || (function () {
63948
64118
  var extendStatics = function (d, b) {
63949
64119
  extendStatics = Object.setPrototypeOf ||
63950
64120
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -63964,7 +64134,7 @@ uniform ${precision} ${type} u_${name};
63964
64134
  * Vector tile sources can be used with; SymbolLayer, LineLayer, PolygonLayer, BubbleLayer, HeatmapLayer and VectorTileLayer.
63965
64135
  */
63966
64136
  var VectorTileSource = /** @class */ (function (_super) {
63967
- __extends$V(VectorTileSource, _super);
64137
+ __extends$X(VectorTileSource, _super);
63968
64138
  function VectorTileSource(id, options) {
63969
64139
  var _this = _super.call(this, id) || this;
63970
64140
  _this.options = new VectorTileSourceOptions().merge(cloneDeep$1(options));
@@ -64030,7 +64200,7 @@ uniform ${precision} ${type} u_${name};
64030
64200
  return VectorTileSource;
64031
64201
  }(Source));
64032
64202
 
64033
- var __extends$U = (window && window.__extends) || (function () {
64203
+ var __extends$W = (window && window.__extends) || (function () {
64034
64204
  var extendStatics = function (d, b) {
64035
64205
  extendStatics = Object.setPrototypeOf ||
64036
64206
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64051,7 +64221,7 @@ uniform ${precision} ${type} u_${name};
64051
64221
  * @private
64052
64222
  */
64053
64223
  var CanvasSource = /** @class */ (function (_super) {
64054
- __extends$U(CanvasSource, _super);
64224
+ __extends$W(CanvasSource, _super);
64055
64225
  /**
64056
64226
  * Constructs a source from the contents of a layer resource file.
64057
64227
  * @param id The source's id.
@@ -64086,7 +64256,7 @@ uniform ${precision} ${type} u_${name};
64086
64256
  return CanvasSource;
64087
64257
  }(Source));
64088
64258
 
64089
- var __extends$T = (window && window.__extends) || (function () {
64259
+ var __extends$V = (window && window.__extends) || (function () {
64090
64260
  var extendStatics = function (d, b) {
64091
64261
  extendStatics = Object.setPrototypeOf ||
64092
64262
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64107,7 +64277,7 @@ uniform ${precision} ${type} u_${name};
64107
64277
  * @private
64108
64278
  */
64109
64279
  var UnknownSource = /** @class */ (function (_super) {
64110
- __extends$T(UnknownSource, _super);
64280
+ __extends$V(UnknownSource, _super);
64111
64281
  /**
64112
64282
  * Constructs a source from the contents of a layer resource file.
64113
64283
  * @param id The source's id.
@@ -64139,7 +64309,7 @@ uniform ${precision} ${type} u_${name};
64139
64309
  return UnknownSource;
64140
64310
  }(Source));
64141
64311
 
64142
- var __extends$S = (window && window.__extends) || (function () {
64312
+ var __extends$U = (window && window.__extends) || (function () {
64143
64313
  var extendStatics = function (d, b) {
64144
64314
  extendStatics = Object.setPrototypeOf ||
64145
64315
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64160,7 +64330,7 @@ uniform ${precision} ${type} u_${name};
64160
64330
  * @private
64161
64331
  */
64162
64332
  var ImageSource = /** @class */ (function (_super) {
64163
- __extends$S(ImageSource, _super);
64333
+ __extends$U(ImageSource, _super);
64164
64334
  /**
64165
64335
  * Constructs a source from the contents of a layer resource file.
64166
64336
  * @param id The source's id.
@@ -64194,7 +64364,7 @@ uniform ${precision} ${type} u_${name};
64194
64364
  return ImageSource;
64195
64365
  }(Source));
64196
64366
 
64197
- var __extends$R = (window && window.__extends) || (function () {
64367
+ var __extends$T = (window && window.__extends) || (function () {
64198
64368
  var extendStatics = function (d, b) {
64199
64369
  extendStatics = Object.setPrototypeOf ||
64200
64370
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64215,7 +64385,7 @@ uniform ${precision} ${type} u_${name};
64215
64385
  * @private
64216
64386
  */
64217
64387
  var VideoSource = /** @class */ (function (_super) {
64218
- __extends$R(VideoSource, _super);
64388
+ __extends$T(VideoSource, _super);
64219
64389
  /**
64220
64390
  * Constructs a source from the contents of a layer resource file.
64221
64391
  * @param id The source's id.
@@ -64249,7 +64419,7 @@ uniform ${precision} ${type} u_${name};
64249
64419
  return VideoSource;
64250
64420
  }(Source));
64251
64421
 
64252
- var __extends$Q = (window && window.__extends) || (function () {
64422
+ var __extends$S = (window && window.__extends) || (function () {
64253
64423
  var extendStatics = function (d, b) {
64254
64424
  extendStatics = Object.setPrototypeOf ||
64255
64425
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64265,7 +64435,7 @@ uniform ${precision} ${type} u_${name};
64265
64435
  };
64266
64436
  })();
64267
64437
  var RasterTileSourceOptions = /** @class */ (function (_super) {
64268
- __extends$Q(RasterTileSourceOptions, _super);
64438
+ __extends$S(RasterTileSourceOptions, _super);
64269
64439
  function RasterTileSourceOptions() {
64270
64440
  var _this = _super !== null && _super.apply(this, arguments) || this;
64271
64441
  /**
@@ -64279,7 +64449,7 @@ uniform ${precision} ${type} u_${name};
64279
64449
  return RasterTileSourceOptions;
64280
64450
  }(VectorTileSourceOptions));
64281
64451
 
64282
- var __extends$P = (window && window.__extends) || (function () {
64452
+ var __extends$R = (window && window.__extends) || (function () {
64283
64453
  var extendStatics = function (d, b) {
64284
64454
  extendStatics = Object.setPrototypeOf ||
64285
64455
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64295,13 +64465,13 @@ uniform ${precision} ${type} u_${name};
64295
64465
  };
64296
64466
  })();
64297
64467
  var ElevationTileSourceOptions = /** @class */ (function (_super) {
64298
- __extends$P(ElevationTileSourceOptions, _super);
64468
+ __extends$R(ElevationTileSourceOptions, _super);
64299
64469
  function ElevationTileSourceOptions() {
64300
64470
  var _this = _super !== null && _super.apply(this, arguments) || this;
64301
64471
  /**
64302
- * DEM tiles encoding format. Supported: `mapbox` or `terrarium`.
64303
- * <p>`"terrarium": Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info.</p>
64304
- * <p>`"mapbox": Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info.</p>
64472
+ * DEM tiles encoding format. Supported: `mapbox` or `terrarium`.<br />
64473
+ * `"terrarium": Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info.<br />
64474
+ * `"mapbox": Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info.<br />
64305
64475
  * default `mapbox`
64306
64476
  * @default mapbox
64307
64477
  */
@@ -64311,7 +64481,7 @@ uniform ${precision} ${type} u_${name};
64311
64481
  return ElevationTileSourceOptions;
64312
64482
  }(RasterTileSourceOptions));
64313
64483
 
64314
- var __extends$O = (window && window.__extends) || (function () {
64484
+ var __extends$Q = (window && window.__extends) || (function () {
64315
64485
  var extendStatics = function (d, b) {
64316
64486
  extendStatics = Object.setPrototypeOf ||
64317
64487
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64341,7 +64511,7 @@ uniform ${precision} ${type} u_${name};
64341
64511
  * Publicly exposed ElevationTileSource.
64342
64512
  */
64343
64513
  var ElevationTileSource = /** @class */ (function (_super) {
64344
- __extends$O(ElevationTileSource, _super);
64514
+ __extends$Q(ElevationTileSource, _super);
64345
64515
  function ElevationTileSource(id, options) {
64346
64516
  var _this = _super.call(this, id) || this;
64347
64517
  _this.options = new ElevationTileSourceOptions().merge(cloneDeep$1(options));
@@ -64385,7 +64555,7 @@ uniform ${precision} ${type} u_${name};
64385
64555
  VideoSource: VideoSource
64386
64556
  });
64387
64557
 
64388
- var __extends$N = (window && window.__extends) || (function () {
64558
+ var __extends$P = (window && window.__extends) || (function () {
64389
64559
  var extendStatics = function (d, b) {
64390
64560
  extendStatics = Object.setPrototypeOf ||
64391
64561
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64404,7 +64574,7 @@ uniform ${precision} ${type} u_${name};
64404
64574
  * Abstract class for other layer classes to extend.
64405
64575
  */
64406
64576
  var Layer = /** @class */ (function (_super) {
64407
- __extends$N(Layer, _super);
64577
+ __extends$P(Layer, _super);
64408
64578
  function Layer(id) {
64409
64579
  var _this =
64410
64580
  // Assign an random id using a UUID if none was specified.
@@ -64511,7 +64681,7 @@ uniform ${precision} ${type} u_${name};
64511
64681
  return Layer;
64512
64682
  }(EventEmitter));
64513
64683
 
64514
- var __extends$M = (window && window.__extends) || (function () {
64684
+ var __extends$O = (window && window.__extends) || (function () {
64515
64685
  var extendStatics = function (d, b) {
64516
64686
  extendStatics = Object.setPrototypeOf ||
64517
64687
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64530,7 +64700,7 @@ uniform ${precision} ${type} u_${name};
64530
64700
  * A base class which all other layer options inherit from.
64531
64701
  */
64532
64702
  var LayerOptions$1 = /** @class */ (function (_super) {
64533
- __extends$M(LayerOptions, _super);
64703
+ __extends$O(LayerOptions, _super);
64534
64704
  function LayerOptions() {
64535
64705
  var _this = _super !== null && _super.apply(this, arguments) || this;
64536
64706
  /**
@@ -64577,7 +64747,7 @@ uniform ${precision} ${type} u_${name};
64577
64747
  return LayerOptions;
64578
64748
  }(Options));
64579
64749
 
64580
- var __extends$L = (window && window.__extends) || (function () {
64750
+ var __extends$N = (window && window.__extends) || (function () {
64581
64751
  var extendStatics = function (d, b) {
64582
64752
  extendStatics = Object.setPrototypeOf ||
64583
64753
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64596,7 +64766,7 @@ uniform ${precision} ${type} u_${name};
64596
64766
  * Options used when rendering Point objects in a BubbleLayer.
64597
64767
  */
64598
64768
  var BubbleLayerOptions = /** @class */ (function (_super) {
64599
- __extends$L(BubbleLayerOptions, _super);
64769
+ __extends$N(BubbleLayerOptions, _super);
64600
64770
  function BubbleLayerOptions() {
64601
64771
  var _this = _super !== null && _super.apply(this, arguments) || this;
64602
64772
  /**
@@ -64647,9 +64817,9 @@ uniform ${precision} ${type} u_${name};
64647
64817
  */
64648
64818
  _this.strokeWidth = 2;
64649
64819
  /**
64650
- * Specifies the orientation of circle when map is pitched.
64651
- * <p>`"map"`: The circle is aligned to the plane of the map.</p>
64652
- * <p>`"viewport"`: The circle is aligned to the plane of the viewport.</p>
64820
+ * Specifies the orientation of circle when map is pitched.<br />
64821
+ * `"map"`: The circle is aligned to the plane of the map.<br />
64822
+ * `"viewport"`: The circle is aligned to the plane of the viewport.<br />
64653
64823
  * Default: `"viewport"`
64654
64824
  * @default "viewport"
64655
64825
  */
@@ -64704,7 +64874,7 @@ uniform ${precision} ${type} u_${name};
64704
64874
  return BubbleLayerOptions;
64705
64875
  }(LayerOptions$1));
64706
64876
 
64707
- var __extends$K = (window && window.__extends) || (function () {
64877
+ var __extends$M = (window && window.__extends) || (function () {
64708
64878
  var extendStatics = function (d, b) {
64709
64879
  extendStatics = Object.setPrototypeOf ||
64710
64880
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -64784,7 +64954,7 @@ uniform ${precision} ${type} u_${name};
64784
64954
  * Renders Point objects as scalable circles (bubbles).
64785
64955
  */
64786
64956
  var BubbleLayer = /** @class */ (function (_super) {
64787
- __extends$K(BubbleLayer, _super);
64957
+ __extends$M(BubbleLayer, _super);
64788
64958
  /**
64789
64959
  * Constructs a new BubbleLayer.
64790
64960
  * @param source The id or instance of a data source which the layer will render.
@@ -65059,7 +65229,7 @@ uniform ${precision} ${type} u_${name};
65059
65229
  return BubbleLayer;
65060
65230
  }(Layer));
65061
65231
 
65062
- var __extends$J = (window && window.__extends) || (function () {
65232
+ var __extends$L = (window && window.__extends) || (function () {
65063
65233
  var extendStatics = function (d, b) {
65064
65234
  extendStatics = Object.setPrototypeOf ||
65065
65235
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65078,7 +65248,7 @@ uniform ${precision} ${type} u_${name};
65078
65248
  * Options used when rendering Point objects in a HeatMapLayer.
65079
65249
  */
65080
65250
  var HeatMapLayerOptions = /** @class */ (function (_super) {
65081
- __extends$J(HeatMapLayerOptions, _super);
65251
+ __extends$L(HeatMapLayerOptions, _super);
65082
65252
  function HeatMapLayerOptions() {
65083
65253
  var _this = _super !== null && _super.apply(this, arguments) || this;
65084
65254
  /**
@@ -65145,7 +65315,7 @@ uniform ${precision} ${type} u_${name};
65145
65315
  return HeatMapLayerOptions;
65146
65316
  }(LayerOptions$1));
65147
65317
 
65148
- var __extends$I = (window && window.__extends) || (function () {
65318
+ var __extends$K = (window && window.__extends) || (function () {
65149
65319
  var extendStatics = function (d, b) {
65150
65320
  extendStatics = Object.setPrototypeOf ||
65151
65321
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65164,7 +65334,7 @@ uniform ${precision} ${type} u_${name};
65164
65334
  * Represent the density of data using different colors (HeatMap).
65165
65335
  */
65166
65336
  var HeatMapLayer = /** @class */ (function (_super) {
65167
- __extends$I(HeatMapLayer, _super);
65337
+ __extends$K(HeatMapLayer, _super);
65168
65338
  /**
65169
65339
  * Constructs a new HeatMapLayer.
65170
65340
  * @param source The id or instance of a data source which the layer will render.
@@ -65268,7 +65438,7 @@ uniform ${precision} ${type} u_${name};
65268
65438
  return HeatMapLayer;
65269
65439
  }(Layer));
65270
65440
 
65271
- var __extends$H = (window && window.__extends) || (function () {
65441
+ var __extends$J = (window && window.__extends) || (function () {
65272
65442
  var extendStatics = function (d, b) {
65273
65443
  extendStatics = Object.setPrototypeOf ||
65274
65444
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65287,7 +65457,7 @@ uniform ${precision} ${type} u_${name};
65287
65457
  * Options used when rendering canvas, image, raster tile, and video layers
65288
65458
  */
65289
65459
  var MediaLayerOptions = /** @class */ (function (_super) {
65290
- __extends$H(MediaLayerOptions, _super);
65460
+ __extends$J(MediaLayerOptions, _super);
65291
65461
  function MediaLayerOptions() {
65292
65462
  var _this = _super !== null && _super.apply(this, arguments) || this;
65293
65463
  /**
@@ -65339,7 +65509,7 @@ uniform ${precision} ${type} u_${name};
65339
65509
  return MediaLayerOptions;
65340
65510
  }(LayerOptions$1));
65341
65511
 
65342
- var __extends$G = (window && window.__extends) || (function () {
65512
+ var __extends$I = (window && window.__extends) || (function () {
65343
65513
  var extendStatics = function (d, b) {
65344
65514
  extendStatics = Object.setPrototypeOf ||
65345
65515
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65358,7 +65528,7 @@ uniform ${precision} ${type} u_${name};
65358
65528
  * Options used when rendering Point objects in a ImageLayer.
65359
65529
  */
65360
65530
  var ImageLayerOptions = /** @class */ (function (_super) {
65361
- __extends$G(ImageLayerOptions, _super);
65531
+ __extends$I(ImageLayerOptions, _super);
65362
65532
  function ImageLayerOptions() {
65363
65533
  var _this = _super !== null && _super.apply(this, arguments) || this;
65364
65534
  /**
@@ -65388,7 +65558,7 @@ uniform ${precision} ${type} u_${name};
65388
65558
  return ImageLayerOptions;
65389
65559
  }(MediaLayerOptions));
65390
65560
 
65391
- var __extends$F = (window && window.__extends) || (function () {
65561
+ var __extends$H = (window && window.__extends) || (function () {
65392
65562
  var extendStatics = function (d, b) {
65393
65563
  extendStatics = Object.setPrototypeOf ||
65394
65564
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65408,7 +65578,7 @@ uniform ${precision} ${type} u_${name};
65408
65578
  * @internal
65409
65579
  */
65410
65580
  var SourceBuildingLayer = /** @class */ (function (_super) {
65411
- __extends$F(SourceBuildingLayer, _super);
65581
+ __extends$H(SourceBuildingLayer, _super);
65412
65582
  function SourceBuildingLayer() {
65413
65583
  return _super !== null && _super.apply(this, arguments) || this;
65414
65584
  }
@@ -65426,7 +65596,7 @@ uniform ${precision} ${type} u_${name};
65426
65596
  return SourceBuildingLayer;
65427
65597
  }(Layer));
65428
65598
 
65429
- var __extends$E = (window && window.__extends) || (function () {
65599
+ var __extends$G = (window && window.__extends) || (function () {
65430
65600
  var extendStatics = function (d, b) {
65431
65601
  extendStatics = Object.setPrototypeOf ||
65432
65602
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65445,7 +65615,7 @@ uniform ${precision} ${type} u_${name};
65445
65615
  * Overlays an image on the map with each corner anchored to a coordinate on the map. Also known as a ground or image overlay.
65446
65616
  */
65447
65617
  var ImageLayer = /** @class */ (function (_super) {
65448
- __extends$E(ImageLayer, _super);
65618
+ __extends$G(ImageLayer, _super);
65449
65619
  /**
65450
65620
  * Constructs a new ImageLayer.
65451
65621
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -65653,7 +65823,7 @@ uniform ${precision} ${type} u_${name};
65653
65823
  return ImageLayer;
65654
65824
  }(SourceBuildingLayer));
65655
65825
 
65656
- var __extends$D = (window && window.__extends) || (function () {
65826
+ var __extends$F = (window && window.__extends) || (function () {
65657
65827
  var extendStatics = function (d, b) {
65658
65828
  extendStatics = Object.setPrototypeOf ||
65659
65829
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65673,7 +65843,7 @@ uniform ${precision} ${type} u_${name};
65673
65843
  * LineString, MultiLineString, Polygon, and MultiPolygon objects in a line layer.
65674
65844
  */
65675
65845
  var LineLayerOptions = /** @class */ (function (_super) {
65676
- __extends$D(LineLayerOptions, _super);
65846
+ __extends$F(LineLayerOptions, _super);
65677
65847
  function LineLayerOptions() {
65678
65848
  var _this = _super !== null && _super.apply(this, arguments) || this;
65679
65849
  /**
@@ -65687,24 +65857,24 @@ uniform ${precision} ${type} u_${name};
65687
65857
  */
65688
65858
  _this.sourceLayer = undefined;
65689
65859
  /**
65690
- * Specifies how the ends of the lines are rendered.
65691
- * <p>`"butt"`: A cap with a squared-off end which is drawn to the exact endpoint of the line.</p>
65692
- * <p>`"round"`: A cap with a rounded end which is drawn beyond the endpoint of the line
65693
- * at a radius of one-half of the lines width and centered on the endpoint of the line.</p>
65694
- * <p>`"square"`: A cap with a squared-off end which is drawn beyond the endpoint of the line
65695
- * at a distance of one-half of the line width.</p>
65860
+ * Specifies how the ends of the lines are rendered.<br />
65861
+ * `"butt"`: A cap with a squared-off end which is drawn to the exact endpoint of the line.<br />
65862
+ * `"round"`: A cap with a rounded end which is drawn beyond the endpoint of the line
65863
+ * at a radius of one-half of the lines width and centered on the endpoint of the line.<br />
65864
+ * `"square"`: A cap with a squared-off end which is drawn beyond the endpoint of the line
65865
+ * at a distance of one-half of the line width.<br />
65696
65866
  * Default `"round"`.
65697
65867
  * @default "round"
65698
65868
  */
65699
65869
  _this.lineCap = "round";
65700
65870
  /**
65701
- * Specifies how the joints in the lines are rendered.
65702
- * <p>`"bevel"`: A join with a squared-off end which is drawn beyond the endpoint of the line
65703
- * at a distance of one-half of the lines width.</p>
65704
- * <p>`"round"`: A join with a rounded end which is drawn beyond the endpoint of the line
65705
- * at a radius of one-half of the lines width and centered on the endpoint of the line.</p>
65706
- * <p>`"miter"`: A join with a sharp, angled corner which is drawn with the outer sides
65707
- * beyond the endpoint of the path until they meet.</p>
65871
+ * Specifies how the joints in the lines are rendered.<br />
65872
+ * `"bevel"`: A join with a squared-off end which is drawn beyond the endpoint of the line
65873
+ * at a distance of one-half of the lines width.<br />
65874
+ * `"round"`: A join with a rounded end which is drawn beyond the endpoint of the line
65875
+ * at a radius of one-half of the lines width and centered on the endpoint of the line.<br />
65876
+ * `"miter"`: A join with a sharp, angled corner which is drawn with the outer sides
65877
+ * beyond the endpoint of the path until they meet.<br />
65708
65878
  * Default `"round"`.
65709
65879
  * @default "round"
65710
65880
  */
@@ -65755,9 +65925,9 @@ uniform ${precision} ${type} u_${name};
65755
65925
  */
65756
65926
  _this.translate = new Pixel(0, 0);
65757
65927
  /**
65758
- * Specifies the frame of reference for `translate`.
65759
- * <p>`"map"`: Lines are translated relative to the map.</p>
65760
- * <p>`"viewport"`: Lines are translated relative to the viewport</p>
65928
+ * Specifies the frame of reference for `translate`.<br />
65929
+ * `"map"`: Lines are translated relative to the map.<br />
65930
+ * `"viewport"`: Lines are translated relative to the viewport<br />
65761
65931
  * Default: `"map"`
65762
65932
  * @default "map"
65763
65933
  */
@@ -65773,7 +65943,7 @@ uniform ${precision} ${type} u_${name};
65773
65943
  return LineLayerOptions;
65774
65944
  }(LayerOptions$1));
65775
65945
 
65776
- var __extends$C = (window && window.__extends) || (function () {
65946
+ var __extends$E = (window && window.__extends) || (function () {
65777
65947
  var extendStatics = function (d, b) {
65778
65948
  extendStatics = Object.setPrototypeOf ||
65779
65949
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65804,7 +65974,7 @@ uniform ${precision} ${type} u_${name};
65804
65974
  * CirclePolygon, LineString, MultiLineString, Polygon, and MultiPolygon objects.
65805
65975
  */
65806
65976
  var LineLayer = /** @class */ (function (_super) {
65807
- __extends$C(LineLayer, _super);
65977
+ __extends$E(LineLayer, _super);
65808
65978
  /**
65809
65979
  * Constructs a new LineLayer.
65810
65980
  * @param source The id or instance of a data source which the layer will render.
@@ -65895,7 +66065,7 @@ uniform ${precision} ${type} u_${name};
65895
66065
  return LineLayer;
65896
66066
  }(Layer));
65897
66067
 
65898
- var __extends$B = (window && window.__extends) || (function () {
66068
+ var __extends$D = (window && window.__extends) || (function () {
65899
66069
  var extendStatics = function (d, b) {
65900
66070
  extendStatics = Object.setPrototypeOf ||
65901
66071
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -65914,7 +66084,7 @@ uniform ${precision} ${type} u_${name};
65914
66084
  * Options used when rendering `Polygon` and `MultiPolygon` objects in a `PolygonExtrusionLayer`.
65915
66085
  */
65916
66086
  var PolygonExtrusionLayerOptions = /** @class */ (function (_super) {
65917
- __extends$B(PolygonExtrusionLayerOptions, _super);
66087
+ __extends$D(PolygonExtrusionLayerOptions, _super);
65918
66088
  function PolygonExtrusionLayerOptions() {
65919
66089
  var _this = _super !== null && _super.apply(this, arguments) || this;
65920
66090
  /**
@@ -65969,9 +66139,9 @@ uniform ${precision} ${type} u_${name};
65969
66139
  */
65970
66140
  _this.translate = new Pixel(0, 0);
65971
66141
  /**
65972
- * Specifies the frame of reference for `translate`.
65973
- * <p>`"map"`: Polygons are translated relative to the map.</p>
65974
- * <p>`"viewport"`: Polygons are translated relative to the viewport.</p>
66142
+ * Specifies the frame of reference for `translate`.<br />
66143
+ * `"map"`: Polygons are translated relative to the map.<br />
66144
+ * `"viewport"`: Polygons are translated relative to the viewport.<br />
65975
66145
  * Default: `"map"`
65976
66146
  * @default "map"
65977
66147
  */
@@ -65987,7 +66157,7 @@ uniform ${precision} ${type} u_${name};
65987
66157
  return PolygonExtrusionLayerOptions;
65988
66158
  }(LayerOptions$1));
65989
66159
 
65990
- var __extends$A = (window && window.__extends) || (function () {
66160
+ var __extends$C = (window && window.__extends) || (function () {
65991
66161
  var extendStatics = function (d, b) {
65992
66162
  extendStatics = Object.setPrototypeOf ||
65993
66163
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66017,7 +66187,7 @@ uniform ${precision} ${type} u_${name};
66017
66187
  * Renders extruded filled `Polygon` and `MultiPolygon` objects on the map.
66018
66188
  */
66019
66189
  var PolygonExtrusionLayer = /** @class */ (function (_super) {
66020
- __extends$A(PolygonExtrusionLayer, _super);
66190
+ __extends$C(PolygonExtrusionLayer, _super);
66021
66191
  /**
66022
66192
  * Constructs a new PolygonExtrusionLayer.
66023
66193
  * @param source The id or instance of a data source which the layer will render.
@@ -66105,7 +66275,7 @@ uniform ${precision} ${type} u_${name};
66105
66275
  return PolygonExtrusionLayer;
66106
66276
  }(Layer));
66107
66277
 
66108
- var __extends$z = (window && window.__extends) || (function () {
66278
+ var __extends$B = (window && window.__extends) || (function () {
66109
66279
  var extendStatics = function (d, b) {
66110
66280
  extendStatics = Object.setPrototypeOf ||
66111
66281
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66124,7 +66294,7 @@ uniform ${precision} ${type} u_${name};
66124
66294
  * Options used when rendering Polygon and MultiPolygon objects in a PolygonLayer.
66125
66295
  */
66126
66296
  var PolygonLayerOptions$1 = /** @class */ (function (_super) {
66127
- __extends$z(PolygonLayerOptions, _super);
66297
+ __extends$B(PolygonLayerOptions, _super);
66128
66298
  function PolygonLayerOptions() {
66129
66299
  var _this = _super !== null && _super.apply(this, arguments) || this;
66130
66300
  /**
@@ -66164,7 +66334,7 @@ uniform ${precision} ${type} u_${name};
66164
66334
  return PolygonLayerOptions;
66165
66335
  }(LayerOptions$1));
66166
66336
 
66167
- var __extends$y = (window && window.__extends) || (function () {
66337
+ var __extends$A = (window && window.__extends) || (function () {
66168
66338
  var extendStatics = function (d, b) {
66169
66339
  extendStatics = Object.setPrototypeOf ||
66170
66340
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66183,7 +66353,7 @@ uniform ${precision} ${type} u_${name};
66183
66353
  * Renders filled Polygon and MultiPolygon objects on the map.
66184
66354
  */
66185
66355
  var PolygonLayer = /** @class */ (function (_super) {
66186
- __extends$y(PolygonLayer, _super);
66356
+ __extends$A(PolygonLayer, _super);
66187
66357
  /**
66188
66358
  * Constructs a new PolygonLayer.
66189
66359
  * @param source The id or instance of a data source which the layer will render.
@@ -66293,7 +66463,7 @@ uniform ${precision} ${type} u_${name};
66293
66463
  return PolygonLayer;
66294
66464
  }(Layer));
66295
66465
 
66296
- var __extends$x = (window && window.__extends) || (function () {
66466
+ var __extends$z = (window && window.__extends) || (function () {
66297
66467
  var extendStatics = function (d, b) {
66298
66468
  extendStatics = Object.setPrototypeOf ||
66299
66469
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66312,7 +66482,7 @@ uniform ${precision} ${type} u_${name};
66312
66482
  * Options used to customize the icons in a SymbolLayer
66313
66483
  */
66314
66484
  var IconOptions = /** @class */ (function (_super) {
66315
- __extends$x(IconOptions, _super);
66485
+ __extends$z(IconOptions, _super);
66316
66486
  function IconOptions() {
66317
66487
  var _this = _super !== null && _super.apply(this, arguments) || this;
66318
66488
  /**
@@ -66324,16 +66494,16 @@ uniform ${precision} ${type} u_${name};
66324
66494
  */
66325
66495
  _this.allowOverlap = false;
66326
66496
  /**
66327
- * Specifies which part of the icon is placed closest to the icons anchor position on the map.
66328
- * <p>`"center"`: The center of the icon is placed closest to the anchor.</p>
66329
- * <p>`"left"`: The left side of the icon is placed closest to the anchor.</p>
66330
- * <p>`"right"`: The right side of the icon is placed closest to the anchor.</p>
66331
- * <p>`"top"`: The top of the icon is placed closest to the anchor.</p>
66332
- * <p>`"bottom"`: The bottom of the icon is placed closest to the anchor.</p>
66333
- * <p>`"top-left"`: The top left corner of the icon is placed closest to the anchor.</p>
66334
- * <p>`"top-right"`: The top right corner of the icon is placed closest to the anchor.</p>
66335
- * <p>`"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.</p>
66336
- * <p>`"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.</p>
66497
+ * Specifies which part of the icon is placed closest to the icons anchor position on the map.<br />
66498
+ * `"center"`: The center of the icon is placed closest to the anchor.<br />
66499
+ * `"left"`: The left side of the icon is placed closest to the anchor.<br />
66500
+ * `"right"`: The right side of the icon is placed closest to the anchor.<br />
66501
+ * `"top"`: The top of the icon is placed closest to the anchor.<br />
66502
+ * `"bottom"`: The bottom of the icon is placed closest to the anchor.<br />
66503
+ * `"top-left"`: The top left corner of the icon is placed closest to the anchor.<br />
66504
+ * `"top-right"`: The top right corner of the icon is placed closest to the anchor.<br />
66505
+ * `"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.<br />
66506
+ * `"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.<br />
66337
66507
  * Default `"bottom"`.
66338
66508
  * @default "bottom"
66339
66509
  */
@@ -66378,10 +66548,10 @@ uniform ${precision} ${type} u_${name};
66378
66548
  */
66379
66549
  _this.padding = 2;
66380
66550
  /**
66381
- * Specifies the orientation of the icon when the map is pitched.
66382
- * <p>`"auto"`: Automatically matches the value of `rotationAlignment`.</p>
66383
- * <p>`"map"`: The icon is aligned to the plane of the map.</p>
66384
- * <p>`"viewport"`: The icon is aligned to the plane of the viewport</p>
66551
+ * Specifies the orientation of the icon when the map is pitched.<br />
66552
+ * `"auto"`: Automatically matches the value of `rotationAlignment`.<br />
66553
+ * `"map"`: The icon is aligned to the plane of the map.<br />
66554
+ * `"viewport"`: The icon is aligned to the plane of the viewport<br />
66385
66555
  * Default `"auto"`
66386
66556
  * @default "auto"
66387
66557
  */
@@ -66394,12 +66564,12 @@ uniform ${precision} ${type} u_${name};
66394
66564
  _this.rotation = 0;
66395
66565
  /**
66396
66566
  * In combination with the placement property of a SymbolLayerOptions
66397
- * this determines the rotation behavior of icons.
66398
- * <p>`"auto"`: When placement is "point" this is equivalent to "viewport".
66399
- * When placement is "line" this is equivalent to "map".</p>
66400
- * <p>`"map"`: When placement is "point" aligns icons east-west.
66401
- * When placement is "line" aligns the icons' x-axes with the line.</p>
66402
- * <p>`"viewport"`: Icons' x-axes will align with the x-axis of the viewport.</p>
66567
+ * this determines the rotation behavior of icons.<br />
66568
+ * `"auto"`: When placement is "point" this is equivalent to "viewport".
66569
+ * When placement is "line" this is equivalent to "map".<br />
66570
+ * `"map"`: When placement is "point" aligns icons east-west.
66571
+ * When placement is "line" aligns the icons' x-axes with the line.<br />
66572
+ * `"viewport"`: Icons' x-axes will align with the x-axis of the viewport.<br />
66403
66573
  * Default `"auto"`.
66404
66574
  * @default "auto"
66405
66575
  */
@@ -66422,7 +66592,7 @@ uniform ${precision} ${type} u_${name};
66422
66592
  return IconOptions;
66423
66593
  }(Options));
66424
66594
 
66425
- var __extends$w = (window && window.__extends) || (function () {
66595
+ var __extends$y = (window && window.__extends) || (function () {
66426
66596
  var extendStatics = function (d, b) {
66427
66597
  extendStatics = Object.setPrototypeOf ||
66428
66598
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66441,7 +66611,7 @@ uniform ${precision} ${type} u_${name};
66441
66611
  * Options used to customize the text in a SymbolLayer
66442
66612
  */
66443
66613
  var TextOptions = /** @class */ (function (_super) {
66444
- __extends$w(TextOptions, _super);
66614
+ __extends$y(TextOptions, _super);
66445
66615
  function TextOptions() {
66446
66616
  var _this = _super !== null && _super.apply(this, arguments) || this;
66447
66617
  /**
@@ -66452,16 +66622,16 @@ uniform ${precision} ${type} u_${name};
66452
66622
  */
66453
66623
  _this.allowOverlap = false;
66454
66624
  /**
66455
- * Specifies which part of the icon is placed closest to the icons anchor position on the map.
66456
- * <p>`"center"`: The center of the icon is placed closest to the anchor.</p>
66457
- * <p>`"left"`: The left side of the icon is placed closest to the anchor.</p>
66458
- * <p>`"right"`: The right side of the icon is placed closest to the anchor.</p>
66459
- * <p>`"top"`: The top of the icon is placed closest to the anchor.</p>
66460
- * <p>`"bottom"`: The bottom of the icon is placed closest to the anchor.</p>
66461
- * <p>`"top-left"`: The top left corner of the icon is placed closest to the anchor.</p>
66462
- * <p>`"top-right"`: The top right corner of the icon is placed closest to the anchor.</p>
66463
- * <p>`"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.</p>
66464
- * <p>`"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.</p>
66625
+ * Specifies which part of the icon is placed closest to the icons anchor position on the map.<br />
66626
+ * `"center"`: The center of the icon is placed closest to the anchor.<br />
66627
+ * `"left"`: The left side of the icon is placed closest to the anchor.<br />
66628
+ * `"right"`: The right side of the icon is placed closest to the anchor.<br />
66629
+ * `"top"`: The top of the icon is placed closest to the anchor.<br />
66630
+ * `"bottom"`: The bottom of the icon is placed closest to the anchor.<br />
66631
+ * `"top-left"`: The top left corner of the icon is placed closest to the anchor.<br />
66632
+ * `"top-right"`: The top right corner of the icon is placed closest to the anchor.<br />
66633
+ * `"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.<br />
66634
+ * `"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.<br />
66465
66635
  * Default `"center"`.
66466
66636
  * @default "center"
66467
66637
  */
@@ -66491,11 +66661,11 @@ uniform ${precision} ${type} u_${name};
66491
66661
  */
66492
66662
  _this.ignorePlacement = false;
66493
66663
  /**
66494
- * Text justification options.
66495
- * <p>`"auto"`: The text is aligned towards the anchor position.
66496
- * <p>`"left"`: The text is aligned to the left.
66497
- * <p>`"center"`: The text is centered.
66498
- * <p>`"right"`: The text is aligned to the right.
66664
+ * Text justification options.<br />
66665
+ * `"auto"`: The text is aligned towards the anchor position.<br />
66666
+ * `"left"`: The text is aligned to the left.<br />
66667
+ * `"center"`: The text is centered.<br />
66668
+ * `"right"`: The text is aligned to the right.<br />
66499
66669
  * Default `"center"`.
66500
66670
  * @default "center"
66501
66671
  */
@@ -66523,10 +66693,10 @@ uniform ${precision} ${type} u_${name};
66523
66693
  */
66524
66694
  _this.padding = 2;
66525
66695
  /**
66526
- * Specifies the orientation of the text when the map is pitched.
66527
- * <p>`"auto"`: Automatically matches the value of `rotationAlignment`.</p>
66528
- * <p>`"map"`: The text is aligned to the plane of the map.</p>
66529
- * <p>`"viewport"`: The text is aligned to the plane of the viewport.</p>
66696
+ * Specifies the orientation of the text when the map is pitched.<br />
66697
+ * `"auto"`: Automatically matches the value of `rotationAlignment`.<br />
66698
+ * `"map"`: The text is aligned to the plane of the map.<br />
66699
+ * `"viewport"`: The text is aligned to the plane of the viewport.<br />
66530
66700
  * Default: `"auto"`
66531
66701
  * @default "auto"
66532
66702
  */
@@ -66546,13 +66716,13 @@ uniform ${precision} ${type} u_${name};
66546
66716
  _this.rotation = 0;
66547
66717
  /**
66548
66718
  * In combination with the `placement` property of the `SymbolLayerOptions`,
66549
- * specifies the rotation behavior of the individual glyphs forming the text.
66550
- * <p>`"auto"`: When the `placement` is set to `"point"`, this is equivalent to `"map"`.
66551
- * When the `placement` is set to `"line"` this is equivalent to `"map"`.</p>
66552
- * <p>`"map"`: When the `placement` is set to `"point"`, aligns text east-west.
66553
- * When the `placement` is set to `"line"`, aligns text x-axes with the line.</p>
66554
- * <p>`"viewport"`: Produces glyphs whose x-axes are aligned with the x-axis of the viewport,
66555
- * regardless of the value of `placement`.</p>
66719
+ * specifies the rotation behavior of the individual glyphs forming the text.<br />
66720
+ * `"auto"`: When the `placement` is set to `"point"`, this is equivalent to `"map"`.
66721
+ * When the `placement` is set to `"line"` this is equivalent to `"map"`.<br />
66722
+ * `"map"`: When the `placement` is set to `"point"`, aligns text east-west.
66723
+ * When the `placement` is set to `"line"`, aligns text x-axes with the line.<br />
66724
+ * `"viewport"`: Produces glyphs whose x-axes are aligned with the x-axis of the viewport,
66725
+ * regardless of the value of `placement`.<br />
66556
66726
  * Default: `"auto"`
66557
66727
  * @default "auto"
66558
66728
  */
@@ -66562,16 +66732,16 @@ uniform ${precision} ${type} u_${name};
66562
66732
  * labels on the map. The renderer will attempt to place the label at each location,
66563
66733
  * in order, before moving onto the next label. Use `justify: "auto"` to choose text
66564
66734
  * justification based on anchor position. To apply an offset use the `radialOffset` or
66565
- * two-dimensional `offset` options.
66566
- * <p>`"center"`: The center of the icon is placed closest to the anchor.</p>
66567
- * <p>`"left"`: The left side of the icon is placed closest to the anchor.</p>
66568
- * <p>`"right"`: The right side of the icon is placed closest to the anchor.</p>
66569
- * <p>`"top"`: The top of the icon is placed closest to the anchor.</p>
66570
- * <p>`"bottom"`: The bottom of the icon is placed closest to the anchor.</p>
66571
- * <p>`"top-left"`: The top left corner of the icon is placed closest to the anchor.</p>
66572
- * <p>`"top-right"`: The top right corner of the icon is placed closest to the anchor.</p>
66573
- * <p>`"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.</p>
66574
- * <p>`"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.</p>
66735
+ * two-dimensional `offset` options.<br />
66736
+ * `"center"`: The center of the icon is placed closest to the anchor.<br />
66737
+ * `"left"`: The left side of the icon is placed closest to the anchor.<br />
66738
+ * `"right"`: The right side of the icon is placed closest to the anchor.<br />
66739
+ * `"top"`: The top of the icon is placed closest to the anchor.<br />
66740
+ * `"bottom"`: The bottom of the icon is placed closest to the anchor.<br />
66741
+ * `"top-left"`: The top left corner of the icon is placed closest to the anchor.<br />
66742
+ * `"top-right"`: The top right corner of the icon is placed closest to the anchor.<br />
66743
+ * `"bottom-left"`: The bottom left corner of the icon is placed closest to the anchor.<br />
66744
+ * `"bottom-right"`: The bottom right corner of the icon is placed closest to the anchor.<br />
66575
66745
  * Default: `undefined`
66576
66746
  * @default undefined
66577
66747
  */
@@ -66621,7 +66791,7 @@ uniform ${precision} ${type} u_${name};
66621
66791
  return TextOptions;
66622
66792
  }(Options));
66623
66793
 
66624
- var __extends$v = (window && window.__extends) || (function () {
66794
+ var __extends$x = (window && window.__extends) || (function () {
66625
66795
  var extendStatics = function (d, b) {
66626
66796
  extendStatics = Object.setPrototypeOf ||
66627
66797
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66640,7 +66810,7 @@ uniform ${precision} ${type} u_${name};
66640
66810
  * Options used when rendering geometries in a SymbolLayer.
66641
66811
  */
66642
66812
  var SymbolLayerOptions = /** @class */ (function (_super) {
66643
- __extends$v(SymbolLayerOptions, _super);
66813
+ __extends$x(SymbolLayerOptions, _super);
66644
66814
  function SymbolLayerOptions() {
66645
66815
  var _this = _super !== null && _super.apply(this, arguments) || this;
66646
66816
  /**
@@ -66664,12 +66834,12 @@ uniform ${precision} ${type} u_${name};
66664
66834
  */
66665
66835
  _this.textOptions = new TextOptions();
66666
66836
  /**
66667
- * Specifies the label placement relative to its geometry.
66668
- * <p>`"point"`: The label is placed at the point where the geometry is located.</p>
66669
- * <p>`"line"`: The label is placed along the line of the geometry.
66670
- * Can only be used on LineString and Polygon geometries.</p>
66671
- * <p> `"line-center"`: The label is placed at the center of the line of the geometry.
66672
- * Can only be used on `LineString` and `Polygon` geometries </p>
66837
+ * Specifies the label placement relative to its geometry.<br />
66838
+ * `"point"`: The label is placed at the point where the geometry is located.<br />
66839
+ * `"line"`: The label is placed along the line of the geometry.
66840
+ * Can only be used on LineString and Polygon geometries.<br />
66841
+ * `"line-center"`: The label is placed at the center of the line of the geometry.
66842
+ * Can only be used on `LineString` and `Polygon` geometries <br />
66673
66843
  * Default `"point"`.
66674
66844
  * @default "point"
66675
66845
  */
@@ -66684,12 +66854,12 @@ uniform ${precision} ${type} u_${name};
66684
66854
  /**
66685
66855
  * Determines whether overlapping symbols in the same layer are rendered in the order
66686
66856
  * that they appear in the data source, or by their y position relative to the viewport.
66687
- * To control the order and prioritization of symbols otherwise, use `sortKey`.
66688
- * <p>`"auto"`: Sorts symbols by `sortKey` if set. Otherwise behaves like `"viewport-y"`.
66689
- * <p>`"viewport-y"`: Sorts symbols by their y position if `allowOverlap` is `true` or
66690
- * if `ignorePlacement` is `false`.
66691
- * <p>`"source"`: Sorts symbols by `sortKey` if set. Otherwise, symbols are rendered in the
66692
- * same order as the source data.
66857
+ * To control the order and prioritization of symbols otherwise, use `sortKey`.<br />
66858
+ * `"auto"`: Sorts symbols by `sortKey` if set. Otherwise behaves like `"viewport-y"`.<br />
66859
+ * `"viewport-y"`: Sorts symbols by their y position if `allowOverlap` is `true` or
66860
+ * if `ignorePlacement` is `false`.<br />
66861
+ * `"source"`: Sorts symbols by `sortKey` if set. Otherwise, symbols are rendered in the
66862
+ * same order as the source data.<br />
66693
66863
  * Default `"auto"`
66694
66864
  * @default "auto"
66695
66865
  */
@@ -66705,7 +66875,7 @@ uniform ${precision} ${type} u_${name};
66705
66875
  return SymbolLayerOptions;
66706
66876
  }(LayerOptions$1));
66707
66877
 
66708
- var __extends$u = (window && window.__extends) || (function () {
66878
+ var __extends$w = (window && window.__extends) || (function () {
66709
66879
  var extendStatics = function (d, b) {
66710
66880
  extendStatics = Object.setPrototypeOf ||
66711
66881
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66736,7 +66906,7 @@ uniform ${precision} ${type} u_${name};
66736
66906
  * Symbols can also be created for line and polygon data as well.
66737
66907
  */
66738
66908
  var SymbolLayer = /** @class */ (function (_super) {
66739
- __extends$u(SymbolLayer, _super);
66909
+ __extends$w(SymbolLayer, _super);
66740
66910
  /**
66741
66911
  * Constructs a new SymbolLayer.
66742
66912
  * @param source The id or instance of a data source which the layer will render.
@@ -66878,7 +67048,7 @@ uniform ${precision} ${type} u_${name};
66878
67048
  return SymbolLayer;
66879
67049
  }(Layer));
66880
67050
 
66881
- var __extends$t = (window && window.__extends) || (function () {
67051
+ var __extends$v = (window && window.__extends) || (function () {
66882
67052
  var extendStatics = function (d, b) {
66883
67053
  extendStatics = Object.setPrototypeOf ||
66884
67054
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -66909,7 +67079,7 @@ uniform ${precision} ${type} u_${name};
66909
67079
  * @private
66910
67080
  */
66911
67081
  var FundamentalMapSource = /** @class */ (function (_super) {
66912
- __extends$t(FundamentalMapSource, _super);
67082
+ __extends$v(FundamentalMapSource, _super);
66913
67083
  /**
66914
67084
  * Constructs a source from the contents of a layer resource file.
66915
67085
  * @param id The source's id.
@@ -66995,7 +67165,7 @@ uniform ${precision} ${type} u_${name};
66995
67165
  return FundamentalMapSource;
66996
67166
  }(Source));
66997
67167
 
66998
- var __extends$s = (window && window.__extends) || (function () {
67168
+ var __extends$u = (window && window.__extends) || (function () {
66999
67169
  var extendStatics = function (d, b) {
67000
67170
  extendStatics = Object.setPrototypeOf ||
67001
67171
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67014,7 +67184,7 @@ uniform ${precision} ${type} u_${name};
67014
67184
  * Options used when rendering raster tiled images in a TileLayer.
67015
67185
  */
67016
67186
  var TileLayerOptions = /** @class */ (function (_super) {
67017
- __extends$s(TileLayerOptions, _super);
67187
+ __extends$u(TileLayerOptions, _super);
67018
67188
  function TileLayerOptions() {
67019
67189
  var _this = _super !== null && _super.apply(this, arguments) || this;
67020
67190
  /**
@@ -67070,7 +67240,7 @@ uniform ${precision} ${type} u_${name};
67070
67240
  return TileLayerOptions;
67071
67241
  }(MediaLayerOptions));
67072
67242
 
67073
- var __extends$r = (window && window.__extends) || (function () {
67243
+ var __extends$t = (window && window.__extends) || (function () {
67074
67244
  var extendStatics = function (d, b) {
67075
67245
  extendStatics = Object.setPrototypeOf ||
67076
67246
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67111,7 +67281,7 @@ uniform ${precision} ${type} u_${name};
67111
67281
  * Renders raster tiled images on top of the map tiles.
67112
67282
  */
67113
67283
  var TileLayer = /** @class */ (function (_super) {
67114
- __extends$r(TileLayer, _super);
67284
+ __extends$t(TileLayer, _super);
67115
67285
  /**
67116
67286
  * Constructs a new TileLayer.
67117
67287
  * @param options The options for the tile layer.
@@ -67264,7 +67434,7 @@ uniform ${precision} ${type} u_${name};
67264
67434
  return TileLayer;
67265
67435
  }(SourceBuildingLayer));
67266
67436
 
67267
- var __extends$q = (window && window.__extends) || (function () {
67437
+ var __extends$s = (window && window.__extends) || (function () {
67268
67438
  var extendStatics = function (d, b) {
67269
67439
  extendStatics = Object.setPrototypeOf ||
67270
67440
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67283,7 +67453,7 @@ uniform ${precision} ${type} u_${name};
67283
67453
  * Options used to render graphics in a WebGLLayer.
67284
67454
  */
67285
67455
  var WebGLLayerOptions = /** @class */ (function (_super) {
67286
- __extends$q(WebGLLayerOptions, _super);
67456
+ __extends$s(WebGLLayerOptions, _super);
67287
67457
  function WebGLLayerOptions() {
67288
67458
  var _this = _super !== null && _super.apply(this, arguments) || this;
67289
67459
  /**
@@ -67295,7 +67465,7 @@ uniform ${precision} ${type} u_${name};
67295
67465
  return WebGLLayerOptions;
67296
67466
  }(LayerOptions$1));
67297
67467
 
67298
- var __extends$p = (window && window.__extends) || (function () {
67468
+ var __extends$r = (window && window.__extends) || (function () {
67299
67469
  var extendStatics = function (d, b) {
67300
67470
  extendStatics = Object.setPrototypeOf ||
67301
67471
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67314,7 +67484,7 @@ uniform ${precision} ${type} u_${name};
67314
67484
  * Enables custom rendering logic with access to the WebGL context of the map.
67315
67485
  */
67316
67486
  var WebGLLayer = /** @class */ (function (_super) {
67317
- __extends$p(WebGLLayer, _super);
67487
+ __extends$r(WebGLLayer, _super);
67318
67488
  /**
67319
67489
  * Constructs a new WebGLLayer.
67320
67490
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -67547,7 +67717,7 @@ uniform ${precision} ${type} u_${name};
67547
67717
 
67548
67718
  var isElement$1 = /*@__PURE__*/getDefaultExportFromCjs(isElement_1);
67549
67719
 
67550
- var __extends$o = (window && window.__extends) || (function () {
67720
+ var __extends$q = (window && window.__extends) || (function () {
67551
67721
  var extendStatics = function (d, b) {
67552
67722
  extendStatics = Object.setPrototypeOf ||
67553
67723
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67566,7 +67736,7 @@ uniform ${precision} ${type} u_${name};
67566
67736
  * The options for a popup.
67567
67737
  */
67568
67738
  var PopupOptions = /** @class */ (function (_super) {
67569
- __extends$o(PopupOptions, _super);
67739
+ __extends$q(PopupOptions, _super);
67570
67740
  function PopupOptions() {
67571
67741
  var _this = _super !== null && _super.apply(this, arguments) || this;
67572
67742
  /**
@@ -67635,7 +67805,7 @@ uniform ${precision} ${type} u_${name};
67635
67805
  return PopupOptions;
67636
67806
  }(Options));
67637
67807
 
67638
- var __extends$n = (window && window.__extends) || (function () {
67808
+ var __extends$p = (window && window.__extends) || (function () {
67639
67809
  var extendStatics = function (d, b) {
67640
67810
  extendStatics = Object.setPrototypeOf ||
67641
67811
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -67670,7 +67840,7 @@ uniform ${precision} ${type} u_${name};
67670
67840
  * An information window anchored at a specified position on a map.
67671
67841
  */
67672
67842
  var Popup = /** @class */ (function (_super) {
67673
- __extends$n(Popup, _super);
67843
+ __extends$p(Popup, _super);
67674
67844
  /**
67675
67845
  * Constructs a Popup object and initializes it with the specified options.
67676
67846
  * @param options The options for the popup.
@@ -68144,7 +68314,7 @@ uniform ${precision} ${type} u_${name};
68144
68314
  return Popup;
68145
68315
  }(EventEmitter));
68146
68316
 
68147
- var __extends$m = (window && window.__extends) || (function () {
68317
+ var __extends$o = (window && window.__extends) || (function () {
68148
68318
  var extendStatics = function (d, b) {
68149
68319
  extendStatics = Object.setPrototypeOf ||
68150
68320
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -68163,7 +68333,7 @@ uniform ${precision} ${type} u_${name};
68163
68333
  * Options for rendering an HtmlMarker object
68164
68334
  */
68165
68335
  var HtmlMarkerOptions = /** @class */ (function (_super) {
68166
- __extends$m(HtmlMarkerOptions, _super);
68336
+ __extends$o(HtmlMarkerOptions, _super);
68167
68337
  function HtmlMarkerOptions() {
68168
68338
  var _this = _super !== null && _super.apply(this, arguments) || this;
68169
68339
  /**
@@ -68241,7 +68411,7 @@ uniform ${precision} ${type} u_${name};
68241
68411
  return HtmlMarkerOptions;
68242
68412
  }(Options));
68243
68413
 
68244
- var __extends$l = (window && window.__extends) || (function () {
68414
+ var __extends$n = (window && window.__extends) || (function () {
68245
68415
  var extendStatics = function (d, b) {
68246
68416
  extendStatics = Object.setPrototypeOf ||
68247
68417
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -68260,7 +68430,7 @@ uniform ${precision} ${type} u_${name};
68260
68430
  * This class wraps an HTML element that can be displayed on the map.
68261
68431
  */
68262
68432
  var HtmlMarker = /** @class */ (function (_super) {
68263
- __extends$l(HtmlMarker, _super);
68433
+ __extends$n(HtmlMarker, _super);
68264
68434
  /**
68265
68435
  * Constructs a new HtmlMarker.
68266
68436
  * @param options The options for the HtmlMarker.
@@ -88762,7 +88932,7 @@ uniform ${precision} ${type} u_${name};
88762
88932
  return Insights;
88763
88933
  }());
88764
88934
 
88765
- var __extends$k = (window && window.__extends) || (function () {
88935
+ var __extends$m = (window && window.__extends) || (function () {
88766
88936
  var extendStatics = function (d, b) {
88767
88937
  extendStatics = Object.setPrototypeOf ||
88768
88938
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -88781,7 +88951,7 @@ uniform ${precision} ${type} u_${name};
88781
88951
  * The options for a CopyrightControl object.
88782
88952
  */
88783
88953
  var CopyrightControlOptions = /** @class */ (function (_super) {
88784
- __extends$k(CopyrightControlOptions, _super);
88954
+ __extends$m(CopyrightControlOptions, _super);
88785
88955
  function CopyrightControlOptions() {
88786
88956
  var _this = _super !== null && _super.apply(this, arguments) || this;
88787
88957
  /**
@@ -88810,7 +88980,7 @@ uniform ${precision} ${type} u_${name};
88810
88980
  return CopyrightControlOptions;
88811
88981
  }(Options));
88812
88982
 
88813
- var __extends$j = (window && window.__extends) || (function () {
88983
+ var __extends$l = (window && window.__extends) || (function () {
88814
88984
  var extendStatics = function (d, b) {
88815
88985
  extendStatics = Object.setPrototypeOf ||
88816
88986
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -88829,7 +88999,7 @@ uniform ${precision} ${type} u_${name};
88829
88999
  * @private
88830
89000
  */
88831
89001
  var CopyrightControl = /** @class */ (function (_super) {
88832
- __extends$j(CopyrightControl, _super);
89002
+ __extends$l(CopyrightControl, _super);
88833
89003
  function CopyrightControl(options) {
88834
89004
  var _this = _super.call(this) || this;
88835
89005
  _this.textAttribution = function (options) {
@@ -88851,13 +89021,10 @@ uniform ${precision} ${type} u_${name};
88851
89021
  CopyrightControl.prototype.onAdd = function (map) {
88852
89022
  this.map = map;
88853
89023
  this.container = this.buildContainer(map, exports.ControlStyle.auto);
88854
- this.container.className = "map-copyright";
89024
+ this.container.className = "map-copyright without-bg";
88855
89025
  this.copyrightDiv = this.buildCopyrightDiv();
88856
89026
  this.copyrightDiv.className = "azure-map-copyright";
88857
89027
  this.container.appendChild(this.copyrightDiv);
88858
- if (this.options.showLogo) {
88859
- this.addRemoveLogo(true);
88860
- }
88861
89028
  if (this.options.showFeedbackLink) {
88862
89029
  this.addRemoveFeedbackDiv(true);
88863
89030
  }
@@ -88887,12 +89054,6 @@ uniform ${precision} ${type} u_${name};
88887
89054
  }
88888
89055
  this.options.copyrightContent = newOptions.copyrightContent;
88889
89056
  }
88890
- if (!newOptions.showLogo && this.logoAnchor) {
88891
- this.addRemoveLogo(false);
88892
- }
88893
- else if (newOptions.showLogo && !this.logoAnchor) {
88894
- this.addRemoveLogo(true);
88895
- }
88896
89057
  if (!newOptions.showFeedbackLink && this.feedbackAnchor) {
88897
89058
  this.addRemoveFeedbackDiv(false);
88898
89059
  }
@@ -88918,31 +89079,138 @@ uniform ${precision} ${type} u_${name};
88918
89079
  var link = document.createElement("a");
88919
89080
  link.setAttribute("alt", "Provide Map Data Feedback");
88920
89081
  link.setAttribute("aria-label", "Provide Map Data Feedback");
89082
+ link.innerText = "Feedback";
88921
89083
  link.href = CopyrightControl.feedbackLink;
88922
89084
  link.target = "_blank";
88923
89085
  link.rel = "noopener";
88924
- link.className = "azure-map-feedback";
89086
+ link.className = "azure-map-feedback-text";
88925
89087
  return link;
88926
89088
  };
88927
89089
  CopyrightControl.prototype.addRemoveFeedbackDiv = function (add) {
88928
89090
  var _a, _b, _c, _d;
88929
89091
  if (add) {
88930
89092
  this.feedbackAnchor = this.buildFeedbackLink();
88931
- this.tooltip = buildAccessibleTooltip("Provide Map Data Feedback");
89093
+ this.feedbackTooltip = buildAccessibleTooltip("Provide Map Data Feedback");
88932
89094
  this.container.appendChild(this.feedbackAnchor);
88933
- this.container.appendChild(this.tooltip);
88934
- positionTooltip(this.tooltip, this.feedbackAnchor);
89095
+ this.container.appendChild(this.feedbackTooltip);
89096
+ positionTooltip(this.feedbackTooltip, this.feedbackAnchor);
88935
89097
  (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.add("moveend", this.updateFeedbackLink);
88936
89098
  }
88937
89099
  else {
88938
89100
  this.feedbackAnchor.remove();
88939
- this.tooltip.remove();
88940
- delete this.tooltip;
89101
+ this.feedbackTooltip.remove();
89102
+ delete this.feedbackTooltip;
88941
89103
  delete this.feedbackAnchor;
88942
89104
  (_d = (_c = this.map) === null || _c === void 0 ? void 0 : _c.events) === null || _d === void 0 ? void 0 : _d.remove("moveend", this.updateFeedbackLink);
88943
89105
  }
88944
89106
  };
88945
- CopyrightControl.prototype.addRemoveLogo = function (add) {
89107
+ CopyrightControl.feedbackLink = "https://aka.ms/azuremaps-feedback?feedbackep=UrlAzureMapsWebSdk";
89108
+ return CopyrightControl;
89109
+ }(ControlBase));
89110
+
89111
+ var __extends$k = (window && window.__extends) || (function () {
89112
+ var extendStatics = function (d, b) {
89113
+ extendStatics = Object.setPrototypeOf ||
89114
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
89115
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
89116
+ return extendStatics(d, b);
89117
+ };
89118
+ return function (d, b) {
89119
+ if (typeof b !== "function" && b !== null)
89120
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
89121
+ extendStatics(d, b);
89122
+ function __() { this.constructor = d; }
89123
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
89124
+ };
89125
+ })();
89126
+ /**
89127
+ * The options for a LogoControl object.
89128
+ */
89129
+ var LogoControlOptions = /** @class */ (function (_super) {
89130
+ __extends$k(LogoControlOptions, _super);
89131
+ function LogoControlOptions() {
89132
+ var _this = _super !== null && _super.apply(this, arguments) || this;
89133
+ /**
89134
+ * If true will show the Microsoft logo.
89135
+ */
89136
+ _this.showLogo = true;
89137
+ return _this;
89138
+ }
89139
+ return LogoControlOptions;
89140
+ }(Options));
89141
+
89142
+ var __extends$j = (window && window.__extends) || (function () {
89143
+ var extendStatics = function (d, b) {
89144
+ extendStatics = Object.setPrototypeOf ||
89145
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
89146
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
89147
+ return extendStatics(d, b);
89148
+ };
89149
+ return function (d, b) {
89150
+ if (typeof b !== "function" && b !== null)
89151
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
89152
+ extendStatics(d, b);
89153
+ function __() { this.constructor = d; }
89154
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
89155
+ };
89156
+ })();
89157
+ /**
89158
+ * A control that displays the logo on the map.
89159
+ * @private
89160
+ */
89161
+ var LogoControl = /** @class */ (function (_super) {
89162
+ __extends$j(LogoControl, _super);
89163
+ /**
89164
+ * Construct a control
89165
+ */
89166
+ function LogoControl(options) {
89167
+ var _this = _super.call(this) || this;
89168
+ _this.map = null;
89169
+ /**
89170
+ * Set visibility of the control based on the container width.
89171
+ */
89172
+ _this._onResize = function () {
89173
+ var _a, _b;
89174
+ var width = ((_b = (_a = _this.map) === null || _a === void 0 ? void 0 : _a.getMapContainer()) === null || _b === void 0 ? void 0 : _b.clientWidth) || 0;
89175
+ _this._setVisiblity(_this.options.showLogo && width >= LogoControl.CONTAINER_MIN_WIDTH);
89176
+ };
89177
+ _this.options = new LogoControlOptions().merge(options);
89178
+ return _this;
89179
+ }
89180
+ /**
89181
+ * Initialization method for the control which is called when added to the map.
89182
+ * @param map The map that the control will be added to.
89183
+ * @param options The ControlOptions for this control.
89184
+ * @return An HTMLElement to be placed on the map for the control.
89185
+ */
89186
+ LogoControl.prototype.onAdd = function (map) {
89187
+ var _a;
89188
+ this.map = map;
89189
+ this.container = this.buildContainer(map, exports.ControlStyle.auto);
89190
+ this.container.className = "map-logo-control";
89191
+ (_a = this.map) === null || _a === void 0 ? void 0 : _a.events.add("resize", this._onResize);
89192
+ this._addRemoveLogo(this.options.showLogo);
89193
+ return this.container;
89194
+ };
89195
+ LogoControl.prototype.onRemove = function () {
89196
+ var _a;
89197
+ _super.prototype.onRemove.call(this);
89198
+ (_a = this.map) === null || _a === void 0 ? void 0 : _a.events.remove("resize", this._onResize);
89199
+ this.map = null;
89200
+ delete this.container;
89201
+ };
89202
+ LogoControl.prototype.setOptions = function (options) {
89203
+ var newOptions = new LogoControlOptions().merge(this.options, options);
89204
+ if (!newOptions.showLogo && this.logoAnchor) {
89205
+ this._addRemoveLogo(false);
89206
+ }
89207
+ else if (newOptions.showLogo && !this.logoAnchor) {
89208
+ this._addRemoveLogo(true);
89209
+ }
89210
+ this.options = newOptions;
89211
+ };
89212
+ LogoControl.prototype._addRemoveLogo = function (add) {
89213
+ var _a, _b;
88946
89214
  if (add) {
88947
89215
  this.logoAnchor = document.createElement("a");
88948
89216
  this.logoAnchor.className = "azure-map-logo";
@@ -88953,15 +89221,25 @@ uniform ${precision} ${type} u_${name};
88953
89221
  this.logoTooltip = buildAccessibleTooltip("Visit azure.microsoft.com");
88954
89222
  this.container.appendChild(this.logoTooltip);
88955
89223
  positionTooltip(this.logoTooltip, this.logoAnchor);
89224
+ this._setVisiblity(true);
88956
89225
  }
88957
89226
  else {
88958
- this.logoAnchor.remove();
88959
- this.logoTooltip.remove();
89227
+ (_a = this.logoAnchor) === null || _a === void 0 ? void 0 : _a.remove();
89228
+ (_b = this.logoTooltip) === null || _b === void 0 ? void 0 : _b.remove();
88960
89229
  delete this.logoAnchor;
89230
+ this._setVisiblity(false);
88961
89231
  }
88962
89232
  };
88963
- CopyrightControl.feedbackLink = "https://aka.ms/azuremapsdatafeedback?feedbackep=UrlAzureMapsWebSdk";
88964
- return CopyrightControl;
89233
+ /**
89234
+ * Set visibility of the control.
89235
+ */
89236
+ LogoControl.prototype._setVisiblity = function (visible) {
89237
+ if (this.container) {
89238
+ this.container.style.display = visible ? "flex" : "none";
89239
+ }
89240
+ };
89241
+ LogoControl.CONTAINER_MIN_WIDTH = 480; // The minimum width of the container to show the logo, 5 copyright texts, and the feedback link.
89242
+ return LogoControl;
88965
89243
  }(ControlBase));
88966
89244
 
88967
89245
  /**
@@ -114256,6 +114534,17 @@ uniform ${precision} ${type} u_${name};
114256
114534
  _this.layers = mbLayers;
114257
114535
  return _this;
114258
114536
  }
114537
+ /**
114538
+ * Gets the options of the layer.
114539
+ */
114540
+ FundamentalMapLayer.prototype.getOptions = function () {
114541
+ return {};
114542
+ };
114543
+ /**
114544
+ * Sets the options of the layer.
114545
+ * @param options The new options of the layer.
114546
+ */
114547
+ FundamentalMapLayer.prototype.setOptions = function (options) { return; };
114259
114548
  /**
114260
114549
  * @internal
114261
114550
  */
@@ -114734,14 +115023,14 @@ uniform ${precision} ${type} u_${name};
114734
115023
  /**
114735
115024
  * Retrieve all Shapes and GeoJSON features that are visible on the map that are in a DataSource or VectorTileSource.
114736
115025
  * Shape objects are editable, while Feature objects are not editable and either reside in a VectorTileSource or represent a cluster point.
114737
- * Clusters have the following properties:
114738
- * <p>cluster: `boolean` - Indicates that the point is a cluster.
115026
+ * Clusters have the following properties:<br />
115027
+ * `cluster`: `boolean` - Indicates that the point is a cluster.
114739
115028
  * This will be set to true if Point object represents a cluster.
114740
115029
  * All other point objects are unlikely to have this value unless
114741
- * a property with this same name was added to the Point property data from your app.</p>
114742
- * <p>cluster_id: `string` - A unique id for the cluster.</p>
114743
- * <p>point_count: `number` - The number of points inside the cluster.</p>
114744
- * <p>point_count_abbreviated: `string` - An abbreviated string version of the point count. i.e. `"10K"`</p>
115030
+ * a property with this same name was added to the Point property data from your app.<br />
115031
+ * `cluster_id`: `string` - A unique id for the cluster.<br />
115032
+ * `point_count`: `number` - The number of points inside the cluster.<br />
115033
+ * `point_count_abbreviated`: `string` - An abbreviated string version of the point count. i.e. `"10K"`<br />
114745
115034
  * Features/Shapes that are not visible or who's layer zoom range does not include the current zoom level will not be returned.
114746
115035
  * Symbol features/Shapes that have been hidden due to text or icon collisions are not included.
114747
115036
  * Features/Shapes from all other layers are included even if they have no contribution to the map rendering, e.g. alpha set to zero.
@@ -115409,10 +115698,10 @@ uniform ${precision} ${type} u_${name};
115409
115698
  */
115410
115699
  _this.duration = 1000;
115411
115700
  /**
115412
- * The type of animation.
115413
- * <p>"jump" is an immediate change.</p>
115414
- * <p>"ease" is a gradual change of the camera's settings.</p>
115415
- * <p>"fly" is a gradual change of the camera's settings following an arc resembling flight.</p>
115701
+ * The type of animation.<br />
115702
+ * `"jump"` is an immediate change.<br />
115703
+ * `"ease"` is a gradual change of the camera's settings.<br />
115704
+ * `"fly"` is a gradual change of the camera's settings following an arc resembling flight.<br />
115416
115705
  * Default `"jump"`.
115417
115706
  * @default "jump"
115418
115707
  */
@@ -115655,6 +115944,7 @@ uniform ${precision} ${type} u_${name};
115655
115944
  _this.pitch = 0;
115656
115945
  /**
115657
115946
  * The minimum zoom level that the map can be zoomed out to during the animation. Must be between 0 and 24, and less than or equal to `maxZoom`.
115947
+ * Setting `minZoom` below 1 may result in an empty map when the zoom level is less than 1.
115658
115948
  * Default `1`.
115659
115949
  * @default 1
115660
115950
  */
@@ -116019,15 +116309,15 @@ uniform ${precision} ${type} u_${name};
116019
116309
  var _this = _super !== null && _super.apply(this, arguments) || this;
116020
116310
  /**
116021
116311
  * Specifies wether extruded geometries are lit relative to the map or viewport.
116022
- * Supported values:
116023
- * <p>`"map"`: The position of the light source is aligned to the rotation of the map.</p>
116024
- * <p>`"viewport"`: The position fo the light source is aligned to the rotation of the viewport.</p>
116312
+ * Supported values:<br />
116313
+ * `"map"`: The position of the light source is aligned to the rotation of the map.<br />
116314
+ * `"viewport"`: The position fo the light source is aligned to the rotation of the viewport.<br />
116025
116315
  * Default: `"map"`
116026
116316
  * @default "map"
116027
116317
  */
116028
116318
  _this.anchor = "map";
116029
116319
  /**
116030
- * Color tint for lighting extruded geometries
116320
+ * Color tint for lighting extruded geometries.
116031
116321
  * Default: `"#FFFFFF"`
116032
116322
  * @default "#FFFFFF"
116033
116323
  */
@@ -117116,7 +117406,7 @@ uniform ${precision} ${type} u_${name};
117116
117406
  if (!_this.indoorState) {
117117
117407
  return !style.name.includes('indoor');
117118
117408
  // NOTE: azure-maps-indoor prior to 2.0.7 will not pass theme auto
117119
- // the IndoorModule will request getTheme() from StyleManager and will call StyleManager.setStyleSet(theme == 'dark ? 'indoor_dark' : 'indoor') as approperaite
117409
+ // the IndoorModule will request getTheme() from StyleManager and will call StyleManager.setStyleSet(theme == 'dark ? 'indoor_dark' : 'indoor') as approperaite
117120
117410
  }
117121
117411
  else if (_this.indoorState.theme === 'auto') {
117122
117412
  return style.name.endsWith(style.theme === 'dark' ? '_indoor_dark' : '_indoor');
@@ -117141,7 +117431,7 @@ uniform ${precision} ${type} u_${name};
117141
117431
  styleVersion: definitions.version !== undefined && definitions.version !== null
117142
117432
  ? definitions.version
117143
117433
  : _this.serviceOptions.styleDefinitionsVersion,
117144
- // thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
117434
+ // thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
117145
117435
  //language: styleOptions.language
117146
117436
  // add MapControlVersion to make sure we have different local cache between map control versions
117147
117437
  mcv: version$3.replace(/\./g, '')
@@ -117258,7 +117548,14 @@ uniform ${precision} ${type} u_${name};
117258
117548
  }
117259
117549
  if (layer) {
117260
117550
  var sourcesToCopy = new Set(Array.from(userLayer.layer._getSourceIds())
117261
- .map(function (sourceId) { return previousStyle.sources[sourceId] ? { source: previousStyle.sources[sourceId], id: sourceId } : undefined; })
117551
+ .map(function (sourceId) {
117552
+ // If source is already present in the target style, skip copy
117553
+ if (style.sources[sourceId]) {
117554
+ return undefined;
117555
+ }
117556
+ var source = previousStyle.sources[sourceId];
117557
+ return source ? { source: source, id: sourceId } : undefined;
117558
+ })
117262
117559
  .filter(function (source) { return source !== undefined; }));
117263
117560
  var insertIdx = beforeLayerId ? style.layers.findIndex(function (layer) { return layer.id === beforeLayerId; }) : -1;
117264
117561
  if (insertIdx > -1) {
@@ -117294,7 +117591,7 @@ uniform ${precision} ${type} u_${name};
117294
117591
  // FIXME: below diffing will be soon fixed on the maplibre side
117295
117592
  // If there was a previous styledata change event attached, remove it.
117296
117593
  // When the sprite url changes between style changes then maplibre can't perform the diff
117297
- // In such cases it recalculate the style again. Removing previous attached
117594
+ // In such cases it recalculate the style again. Removing previous attached
117298
117595
  // event listener makes sure that style changed event is not fired twice in these cases.
117299
117596
  _this.map.events.remove("styledata", styleDataCallback);
117300
117597
  _this.map.events.addOnce("styledata", styleDataCallback);
@@ -117869,6 +118166,13 @@ uniform ${precision} ${type} u_${name};
117869
118166
  _this.controls.add(_this.copyrightControl, {
117870
118167
  position: exports.ControlPosition.NonFixed
117871
118168
  });
118169
+ // Add logo control to occupy the bottom left corner of the map.
118170
+ _this.logoControl = new LogoControl({
118171
+ showLogo: _this.styleOptions.showLogo
118172
+ });
118173
+ _this.controls.add(_this.logoControl, {
118174
+ position: exports.ControlPosition.BottomLeft
118175
+ });
117872
118176
  // Initialize state of map
117873
118177
  // --> Initialize the authentication manager
117874
118178
  var authManInit = _this.authentication ?
@@ -118094,6 +118398,9 @@ uniform ${precision} ${type} u_${name};
118094
118398
  pitch: cameraOptions.pitch,
118095
118399
  around: undefined
118096
118400
  };
118401
+ if (cameraOptions.minZoom < 1) {
118402
+ console.warn("Setting minZoom below 1 may result in an empty map when the zoom level is less than 1.");
118403
+ }
118097
118404
  this.map.setMinZoom(cameraOptions.minZoom);
118098
118405
  this.map.setMaxZoom(cameraOptions.maxZoom);
118099
118406
  if (cameraOptions.minPitch) {
@@ -118191,6 +118498,7 @@ uniform ${precision} ${type} u_${name};
118191
118498
  // Add or remove the logo if needed.
118192
118499
  if (newOptions.showLogo !== this.styleOptions.showLogo) {
118193
118500
  this.copyrightControl.setOptions({ showLogo: newOptions.showLogo });
118501
+ this.logoControl.setOptions({ showLogo: newOptions.showLogo });
118194
118502
  }
118195
118503
  // Update showing tile boundaries if needed.
118196
118504
  if (newOptions.showTileBoundaries !== this.styleOptions.showTileBoundaries) {