Skip to content

Commit b08f8c8

Browse files
committed
don't wrap coords for data source bounding tiles
1 parent 8bc21d5 commit b08f8c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sources/data_source.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,12 @@ export class NetworkTileSource extends NetworkSource {
417417

418418
let min = bounds.tiles.min[coords.z];
419419
if (!min) {
420-
min = bounds.tiles.min[coords.z] = Geo.wrapTile(Geo.tileForMeters(bounds.meters.min, coords.z));
420+
min = bounds.tiles.min[coords.z] = Geo.tileForMeters(bounds.meters.min, coords.z);
421421
}
422422

423423
let max = bounds.tiles.max[coords.z];
424424
if (!max) {
425-
max = bounds.tiles.max[coords.z] = Geo.wrapTile(Geo.tileForMeters(bounds.meters.max, coords.z));
425+
max = bounds.tiles.max[coords.z] = Geo.tileForMeters(bounds.meters.max, coords.z);
426426
}
427427

428428
// check latitude

0 commit comments

Comments
 (0)