Skip to content

Panning to region which crosses the international date line #2351

Open
@danhalliday

Description

@danhalliday

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?

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