@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.
- package/.github/workflows/npm-publish.yml +1 -1
- package/CHANGELOG.md +1 -1
- package/dist/maptiler-client.cjs +2 -4
- package/dist/maptiler-client.cjs.map +1 -1
- package/dist/maptiler-client.min.mjs +1 -1
- package/dist/maptiler-client.mjs +2 -4
- package/dist/maptiler-client.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/maptiler-client.cjs
CHANGED
|
@@ -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) {
|