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

visgl / loaders.gl / 25603943277

09 May 2026 02:49PM UTC coverage: 60.005%. Remained the same
25603943277

push

github

web-flow
chore: Add Node 26 to CI (#3420)

12967 of 23938 branches covered (54.17%)

Branch coverage included in aggregate %.

26843 of 42406 relevant lines covered (63.3%)

14662.34 hits per line

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

100.0
/modules/deck-layers/src/image-source-layer/utils.ts
1
// loaders.gl
2
// SPDX-License-Identifier: MIT
3
// Copyright (c) vis.gl contributors
4

5
import {lngLatToWorld} from '@math.gl/web-mercator';
6

7
const HALF_EARTH_CIRCUMFERENCE = 6378137 * Math.PI;
6✔
8

9
/** Projects EPSG:4326 coordinates to EPSG:3857 meters. */
10
export function projectWGS84ToPseudoMercator(coord: [number, number]): [number, number] {
11
  const mercator = lngLatToWorld(coord);
2✔
12
  mercator[0] = (mercator[0] / 256 - 1) * HALF_EARTH_CIRCUMFERENCE;
2✔
13
  mercator[1] = (mercator[1] / 256 - 1) * HALF_EARTH_CIRCUMFERENCE;
2✔
14
  return mercator;
2✔
15
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc