Open samdelacruz opened 4 years ago
Despite initialising SphericalMercator with a different tile size, .bbox returns identical latitude and longitude coordinates for the same inputs, which suggests that tile size is not being taken into account.
.bbox
Example:
const SM = require("@mapbox/sphericalmercator") const sm1 = new SM({ size: 256 }); sm1.bbox(8298, 5450, 14); // [ 2.3291015625, 51.467696956223364, 2.35107421875, 51.481382896100975 ] const sm2 = new SM({ size: 512 }); sm2.bbox(8298, 5450, 14); // [ 2.3291015625, 51.467696956223364, 2.35107421875, 51.481382896100975 ]
Unless I'm mistaken, what I think this means is that for sizes other than 256, the returned bounding box will be incorrect.
256
Despite initialising SphericalMercator with a different tile size,
.bbox
returns identical latitude and longitude coordinates for the same inputs, which suggests that tile size is not being taken into account.Example: