google-maps-documentation

Projection interface

google.maps.Projection interface

Methods
fromLatLngToPoint
fromLatLngToPoint(latLng[, point])
Parameters: 
Return Value:  Point optional
Translates from the LatLng cylinder to the Point plane. This interface specifies a function which implements translation from given LatLng values to world coordinates on the map projection. The Maps API calls this method when it needs to plot locations on screen. Projection objects must implement this method, but may return null if the projection cannot calculate the Point.
fromPointToLatLng
fromPointToLatLng(pixel[, noWrap])
Parameters: 
  • pixelPoint
  • noWrapboolean optional
Return Value:  LatLng optional
This interface specifies a function which implements translation from world coordinates on a map projection to LatLng values. The Maps API calls this method when it needs to translate actions on screen to positions on the map. Projection objects must implement this method, but may return null if the projection cannot calculate the LatLng.