com.google.maps.gwt.client
Class MapCanvasProjection

java.lang.Object
  extended by JavaScriptObject
      extended by com.google.maps.gwt.client.MVCObject
          extended by com.google.maps.gwt.client.MapCanvasProjection

public class MapCanvasProjection
extends MVCObject

This object is made available to the OverlayView from within the draw method. It is not guaranteed to be initialized until draw is called. THIS SOURCE CODE IS GENERATED, DO NOT MODIFY


Constructor Summary
protected MapCanvasProjection()
          Protected constructor avoids default public constructor.
 
Method Summary
 LatLng fromContainerPixelToLatLng(Point pixel)
          Computes the geographical coordinates from pixel coordinates in the map's container.
 LatLng fromDivPixelToLatLng(Point pixel)
          Computes the geographical coordinates from pixel coordinates in the div that holds the draggable map.
 Point fromLatLngToContainerPixel(LatLng latLng)
          Computes the pixel coordinates of the given geographical location in the DOM element the map's outer container.
 Point fromLatLngToDivPixel(LatLng latLng)
          Computes the pixel coordinates of the given geographical location in the DOM element that holds the draggable map.
 double getWorldWidth()
          The width of the world in pixels in the current zoom level.
 
Methods inherited from class com.google.maps.gwt.client.MVCObject
bindTo, bindTo, bindTo, bindTo, changed, create, get, notify, set, setValues, setValues, unbind, unbindAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapCanvasProjection

protected MapCanvasProjection()
Protected constructor avoids default public constructor.

Method Detail

fromContainerPixelToLatLng

public final LatLng fromContainerPixelToLatLng(Point pixel)
Computes the geographical coordinates from pixel coordinates in the map's container.


fromDivPixelToLatLng

public final LatLng fromDivPixelToLatLng(Point pixel)
Computes the geographical coordinates from pixel coordinates in the div that holds the draggable map.


fromLatLngToContainerPixel

public final Point fromLatLngToContainerPixel(LatLng latLng)
Computes the pixel coordinates of the given geographical location in the DOM element the map's outer container.


fromLatLngToDivPixel

public final Point fromLatLngToDivPixel(LatLng latLng)
Computes the pixel coordinates of the given geographical location in the DOM element that holds the draggable map.


getWorldWidth

public final double getWorldWidth()
The width of the world in pixels in the current zoom level. For projections with a heading angle of either 90 or 270 degress, this corresponds to the pixel span in the Y-axis.