com.google.gwt.maps.client.overlays
Class MapCanvasProjection

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

public class MapCanvasProjection
extends JavaScriptObject

This object is made available to the OverlayView from within the draw method. It is not guaranteed to be initialized until draw is called.

See MapCanvasProjection API Doc


Constructor Summary
protected MapCanvasProjection()
          returns from another object only
 
Method Summary
 LatLng fromContainerPixelToLatLng(Point pixel)
          Computes the geographical coordinates from pixel coordinates in the map's container.
 LatLng fromContainerPixelToLatLng(Point pixel, boolean noWrap)
          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.
 LatLng fromDivPixelToLatLng(Point pixel, boolean noWrap)
          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.
static MapCanvasProjection newInstance()
          returns from another object only
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapCanvasProjection

protected MapCanvasProjection()
returns from another object only

Method Detail

newInstance

public static final MapCanvasProjection newInstance()
returns from another object only


fromContainerPixelToLatLng

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

Parameters:
pixel -

fromContainerPixelToLatLng

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

Parameters:
pixel -
noWrap -

fromDivPixelToLatLng

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

Parameters:
pixel -

fromDivPixelToLatLng

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

Parameters:
pixel -
noWrap -

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.

Parameters:
latlng -

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.

Parameters:
latlng -

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 degrees, this corresponds to the pixel span in the Y-axis.



Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.