@maptiler/client 2.6.0-rc.3 → 2.6.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.
@@ -60,4 +60,4 @@ jobs:
60
60
  r2-secret-access-key: ${{ secrets.CDN_MAPTILER_SECRET_ACCESS_KEY }}
61
61
  r2-bucket: cdn-storage
62
62
  source-dir: dist
63
- destination-dir: /client-js/v${{ env.PACKAGE_VERSION }}/
63
+ destination-dir: client-js/v${{ env.PACKAGE_VERSION }}/
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MapTiler Client Changelog
2
2
 
3
- ## NEXT (2.6.0)
3
+ ## 2.6.0
4
4
  ### New Features
5
5
  - Bumps 'Streets' & 'Landscape' styles (and their variants) to new v4 styles.
6
6
  - Adds the new 'Base' style and its variants.
@@ -1381,8 +1381,7 @@ class MapStyleVariant {
1381
1381
  return expandMapStyle(this.getId());
1382
1382
  }
1383
1383
  warnIfDeprecated(variant = this) {
1384
- if (!variant.deprecated)
1385
- return variant;
1384
+ if (!variant.deprecated) return variant;
1386
1385
  if (variant.deprecationMessage) {
1387
1386
  console.warn(variant.deprecationMessage);
1388
1387
  } else {
@@ -2943,8 +2942,7 @@ async function at(position, options = {}) {
2943
2942
  return elevatedPositions[0];
2944
2943
  }
2945
2944
  async function batch(positions, options = {}) {
2946
- if (positions.length === 0)
2947
- return [];
2945
+ if (positions.length === 0) return [];
2948
2946
  const apiKey = options.apiKey ?? config.apiKey;
2949
2947
  const elevatedPositions = options.computeOn === "client" ? await computeOnClient(positions, apiKey, options.zoom) : await computeOnServer(positions, apiKey);
2950
2948
  if (options.smoothingKernelSize) {