| Package | com.afcomponents.umap.control.projection |
| Class | public class Projection |
| Subclasses | BirdsEyeProjection, GCSProjection, LinearProjection, MercatorProjection |
| Property | Defined by | ||
|---|---|---|---|
| bounds : LatLngBounds
| Projection | ||
| repeatMap : Boolean | Projection | ||
| scale : Number | Projection | ||
| size : Size
| Projection | ||
| tileSize : uint | Projection | ||
| transform : ProjectionTransform
| Projection | ||
| Property | Defined by | ||
|---|---|---|---|
| _tileSize : uint
Stores the tile size in pixels.
| Projection | ||
| _transform : ProjectionTransform
Defines the projection tranformation.
| Projection | ||
| Method | Defined 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 | ||
|
| 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
project(point:Point):Point
| Projection | ||
|
unproject(point:Point):Point
| Projection | ||
| Constant | Defined 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 | ||
| bounds | property |
bounds:LatLngBounds [read-write]Implementation
public function get bounds():LatLngBounds
public function set bounds(value:LatLngBounds):void
| repeatMap | property |
repeatMap:Boolean [read-write]Implementation
public function get repeatMap():Boolean
public function set repeatMap(value:Boolean):void
| scale | property |
scale:Number [read-write]Implementation
public function get scale():Number
public function set scale(value:Number):void
| size | property |
size:Size [read-write]Implementation
public function get size():Size
public function set size(value:Size):void
| _tileSize | property |
protected var _tileSize:uintStores the tile size in pixels.
The default value is DEFAULT_TILE_SIZE.
| tileSize | property |
tileSize:uint [read-write]Implementation
public function get tileSize():uint
public function set tileSize(value:uint):void
| _transform | property |
protected var _transform:ProjectionTransformDefines the projection tranformation.
| transform | property |
transform:ProjectionTransform [read-write]Implementation
public function get transform():ProjectionTransform
public function set transform(value:ProjectionTransform):void
| 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:
| Property | Type | Default | Description |
|---|---|---|---|
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
|
| checkBitmapRange | () | method |
public function checkBitmapRange(point:Point, zoom:Number):PointParameters
point:Point |
|
zoom:Number |
Point |
| checkBitmapRangeX | () | method |
public function checkBitmapRangeX(point:Point, zoom:Number):PointParameters
point:Point |
|
zoom:Number |
Point |
| checkBitmapRangeY | () | method |
public function checkBitmapRangeY(point:Point, zoom:Number):PointParameters
point:Point |
|
zoom:Number |
Point |
| checkLatLngRange | () | method |
| checkTileRange | () | method |
public function checkTileRange(tile:Point, zoom:Number):PointParameters
tile:Point |
|
zoom:Number |
Point |
| dispose | () | method |
public function dispose():void
| getBitmapCoordinate | () | method |
public function getBitmapCoordinate(point:Point, zoom:Number):PointParameters
point:Point |
|
zoom:Number |
Point |
| getDistance | () | method |
public function getDistance(pointA:LatLng, pointB:LatLng):NumberParameters
pointA:LatLng |
|
pointB:LatLng |
Number |
| getLatLngFromXY | () | method |
public function getLatLngFromXY(point:Point, zoom:Number):LatLngParameters
point:Point |
|
zoom:Number |
LatLng |
| getPlanePoint | () | method |
public function getPlanePoint(point:Point, zoom:Number):PointParameters
point:Point |
|
zoom:Number |
Point |
| getSize | () | method |
public function getSize(zoom:Number):NumberParameters
zoom:Number |
Number |
| getTileCount | () | method |
public function getTileCount(zoom:Number):uintParameters
zoom:Number |
uint |
| getXYFromLatLng | () | method |
public function getXYFromLatLng(latlng:LatLng, zoom:Number):PointParameters
latlng:LatLng |
|
zoom:Number |
Point |
| project | () | method |
protected function project(point:Point):PointParameters
point:Point |
Point |
| projectPoint | () | method |
| scaleSize | () | method |
public static function scaleSize(size:uint, scale:int):uintScales the specified size to a zoom level.
Parameterssize:uint |
|
scale:int |
uint |
| unproject | () | method |
protected function unproject(point:Point):PointParameters
point:Point |
Point |
| unprojectPoint | () | method |
| DEFAULT_MAP_BOUNDS | constant |
public static const DEFAULT_MAP_BOUNDS:LatLngBoundsDefines the default map bounds.
| DEFAULT_MAP_SCALE | constant |
public static const DEFAULT_MAP_SCALE:SizeDefines the default map image size.
| DEFAULT_MAP_SIZE | constant |
public static const DEFAULT_MAP_SIZE:SizeDefines the default map image size.
| DEFAULT_TILE_SIZE | constant |
public static const DEFAULT_TILE_SIZE:uint = 256Defines the default tile size.