Fix typo, and call fromContainerPixelToLatLng() as you would expect. (#620)

This commit is contained in:
Stephen Farrar 2018-08-03 17:48:12 +10:00 committed by Michael Diego
parent e8bbbff34e
commit 55f134c60c

View File

@ -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() };
}