Packagecom.distriqt.extension.nativemaps
Interfacepublic interface Projection

This interface defines the projection related utilities for the current map allowing you to convert screen and geographic coordinates.



Public Properties
 PropertyDefined By
  isSupported : Boolean
[read-only] Returns true if the functionality in this class is supported on the current mapping service and platform
Projection
Public Methods
 MethodDefined By
  
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
Property Detail
isSupportedproperty
isSupported:Boolean  [read-only]

Returns true if the functionality in this class is supported on the current mapping service and platform


Implementation
    public function get isSupported():Boolean
Method Detail
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.

Returns
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.

Returns
Point — A Point representing the screen location in screen pixels.