MapBounds

data class MapBounds(val south: Double, val west: Double, val north: Double, val east: Double)(source)

A latitude/longitude box, in degrees.

Neither renderer's box: MapLibre has spatialk's BoundingBox and the Google map has LatLngBounds, and each converts this at its own edge. Keeping the maths here is the point — it is the same maths, and it lived only in the MapLibre module, which the Google flavour cannot depend on, so the Google map hand-rolled LatLngBounds.builder() in three places instead.

Constructors

Link copied to clipboard
constructor(south: Double, west: Double, north: Double, east: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard