GoogleMaps 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 \u003ccode\u003ex\u003c/code\u003e and \u003ccode\u003ey\u003c/code\u003e properties of a \u003ccode\u003eGMSMapPoint\u003c/code\u003e range from -1 to 1, with (0, 0) at the map's center and y increasing Northward, x increasing Eastward.\u003c/p\u003e\n"],["\u003cp\u003eYou can convert between latitude/longitude and \u003ccode\u003eGMSMapPoint\u003c/code\u003e using the \u003ccode\u003eGMSProject()\u003c/code\u003e and \u003ccode\u003eGMSUnproject()\u003c/code\u003e functions.\u003c/p\u003e\n"]]],["`GMSMapPoint` represents a point on a map, potentially a projected coordinate. The x-coordinate ranges from -1 to 1, increasing eastward, and the y-coordinate increases northward. The map's center is at (0, 0). It features two properties: `x` and `y`, both `Double` values, defining the point's position. Use the `GMSProject()` and `GMSUnproject()` functions when using `GMSMapPoint`.\n"],null,["# GoogleMaps Framework Reference\n\nGMSMapPoint\n===========\n\n struct ../../Structs/GMSMapPoint.html {}\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"]]