• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visgl / loaders.gl / 23748981362

30 Mar 2026 02:05PM UTC coverage: 35.2% (-0.05%) from 35.25%
23748981362

push

github

web-flow
feat(textures) Add composite texture loaders (#3328)

1208 of 2027 branches covered (59.6%)

Branch coverage included in aggregate %.

375 of 1137 new or added lines in 21 files covered. (32.98%)

13 existing lines in 4 files now uncovered.

38504 of 110792 relevant lines covered (34.75%)

0.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

44.44
/modules/textures/src/lib/texture-api/load-image-array.ts
1
// loaders.gl
1✔
2
// SPDX-License-Identifier: MIT
1✔
3
// Copyright (c) vis.gl contributors
1✔
4

1✔
5
import {
1✔
6
  loadCompositeImageUrlTree,
1✔
7
  normalizeCompositeImageOptions
1✔
8
} from '../composite-image/parse-composite-image';
1✔
9
import type {GetUrl, TextureLoaderOptions} from './texture-api-types';
1✔
10
import {getImageUrls} from './load-image';
1✔
11

1✔
12
/**
1✔
13
 * @deprecated Use `load(url, TextureArrayLoader)` for manifest-driven loading.
1✔
14
 */
1✔
15
export async function loadImageTextureArray(
×
16
  count: number,
×
17
  getUrl: GetUrl,
×
NEW
18
  options: TextureLoaderOptions = {}
×
19
): Promise<any> {
×
20
  const imageUrls = await getImageArrayUrls(count, getUrl, options);
×
NEW
21
  return await loadCompositeImageUrlTree(imageUrls, normalizeCompositeImageOptions(options));
×
22
}
×
23

1✔
NEW
24
export async function getImageArrayUrls(
×
NEW
25
  count: number,
×
NEW
26
  getUrl: GetUrl,
×
NEW
27
  options: TextureLoaderOptions = {}
×
NEW
28
): Promise<any> {
×
29
  const promises: Promise<any>[] = [];
×
30
  for (let index = 0; index < count; index++) {
×
31
    const promise = getImageUrls(getUrl, options, {index});
×
32
    promises.push(promise);
×
33
  }
×
34
  return await Promise.all(promises);
×
35
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc