Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panning to region which crosses the international date line #2351

Open
danhalliday opened this issue Oct 13, 2024 · 0 comments
Open

Panning to region which crosses the international date line #2351

danhalliday opened this issue Oct 13, 2024 · 0 comments

Comments

@danhalliday
Copy link

Is it possible to set the map to show a region whose bounds span the international date line?

I have a set of points whose bounding box spans the line, and I can’t seem to set the map’s camera to that box.

When I supply the TGCoordinateBounds(sw: sw, ne: ne), naturally the southwest coordinate has a positive longitude, and the northeast coordinate has a negative longitude. It looks as if the map’s viewport is set to the exact opposite side of the globe — in other words it’s trying to fix my coordinates because the west value is greater than the east value.

Any tips?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant