Skip to content

bbox does not respect tile size #39

@samdelacruz

Description

@samdelacruz

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:

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 ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions