|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.gmaps.GmapsUtil
public class GmapsUtil
Utility class regrding Gmaps.
| Constructor Summary | |
|---|---|
GmapsUtil()
|
|
| Method Summary | |
|---|---|
static double[] |
getBounds(double lat,
double lng,
int width,
int height,
int zoomLevel)
Returns the bounds per the given center latitude, longitude, view port width, view port height, and zoomLevel. |
static int[] |
latlngToXy(double lat,
double lng,
int zoomLevel)
Convert the latitude and longitude to x, y pixels. |
static double[] |
xyToLatlng(int x,
int y,
int zoomLevel)
Convert the x, y pixels to latitude and longitude. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GmapsUtil()
| Method Detail |
|---|
public static int[] latlngToXy(double lat,
double lng,
int zoomLevel)
lat - the latitude in degreelng - the longitude in degreezoomLevel - the zoom level of the map
public static double[] xyToLatlng(int x,
int y,
int zoomLevel)
x - the x in pixelsy - the y in pixelszoomLevel - the zoom level of the map
public static double[] getBounds(double lat,
double lng,
int width,
int height,
int zoomLevel)
lat - the center latitudelng - the center longitudewidth - the view port widthheight - the view port heightzoomLevel - the zoom level
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||