mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Fix typo, and call fromContainerPixelToLatLng() as you would expect. (#620)
This commit is contained in:
parent
e8bbbff34e
commit
55f134c60c
@ -74,7 +74,7 @@ export default class Geo {
|
||||
/** Returns the LatLng for the given offset from the map top-left. */
|
||||
fromContainerPixelToLatLng(ptXY) {
|
||||
if (this.mapCanvasProjection_) {
|
||||
const latLng = this.mapCanvasProjection_.fromDivPixelToLatLng(ptXY);
|
||||
const latLng = this.mapCanvasProjection_.fromContainerPixelToLatLng(ptXY);
|
||||
return { lat: latLng.lat(), lng: latLng.lng() };
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user