public class MapCanvasProjection extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
MapCanvasProjection()
returns from another object only
|
Modifier and Type | Method and Description |
---|---|
LatLng |
fromContainerPixelToLatLng(Point pixel)
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.
|
Point |
fromLatLngToContainerPixel(LatLng latlng)
Computes the pixel coordinates of the given geographical location in the DOM element the map's outer container.
|
void |
fromLatLngToDivPixel(LatLng latlng)
Computes the pixel coordinates of the given geographical location in the DOM element that holds the draggable map.
|
int |
getWorldWidth()
The width of the world in pixels in the current zoom level.
|
static MapCanvasProjection |
newInstance()
returns from another object only
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
protected MapCanvasProjection()
public static final MapCanvasProjection newInstance()
public final LatLng fromContainerPixelToLatLng(Point pixel)
pixel
- public final LatLng fromDivPixelToLatLng(Point pixel)
pixel
- public final Point fromLatLngToContainerPixel(LatLng latlng)
latlng
- public final void fromLatLngToDivPixel(LatLng latlng)
latlng
- public final int getWorldWidth()
Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.