GoogleMaps3D Framework Reference

LatLngBounds

struct LatLngBounds

Represents a rectangular region on the Earth’s surface defined by latitude and longitude ranges.

Bounds can restrict both longitude and latitude, or can restrict either latitude or longitude only. For latitude-only bounds use longitude range of (-180.0)...180. For longitude-only bounds use latitude range of -(90)...90`.

  • Declaration

    Swift

    init(latitude: ClosedRange<Double>, longitude: ClosedRange<Double>)
  • The range of allowable latitude values, inclusive.

    Declaration

    Swift

    let latitude: ClosedRange<Double>
  • The range of allowable longitude values, inclusive.

    Declaration

    Swift

    let longitude: ClosedRange<Double>