Package | com.distriqt.extension.nativemaps |
Interface | public interface Projection |
Property | Defined By | ||
---|---|---|---|
isSupported : Boolean [read-only]
Returns true if the functionality in this class is supported on the current mapping service and platform
| Projection |
Method | Defined By | ||
---|---|---|---|
fromScreenLocation(point:Point):LatLng
Returns the geographic location that corresponds to a screen location. | Projection | ||
toScreenLocation(location:LatLng):Point
Returns a screen location that corresponds to a geographical coordinate (LatLng). | Projection |
isSupported | property |
isSupported:Boolean
[read-only]
Returns true
if the functionality in this class is supported on the current mapping service and platform
public function get isSupported():Boolean
fromScreenLocation | () | method |
public function fromScreenLocation(point:Point):LatLng
Returns the geographic location that corresponds to a screen location. The screen location is specified in pixels relative to the top left of the map.
Parameters
point:Point — A Point on the screen in screen pixels.
|
LatLng — The LatLng corresponding to the point on the screen, or null
if the ray through the given screen point does not intersect the ground plane
(this might be the case if the map is heavily tilted).
|
toScreenLocation | () | method |
public function toScreenLocation(location:LatLng):Point
Returns a screen location that corresponds to a geographical coordinate (LatLng
).
The screen location is in pixels relative to the top left of the map.
Parameters
location:LatLng — A LatLng on the map to convert to a screen location.
|
Point — A Point representing the screen location in screen pixels.
|