|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.maryanovsky.map.client.mapa.Mapa.IcsProjection
public static class Mapa.IcsProjection
The Israel Cassini-Soldner projection. Formulas taken from http://www.epsg.org/guides/docs/G7-2.pdf. Some code taken from http://home.hiwaay.net/~taylorc/toolbox/geography/geoutm.html.
Constructor Summary | |
---|---|
Mapa.IcsProjection()
|
Method Summary | |
---|---|
Point |
fromLatLngToPixel(LatLng latLng,
int zoom)
Returns the pixel coordinates corresponding to the specified latitude-longitude coordinates at the specified zoom. |
LatLng |
fromPixelToLatLng(PointView pixel,
int zoom)
Returns the latitude-longitude coordinates corresponding to the specified pixel coordinates at the specified zoom. |
SizeView |
getWrapSize(int zoom)
Returns the number of pixels after which the map wraps around the earth on each axis at the specified zoom. |
double |
getZoomMagnification(int startZoom,
int endZoom)
Returns the magnification coefficient between the two specified zooms, i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mapa.IcsProjection()
Method Detail |
---|
public Point fromLatLngToPixel(LatLng latLng, int zoom)
fromLatLngToPixel
in interface Projection
public LatLng fromPixelToLatLng(PointView pixel, int zoom)
fromPixelToLatLng
in interface Projection
public double getZoomMagnification(int startZoom, int endZoom)
startZoom
to endZoom
. This would normally be a
value larger than 1 if endZoom
is larger than
startZoom
and vice versa.
getZoomMagnification
in interface Projection
public SizeView getWrapSize(int zoom)
getWrapSize
in interface Projection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |