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-core.js +36 -8
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas.js +36 -8
- package/dist/atlas.min.js +1 -1
- package/package.json +1 -1
- package/typings/index.d.ts +17 -0
package/dist/atlas-core.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.
|
|
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.
|
|
@@ -59340,9 +59340,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
59340
59340
|
if (_this.dpPoint) {
|
|
59341
59341
|
_this.map._getMap().touchZoomRotate.enable();
|
|
59342
59342
|
_this.map._getMap().dragPan.enable();
|
|
59343
|
-
_this.map._getMap().touchZoomRotate.onStart(Date.now() - _this.startTiming >= _this.delay
|
|
59344
|
-
? data.originalEvent
|
|
59345
|
-
: _this.startEventData.originalEvent);
|
|
59346
59343
|
}
|
|
59347
59344
|
_this.dpPoint = undefined;
|
|
59348
59345
|
return;
|
|
@@ -68017,6 +68014,23 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68017
68014
|
* By default, it is set to half the number of CPU cores (capped at 6).
|
|
68018
68015
|
*/
|
|
68019
68016
|
_this.workerCount = getWorkerCount();
|
|
68017
|
+
/**
|
|
68018
|
+
* Controls the duration of the fade-in/fade-out animation for label collisions, in milliseconds.
|
|
68019
|
+
* This setting affects all symbol layers.
|
|
68020
|
+
* This setting does not affect the duration of runtime styling transitions or raster tile cross-fading.
|
|
68021
|
+
* @default 300
|
|
68022
|
+
*/
|
|
68023
|
+
_this.fadeDuration = 300;
|
|
68024
|
+
/**
|
|
68025
|
+
* Defines a CSS font-family for locally overriding generation of glyphs in the
|
|
68026
|
+
* 'CJK Unified Ideographs', 'Hiragana', 'Katakana' and 'Hangul Syllables' ranges.
|
|
68027
|
+
* In these ranges, font settings from the map's style will be ignored,
|
|
68028
|
+
* except for font-weight keywords (light/regular/medium/bold). Set to false,
|
|
68029
|
+
* to enable font settings from the map's style for these glyph ranges.
|
|
68030
|
+
* The purpose of this option is to avoid bandwidth-intensive glyph server requests.
|
|
68031
|
+
* @default 'sans-serif'
|
|
68032
|
+
*/
|
|
68033
|
+
_this.localIdeographFontFamily = 'sans-serif';
|
|
68020
68034
|
return _this;
|
|
68021
68035
|
}
|
|
68022
68036
|
/**
|
|
@@ -68280,6 +68294,22 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68280
68294
|
*/
|
|
68281
68295
|
StyleManager.prototype._stylePatch = function (previousStyle, nextStyle, preserveLayer, updatePaintProperty, updateLayoutProperty, updateFilter) {
|
|
68282
68296
|
var _this = this;
|
|
68297
|
+
// Layers in the next style with default properties that do not align with current StyleOptions
|
|
68298
|
+
// should be modified before they are applied to the map.
|
|
68299
|
+
var styleOptions = this.map.getStyle();
|
|
68300
|
+
var trafficOptions = this.map.getTraffic();
|
|
68301
|
+
// force a replacement of language placeholder in the tileset url to avoid resolution to a same cache with placeholders on language change
|
|
68302
|
+
nextStyle.sources = Object.entries(nextStyle.sources).reduce(function (newSources, _a) {
|
|
68303
|
+
var _b = __read(_a, 2), sourceKey = _b[0], source = _b[1];
|
|
68304
|
+
var newSource = __assign({}, source);
|
|
68305
|
+
if ('url' in newSource && typeof newSource.url === 'string') {
|
|
68306
|
+
if (newSource.url.includes(constants.languagePlaceHolder)) {
|
|
68307
|
+
newSource.url = newSource.url.replace(constants.languagePlaceHolder, styleOptions.language);
|
|
68308
|
+
}
|
|
68309
|
+
}
|
|
68310
|
+
newSources[sourceKey] = newSource;
|
|
68311
|
+
return newSources;
|
|
68312
|
+
}, {});
|
|
68283
68313
|
// A FundamentalMapLayer (grouped layer) representation of the next style must be built.
|
|
68284
68314
|
var previousLayers = this.map.layers.getLayers();
|
|
68285
68315
|
var nextLayers = [];
|
|
@@ -68290,10 +68320,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68290
68320
|
currentLayerGroupId = nextLayerGroup;
|
|
68291
68321
|
currentLayerGroupLayers = [];
|
|
68292
68322
|
};
|
|
68293
|
-
// Layers in the next style with default properties that do not align with current StyleOptions
|
|
68294
|
-
// should be modified before they are applied to the map.
|
|
68295
|
-
var styleOptions = this.map.getStyle();
|
|
68296
|
-
var trafficOptions = this.map.getTraffic();
|
|
68297
68323
|
nextStyle.layers.forEach(function (nextLayer) {
|
|
68298
68324
|
var _a, _b, _c;
|
|
68299
68325
|
var layerGroup = LayerGroupComparator.getLayerGroup(nextLayer.id);
|
|
@@ -68556,6 +68582,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
68556
68582
|
var mapboxMapOptions = {
|
|
68557
68583
|
attributionControl: false,
|
|
68558
68584
|
container: container,
|
|
68585
|
+
fadeDuration: _this.serviceOptions.fadeDuration,
|
|
68586
|
+
localIdeographFontFamily: _this.serviceOptions.localIdeographFontFamily,
|
|
68559
68587
|
preserveDrawingBuffer: _this.styleOptions.preserveDrawingBuffer,
|
|
68560
68588
|
refreshExpiredTiles: _this.serviceOptions.refreshExpiredTiles,
|
|
68561
68589
|
renderWorldCopies: _this.styleOptions.renderWorldCopies,
|