|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.mapitz.gwt.googleMaps.client.GProjection
public abstract class GProjection
This is the interface for map projections. A map projection instance is passed to the constructor of GMapType. This interface is implemented by the class GMercatorProjection, which is used by all predefined map types. You can implement this interface if you want to define map types with different map projections.
| Method Summary | |
|---|---|
GPoint |
fromLatLngToPixel(GLatLng latlng,
int zoom)
fromLatLngToPixel(latlng, zoom) GPoint Returns the map coordinates in pixels for the point at the given geographical coordinates, and the given zoom level. |
GLatLng |
fromPixelToLatLng(GPoint pixel,
int zoom,
boolean unbounded)
fromPixelToLatLng(pixel, zoom, unbounded) none Returns the geographical coordinates for the point at the given map coordinates in pixels, and the given zoom level. |
GLatLng |
fromPixelToLatLng(GProjection self,
GPoint pixel,
int zoom)
fromPixelToLatLng(pixel, zoom, unbounded) none Returns the geographical coordinates for the point at the given map coordinates in pixels, and the given zoom level. |
void |
getWrapWidth(GProjection self,
int zoom)
getWrapWidth(zoom) none Returns to the map the periodicity in x-direction, i.e. |
void |
tileCheckRange(GProjection self,
GPoint tile,
int zoom,
int tilesize)
tileCheckRange(tile, zoom, tilesize) none Returns to the map if the tile index is in a valid range for the map type. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public GPoint fromLatLngToPixel(GLatLng latlng,
int zoom)
latlng - zoom -
public GLatLng fromPixelToLatLng(GPoint pixel,
int zoom,
boolean unbounded)
pixel - zoom - unbounded -
public GLatLng fromPixelToLatLng(GProjection self,
GPoint pixel,
int zoom)
self - pixel - zoom -
public void tileCheckRange(GProjection self,
GPoint tile,
int zoom,
int tilesize)
self - tile - zoom - tilesize -
public void getWrapWidth(GProjection self,
int zoom)
self - zoom -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||