| Package | com.afcomponents.umap.interfaces |
| Interface | public interface IProjection |
| Implementors | BirdsEyeProjection, GCSProjection, LinearProjection, MercatorProjection |
Such clas should be able to perform the following:
| Property | Defined by | ||
|---|---|---|---|
| bounds : LatLngBounds
Gets or sets the map bounds in geographical coordinates.
| IProjection | ||
| repeatMap : Boolean
Get or sets whether projection should repeat tiles horizontally or not.
| IProjection | ||
| scale : Number
Gets or sets the scale of the map size.
| IProjection | ||
| size : Size
Gets or sets the size of map image in pixels.
| IProjection | ||
| tileSize : uint
Gets or sets the tile size.
| IProjection | ||
| transform : ProjectionTransform
Gets or sets the tranformation object that should be used.
| IProjection | ||
| Method | Defined by | ||
|---|---|---|---|
|
checkBitmapRange(point:Point, zoom:Number):Point
| IProjection | ||
|
checkBitmapRangeX(point:Point, zoom:Number):Point
| IProjection | ||
|
checkBitmapRangeY(point:Point, zoom:Number):Point
| IProjection | ||
|
| IProjection | ||
|
checkTileRange(tile:Point, zoom:Number):Point
| IProjection | ||
|
dispose():void
Releases all the resources accuired by the object.
| IProjection | ||
|
getBitmapCoordinate(point:Point, zoom:Number):Point
Returns bitmap coordinate from a projected point.
| IProjection | ||
|
| IProjection | ||
|
getLatLngFromXY(point:Point, zoom:Number):LatLng
| IProjection | ||
|
getPlanePoint(point:Point, zoom:Number):Point
Returns projected point from a bitmap point.
| IProjection | ||
|
getSize(zoom:Number):Number
| IProjection | ||
|
getTileCount(zoom:Number):uint
| IProjection | ||
|
getXYFromLatLng(latlng:LatLng, zoom:Number):Point
| IProjection | ||
|
projectPoint(latlng:LatLng):Point
Projects a point on a sphere to a projection plane.
| IProjection | ||
|
unprojectPoint(point:Point):LatLng
Unprojects a point on a projection plane to a sphere.
| IProjection | ||
| bounds | property |
bounds:LatLngBounds [read-write]Gets or sets the map bounds in geographical coordinates.
The default value is Projection.DEFAULT_MAP_BOUNDS.
public function get bounds():LatLngBounds
public function set bounds(value:LatLngBounds):void
| repeatMap | property |
repeatMap:Boolean [read-write]Get or sets whether projection should repeat tiles horizontally or not.
Implementation public function get repeatMap():Boolean
public function set repeatMap(value:Boolean):void
| scale | property |
scale:Number [read-write]Gets or sets the scale of the map size.
The default value is Projection.DEFAULT_MAP_SCALE.
public function get scale():Number
public function set scale(value:Number):void
| size | property |
size:Size [read-write]Gets or sets the size of map image in pixels.
The default value is Projection.DEFAULT_MAP_BOUNDS.
public function get size():Size
public function set size(value:Size):void
| tileSize | property |
tileSize:uint [read-write]Gets or sets the tile size.
The default value is Projection.DEFAULT_TILE_SIZE.
public function get tileSize():uint
public function set tileSize(value:uint):void
| transform | property |
transform:ProjectionTransform [read-write]Gets or sets the tranformation object that should be used.
The default value is No transformation is defined..
public function get transform():ProjectionTransform
public function set transform(value:ProjectionTransform):void
| 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():voidReleases all the resources accuired by the object.
| getBitmapCoordinate | () | method |
public function getBitmapCoordinate(point:Point, zoom:Number):PointReturns bitmap coordinate from a projected point.
Parameterspoint:Point — Point on a projection plane (as Point in radians).
|
|
zoom:Number — Zoom level at which to perform the conversion.
|
Point — A point on a map bitmap.
|
| 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):PointReturns projected point from a bitmap point.
Parameterspoint:Point — Point on a map bitmap.
|
|
zoom:Number — Zoom level at which to perform the conversion.
|
Point — Point on a projection plane (as Point in radians).
|
| 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 |
| projectPoint | () | method |
public function projectPoint(latlng:LatLng):PointProjects a point on a sphere to a projection plane.
Parameterslatlng:LatLng — Point on a sphere (as LatLng in degrees).
|
Point — A point (as Point in radians) on a projection plane.
|
| unprojectPoint | () | method |
public function unprojectPoint(point:Point):LatLngUnprojects a point on a projection plane to a sphere.
Parameterspoint:Point — Point on a projection plane (as Point in radians).
|
LatLng —
A point (as LatLng in degreees) on a sphere.
|