Skip to content

Commit

Permalink
don't wrap coords for data source bounding tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
bcamper committed Apr 11, 2019
1 parent 8bc21d5 commit b08f8c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sources/data_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,12 +417,12 @@ export class NetworkTileSource extends NetworkSource {

let min = bounds.tiles.min[coords.z];
if (!min) {
min = bounds.tiles.min[coords.z] = Geo.wrapTile(Geo.tileForMeters(bounds.meters.min, coords.z));
min = bounds.tiles.min[coords.z] = Geo.tileForMeters(bounds.meters.min, coords.z);
}

let max = bounds.tiles.max[coords.z];
if (!max) {
max = bounds.tiles.max[coords.z] = Geo.wrapTile(Geo.tileForMeters(bounds.meters.max, coords.z));
max = bounds.tiles.max[coords.z] = Geo.tileForMeters(bounds.meters.max, coords.z);
}

// check latitude
Expand Down

0 comments on commit b08f8c8

Please sign in to comment.