Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove check map bbox, add bbox validation (#662)
As far as I can read, the code requires the new bound either to totally fit into the current bound or totally outside of the current bound. This blocks me from setting up the initial view as [-180, -90, 180, 90] for this issue: #656 (It looks like Mapbox's default viewport for equirectangular projection is somewhere [-190, -59, 190, 59]... pretty sure it changes depending on the screen size.) I don't have much background context but I wonder if we really need to check the current bound? (If not, we can just merge this change to `main` instead of `ghg` - and I will remove the function.) This PR skips this check and just validate the bbox against Mapbox's requirement.
- Loading branch information