com.google.gwt.maps.client.maptypes
Class Projection

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.maptypes.Projection

public class Projection
extends JavaScriptObject

Map Projection Util relating to screen

See Projection API Doc


Constructor Summary
protected Projection()
          use newInstance();
 
Method Summary
 Point fromLatLngToPoint(LatLng latlng, Point point)
          Translates from the LatLng cylinder to the Point plane.
 LatLng fromPointToLatLng(Point pixel, boolean nowrap)
          This interface specifies a function which implements translation from world coordinates on a map projection to LatLng values.
 
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

Projection

protected Projection()
use newInstance();

Method Detail

fromLatLngToPoint

public final Point fromLatLngToPoint(LatLng latlng,
                                     Point point)
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.

Parameters:
latlng - LatLng
point - Point

fromPointToLatLng

public final LatLng fromPointToLatLng(Point pixel,
                                      boolean nowrap)
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.

Parameters:
pixel - Point
nowrap -


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