GoogleMaps Framework Reference

  • GMSMapPoint represents a point on the map, potentially a projected coordinate.

  • The x and y properties of a GMSMapPoint range from -1 to 1, with (0, 0) at the map's center and y increasing Northward, x increasing Eastward.

  • You can convert between latitude/longitude and GMSMapPoint using the GMSProject() and GMSUnproject() functions.

GMSMapPoint

struct GMSMapPoint {}

A point on the map. May represent a projected coordinate.

x is in [-1, 1]. The axis direction is normal: y grows towards North, x grows towards East. (0, 0) is the center of the map.

See GMSProject() and GMSUnproject().

  • x

    Declaration

    Swift

    var x: Double

    Objective-C

    double x
  • y

    Declaration

    Swift

    var y: Double

    Objective-C

    double y