Convert (x, y) pixel coordinates in google.maps.Point
问题 I am trying to find out the LatLng based on my x,y pixel coordinates (and of course map options, such as zoom and center). In order to do so, I posted another question and someone came up with this solution, from this post: /** * @param {google.maps.Map} map * @param {google.maps.Point} point * @param {int} z * @return {google.maps.LatLng} */ var pointToLatlng = function(map, point, z){ var scale = Math.pow(2, z); var normalizedPoint = new google.maps.Point(point.x / scale, point.y / scale);