Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 1.58 KB

File metadata and controls

34 lines (19 loc) · 1.58 KB

See html formatted version

Projection interface

google.maps.Projection interface

Methods

undefined

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.

undefined

fromPointToLatLng(pixel[, noWrap])

Parameters: 

  • pixel:  Point
  • noWrap:  boolean 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.