LocationBounds

data class LocationBounds(val southWestLat: Double, val southWestLng: Double, val northEastLat: Double, val northEastLng: Double)

A map bounding box, corner to corner.

Constructors

Link copied to clipboard
constructor(southWestLat: Double, southWestLng: Double, northEastLat: Double, northEastLng: Double)

Properties

Link copied to clipboard

Latitude of the north-east corner.

Link copied to clipboard

Longitude of the north-east corner.

Link copied to clipboard

Latitude of the south-west corner.

Link copied to clipboard

Longitude of the south-west corner.

Functions

Link copied to clipboard

Whether this box fully encloses other - the "can I skip the fetch" question.

Link copied to clipboard

Grows the box by factor of its own span in each direction, so a client can fetch beyond what is visible and serve a small pan without another request.