GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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()
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSMapPoint\u003c/code\u003e represents a point on the map, potentially a projected coordinate.\u003c/p\u003e\n"],["\u003cp\u003eThe point's \u003ccode\u003ex\u003c/code\u003e and \u003ccode\u003ey\u003c/code\u003e values range from -1 to 1, with (0, 0) at the map's center and y growing North, x growing East.\u003c/p\u003e\n"],["\u003cp\u003eYou can convert between geographical coordinates and \u003ccode\u003eGMSMapPoint\u003c/code\u003e using \u003ccode\u003eGMSProject()\u003c/code\u003e and \u003ccode\u003eGMSUnproject()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSMapPoint\u003c/code\u003e has two properties: \u003ccode\u003ex\u003c/code\u003e and \u003ccode\u003ey\u003c/code\u003e, representing the point's horizontal and vertical position respectively, both of type Double.\u003c/p\u003e\n"]]],["`GMSMapPoint` defines a point on a map using a struct. It represents projected coordinates where `x` and `y` are both double values within the range of \\[-1, 1]. The axis direction is such that `y` increases towards North, and `x` increases towards East, with (0, 0) being the map's center. The `GMSProject()` and `GMSUnproject()` functions are related to this. `x` and `y` are the variables that hold the coordinate.\n"],null,["# GoogleNavigation Framework Reference\n\nGMSMapPoint\n===========\n\n struct GMSMapPoint {}\n\nA point on the map. May represent a projected coordinate.\n\nx is in \\[-1, 1\\]. The axis direction is normal: y grows towards North, x grows towards East. (0,\n0) is the center of the map.\n\nSee `GMSProject()` and `GMSUnproject()`.\n- `\n ``\n ``\n `\n\n ### [x](#/c:@S@GMSMapPoint@FI@x)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n var x: Double\n\n Objective-C \n\n double x\n\n- `\n ``\n ``\n `\n\n ### [y](#/c:@S@GMSMapPoint@FI@y)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n var y: Double\n\n Objective-C \n\n double y"]]