Packagecom.afcomponents.umap.control.projection
Classpublic class Projection
SubclassesBirdsEyeProjection, GCSProjection, LinearProjection, MercatorProjection



Public Properties
 PropertyDefined by
  bounds : LatLngBounds
Projection
  repeatMap : Boolean
Projection
  scale : Number
Projection
  size : Size
Projection
  tileSize : uint
Projection
  transform : ProjectionTransform
Projection
Protected Properties
 PropertyDefined by
  _tileSize : uint
Stores the tile size in pixels.
Projection
  _transform : ProjectionTransform
Defines the projection tranformation.
Projection
Public Methods
 MethodDefined by
  
Projection(param:Object = null)
Abstract projection class constructor.
Projection
  
checkBitmapRange(point:Point, zoom:Number):Point
Projection
  
checkBitmapRangeX(point:Point, zoom:Number):Point
Projection
  
checkBitmapRangeY(point:Point, zoom:Number):Point
Projection
  
Projection
  
checkTileRange(tile:Point, zoom:Number):Point
Projection
  
dispose():void
Projection
  
getBitmapCoordinate(point:Point, zoom:Number):Point
Projection
  
getDistance(pointA:LatLng, pointB:LatLng):Number
Projection
  
getLatLngFromXY(point:Point, zoom:Number):LatLng
Projection
  
getPlanePoint(point:Point, zoom:Number):Point
Projection
  
getSize(zoom:Number):Number
Projection
  
getTileCount(zoom:Number):uint
Projection
  
getXYFromLatLng(latlng:LatLng, zoom:Number):Point
Projection
  
projectPoint(latlng:LatLng):Point
Projection
  
scaleSize(size:uint, scale:int):uint
[static] Scales the specified size to a zoom level.
Projection
  
unprojectPoint(point:Point):LatLng
Projection
Protected Methods
 MethodDefined by
  
project(point:Point):Point
Projection
  
unproject(point:Point):Point
Projection
Public Constants
 ConstantDefined by
  DEFAULT_MAP_BOUNDS : LatLngBounds
[static] Defines the default map bounds.
Projection
  DEFAULT_MAP_SCALE : Size
[static] Defines the default map image size.
Projection
  DEFAULT_MAP_SIZE : Size
[static] Defines the default map image size.
Projection
  DEFAULT_TILE_SIZE : uint = 256
[static] Defines the default tile size.
Projection
Property detail
boundsproperty
bounds:LatLngBounds  [read-write]

Implementation
    public function get bounds():LatLngBounds
    public function set bounds(value:LatLngBounds):void
repeatMapproperty 
repeatMap:Boolean  [read-write]

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

Implementation
    public function get scale():Number
    public function set scale(value:Number):void
sizeproperty 
size:Size  [read-write]

Implementation
    public function get size():Size
    public function set size(value:Size):void
_tileSizeproperty 
protected var _tileSize:uint

Stores the tile size in pixels.

The default value is DEFAULT_TILE_SIZE.

tileSizeproperty 
tileSize:uint  [read-write]

Implementation
    public function get tileSize():uint
    public function set tileSize(value:uint):void
_transformproperty 
protected var _transform:ProjectionTransform

Defines the projection tranformation.

transformproperty 
transform:ProjectionTransform  [read-write]

Implementation
    public function get transform():ProjectionTransform
    public function set transform(value:ProjectionTransform):void
Constructor detail
Projection()constructor
public function Projection(param:Object = null)

Abstract projection class constructor.

Creates new IProjection object with the default parameters. Properties defined in param object will override the default values.

Here is a list of properties you can specify in the param object:

Parameters
PropertyTypeDefaultDescription
tileSize uint 256 Specifies tile size in pixels.
repeatmap Boolean true Defines whether to repeat map horizontally.
transform ProjectionTransform null Specifies transformation object to use.
size Size Size(256,256) Specifies map image size. The scale of image is defined in the scale parameter. If you specify this parameter in the param object, map bounds will be recalculated.
bounds LatLngBounds LatLngBounds(LatLng(-90,-180), LatLng(90,180)) Specifies map bounds in geogrpahical coordinates.
param:Object (default = null) — Object that specifies properties of the Projection you need to override upon it's creation
Method detail
checkBitmapRange()method
public function checkBitmapRange(point:Point, zoom:Number):Point

Parameters
point:Point
 
zoom:Number

Returns
Point
checkBitmapRangeX()method 
public function checkBitmapRangeX(point:Point, zoom:Number):Point

Parameters
point:Point
 
zoom:Number

Returns
Point
checkBitmapRangeY()method 
public function checkBitmapRangeY(point:Point, zoom:Number):Point

Parameters
point:Point
 
zoom:Number

Returns
Point
checkLatLngRange()method 
public function checkLatLngRange(latlng:LatLng):LatLng

Parameters
latlng:LatLng

Returns
LatLng
checkTileRange()method 
public function checkTileRange(tile:Point, zoom:Number):Point

Parameters
tile:Point
 
zoom:Number

Returns
Point
dispose()method 
public function dispose():void

getBitmapCoordinate()method 
public function getBitmapCoordinate(point:Point, zoom:Number):Point

Parameters
point:Point
 
zoom:Number

Returns
Point
getDistance()method 
public function getDistance(pointA:LatLng, pointB:LatLng):Number

Parameters
pointA:LatLng
 
pointB:LatLng

Returns
Number
getLatLngFromXY()method 
public function getLatLngFromXY(point:Point, zoom:Number):LatLng

Parameters
point:Point
 
zoom:Number

Returns
LatLng
getPlanePoint()method 
public function getPlanePoint(point:Point, zoom:Number):Point

Parameters
point:Point
 
zoom:Number

Returns
Point
getSize()method 
public function getSize(zoom:Number):Number

Parameters
zoom:Number

Returns
Number
getTileCount()method 
public function getTileCount(zoom:Number):uint

Parameters
zoom:Number

Returns
uint
getXYFromLatLng()method 
public function getXYFromLatLng(latlng:LatLng, zoom:Number):Point

Parameters
latlng:LatLng
 
zoom:Number

Returns
Point
project()method 
protected function project(point:Point):Point

Parameters
point:Point

Returns
Point
projectPoint()method 
public function projectPoint(latlng:LatLng):Point

Parameters
latlng:LatLng

Returns
Point
scaleSize()method 
public static function scaleSize(size:uint, scale:int):uint

Scales the specified size to a zoom level.

Parameters
size:uint
 
scale:int

Returns
uint
unproject()method 
protected function unproject(point:Point):Point

Parameters
point:Point

Returns
Point
unprojectPoint()method 
public function unprojectPoint(point:Point):LatLng

Parameters
point:Point

Returns
LatLng
Constant detail
DEFAULT_MAP_BOUNDSconstant
public static const DEFAULT_MAP_BOUNDS:LatLngBounds

Defines the default map bounds.

DEFAULT_MAP_SCALEconstant 
public static const DEFAULT_MAP_SCALE:Size

Defines the default map image size.

DEFAULT_MAP_SIZEconstant 
public static const DEFAULT_MAP_SIZE:Size

Defines the default map image size.

DEFAULT_TILE_SIZEconstant 
public static const DEFAULT_TILE_SIZE:uint = 256

Defines the default tile size.