azure-maps-control 2.1.5 → 2.1.6

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
@@ -43487,7 +43487,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43487
43487
  return Url;
43488
43488
  }());
43489
43489
 
43490
- var version = "2.1.5";
43490
+ var version = "2.1.6";
43491
43491
 
43492
43492
  /**
43493
43493
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -69521,9 +69521,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
69521
69521
  if (_this.dpPoint) {
69522
69522
  _this.map._getMap().touchZoomRotate.enable();
69523
69523
  _this.map._getMap().dragPan.enable();
69524
- _this.map._getMap().touchZoomRotate.onStart(Date.now() - _this.startTiming >= _this.delay
69525
- ? data.originalEvent
69526
- : _this.startEventData.originalEvent);
69527
69524
  }
69528
69525
  _this.dpPoint = undefined;
69529
69526
  return;
@@ -78198,6 +78195,23 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
78198
78195
  * By default, it is set to half the number of CPU cores (capped at 6).
78199
78196
  */
78200
78197
  _this.workerCount = getWorkerCount();
78198
+ /**
78199
+ * Controls the duration of the fade-in/fade-out animation for label collisions, in milliseconds.
78200
+ * This setting affects all symbol layers.
78201
+ * This setting does not affect the duration of runtime styling transitions or raster tile cross-fading.
78202
+ * @default 300
78203
+ */
78204
+ _this.fadeDuration = 300;
78205
+ /**
78206
+ * Defines a CSS font-family for locally overriding generation of glyphs in the
78207
+ * 'CJK Unified Ideographs', 'Hiragana', 'Katakana' and 'Hangul Syllables' ranges.
78208
+ * In these ranges, font settings from the map's style will be ignored,
78209
+ * except for font-weight keywords (light/regular/medium/bold). Set to false,
78210
+ * to enable font settings from the map's style for these glyph ranges.
78211
+ * The purpose of this option is to avoid bandwidth-intensive glyph server requests.
78212
+ * @default 'sans-serif'
78213
+ */
78214
+ _this.localIdeographFontFamily = 'sans-serif';
78201
78215
  return _this;
78202
78216
  }
78203
78217
  /**
@@ -78461,6 +78475,22 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
78461
78475
  */
78462
78476
  StyleManager.prototype._stylePatch = function (previousStyle, nextStyle, preserveLayer, updatePaintProperty, updateLayoutProperty, updateFilter) {
78463
78477
  var _this = this;
78478
+ // Layers in the next style with default properties that do not align with current StyleOptions
78479
+ // should be modified before they are applied to the map.
78480
+ var styleOptions = this.map.getStyle();
78481
+ var trafficOptions = this.map.getTraffic();
78482
+ // force a replacement of language placeholder in the tileset url to avoid resolution to a same cache with placeholders on language change
78483
+ nextStyle.sources = Object.entries(nextStyle.sources).reduce(function (newSources, _a) {
78484
+ var _b = __read(_a, 2), sourceKey = _b[0], source = _b[1];
78485
+ var newSource = __assign({}, source);
78486
+ if ('url' in newSource && typeof newSource.url === 'string') {
78487
+ if (newSource.url.includes(constants.languagePlaceHolder)) {
78488
+ newSource.url = newSource.url.replace(constants.languagePlaceHolder, styleOptions.language);
78489
+ }
78490
+ }
78491
+ newSources[sourceKey] = newSource;
78492
+ return newSources;
78493
+ }, {});
78464
78494
  // A FundamentalMapLayer (grouped layer) representation of the next style must be built.
78465
78495
  var previousLayers = this.map.layers.getLayers();
78466
78496
  var nextLayers = [];
@@ -78471,10 +78501,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
78471
78501
  currentLayerGroupId = nextLayerGroup;
78472
78502
  currentLayerGroupLayers = [];
78473
78503
  };
78474
- // Layers in the next style with default properties that do not align with current StyleOptions
78475
- // should be modified before they are applied to the map.
78476
- var styleOptions = this.map.getStyle();
78477
- var trafficOptions = this.map.getTraffic();
78478
78504
  nextStyle.layers.forEach(function (nextLayer) {
78479
78505
  var _a, _b, _c;
78480
78506
  var layerGroup = LayerGroupComparator.getLayerGroup(nextLayer.id);
@@ -78740,6 +78766,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
78740
78766
  var mapboxMapOptions = {
78741
78767
  attributionControl: false,
78742
78768
  container: container,
78769
+ fadeDuration: _this.serviceOptions.fadeDuration,
78770
+ localIdeographFontFamily: _this.serviceOptions.localIdeographFontFamily,
78743
78771
  preserveDrawingBuffer: _this.styleOptions.preserveDrawingBuffer,
78744
78772
  refreshExpiredTiles: _this.serviceOptions.refreshExpiredTiles,
78745
78773
  renderWorldCopies: _this.styleOptions.renderWorldCopies,