You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function convertPointToLatLng(x, y) {
// Function to convert screen coordinates to LatLng
if (map.getProjection()) {
const point = new maps.Point(x, y);
const latLng = map.getProjection().fromContainerPixelToLatLng(point);
return latLng;
}
}
Got an error like map.getProjection(...).fromContainerPixelToLatLng is not a function
The text was updated successfully, but these errors were encountered:
I can't convert point to latlng.
Here is my code.
Got an error like
map.getProjection(...).fromContainerPixelToLatLng is not a function
The text was updated successfully, but these errors were encountered: