Packagecom.esri.aws.awx.map.projection
Interfacepublic interface IProjectionModel
SubinterfacesIMap

IProjectionModel defines the map's basic properties and conversion methods.



Public Properties
 PropertyDefined by
  center : GeoPoint
The geographic center of the map.
IProjectionModel
  extent : Extent
The bounding box (minX, minY, maxX, maxY) of the current map.
IProjectionModel
  mapRotation : Number
The rotation of the map.
IProjectionModel
  projectionID : int
The current projectionID of the map.
IProjectionModel
  scale : Number
The current scale of the map.
IProjectionModel
Public Methods
 MethodDefined by
  
Converts decimal degree values to pixel.
IProjectionModel
  
Converts pixel values to decimal degrees.
IProjectionModel
  
If the current projection is 'Automatic', returns the projectionID for which automatic projection is currently selected.
IProjectionModel
Property detail
centerproperty
center:GeoPoint  [read-write]

The geographic center of the map.

Implementation
    public function get center():GeoPoint
    public function set center(value:GeoPoint):void
extentproperty 
extent:Extent  [read-write]

The bounding box (minX, minY, maxX, maxY) of the current map.

Implementation
    public function get extent():Extent
    public function set extent(value:Extent):void
mapRotationproperty 
mapRotation:Number  [read-write]

The rotation of the map.

Implementation
    public function get mapRotation():Number
    public function set mapRotation(value:Number):void
projectionIDproperty 
projectionID:int  [read-write]

The current projectionID of the map.

Implementation
    public function get projectionID():int
    public function set projectionID(value:int):void
scaleproperty 
scale:Number  [read-write]

The current scale of the map.

Implementation
    public function get scale():Number
    public function set scale(value:Number):void
Method detail
convertGeoPointToPoint()method
public function convertGeoPointToPoint(geoPoint:GeoPoint):Point

Converts decimal degree values to pixel.

Parameters
geoPoint:GeoPoint — the lat/lon values to convert.

Returns
Point — pixel values of provided lat/lon.
convertPointToGeoPoint()method 
public function convertPointToGeoPoint(point:Point):GeoPoint

Converts pixel values to decimal degrees.

Parameters
point:Point — the pixel point to convert.

Returns
GeoPoint — lat/lon values of provided pixel point.
resolveAutomaticProjection()method 
public function resolveAutomaticProjection():Number

If the current projection is 'Automatic', returns the projectionID for which automatic projection is currently selected.

Returns
Number — The projectionID (non 0).