| Package | com.afcomponents.umap.core |
| Class | public class Control |
| Inheritance | Control MapObjectContainer MapObject flash.display.Sprite |
| Implements | IMapObjectContainer |
| Property | Defined by | ||
|---|---|---|---|
![]() | asDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
| MapObject | |
![]() | core : UMap
Returns reference to the core UMap object.
| MapObject | |
| defaultProjection : IProjection
Gets or sets the default projection used by UMap.
| Control | ||
![]() | id : uint
Gets or sets the ID of the object.
| MapObject | |
| imageLoader : ImageLoader
[read-only]
| Control | ||
| keyboard : KeyboardHandler [read-only]
| Control | ||
| mapType : IMapType
| Control | ||
| mouse : MouseHandler
[read-only]
| Control | ||
![]() | name : String
Gets or sets the name of the object.
| MapObject | |
![]() | owner : IMapObjectContainer
Returns reference to the owner container object.
| MapObject | |
| projection : IProjection
[read-only]
| Control | ||
| provider : IProvider
[read-only]
Returns a refrence to the provider, that is used in UMap.
| Control | ||
| tileSize : uint [read-only]
| Control | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
addObject(object:IMapObject):void
Adds new IMapObject to the container.
| MapObjectContainer | |
![]() |
bringForward(object:IMapObject):void
Moves the attached IMapObject forward in the display list.
| MapObjectContainer | |
![]() |
bringToFront(object:IMapObject):void
Brings the attached IMapObject to the top of the display list.
| MapObjectContainer | |
![]() |
clearObjects(filter:Class = null):void
Removes all attached objects.
| MapObjectContainer | |
![]() |
dispose():void
Releases all the resources accuired by the object.
| MapObjectContainer | |
![]() |
getObject(id_or_name:*, filter:Class = null):IMapObject
Searches for an object with specified id or name.
| MapObjectContainer | |
![]() |
getObjectById(id:uint, filter:Class = null):IMapObject
Searches for an object with specified id.
| MapObjectContainer | |
![]() |
getObjectByName(name:String, matchCase:Boolean = false, filter:Class = null):IMapObject
Searches for an object with specified name.
| MapObjectContainer | |
![]() |
getObjects(filter:Class = null):Array
Returns an array of IMapObjects that where added to the container.
| MapObjectContainer | |
![]() |
isOwnerVisible():Boolean
Recursevly checks visibility of parent objects
| MapObjectContainer | |
|
Limits latlng by the specified area.
| Control | ||
|
limitZoom(zoom:Number):Number
Limits the zoom level by map type and custom limitation.
| Control | ||
![]() |
remove():void
Removes the object from the owner container object.
| MapObject | |
![]() |
removeObject(object:IMapObject):void
Removes IMapObject from the container.
| MapObjectContainer | |
![]() |
sendBackward(object:IMapObject):void
Sends the attached IMapObject backward in the display list.
| MapObjectContainer | |
![]() |
sendToBack(object:IMapObject):void
Sends the attached IMapObject to the bottom of the display list.
| MapObjectContainer | |
|
setMapTypeByName(mapTypeName:String):Boolean
| Control | ||
![]() |
setOwner(owner:IMapObjectContainer):void
Adds the object to the specified IMapObjectContainer.
| MapObjectContainer | |
|
setProviderByClass(provider:Class):Boolean
| Control | ||
|
setViewLimit(enable:Boolean = true, bounds:LatLngBounds = null):Boolean
Enables or disables custom map view limit.
| Control | ||
|
setZoomLimit(enable:Boolean = true, min:Number, max:Number):void
Enables or disables custom zoom limit.
| Control | ||
![]() |
toString():String
Returns a textual representation of the object.
| MapObject | |
| Constant | Defined by | ||
|---|---|---|---|
| DEFAULT_PROJECTION : Class
Defines the class name of the default projection.
| Control | ||
| DEFAULT_PROVIDER : Class
Defines the class name of the default provider.
| Control | ||
| defaultProjection | property |
defaultProjection:IProjection [read-write]Gets or sets the default projection used by UMap.
The default value is DEFAULT_PROJECTION.
public function get defaultProjection():IProjection
public function set defaultProjection(value:IProjection):void
See also
| imageLoader | property |
| keyboard | property |
keyboard:KeyboardHandler [read-only]Implementation
public function get keyboard():KeyboardHandler
| mapType | property |
mapType:IMapType [read-write]Implementation
public function get mapType():IMapType
public function set mapType(value:IMapType):void
| mouse | property |
| projection | property |
| provider | property |
provider:IProvider [read-only]Returns a refrence to the provider, that is used in UMap.
To set the provider use one of the following:
public function get provider():IProvider
See also
| tileSize | property |
tileSize:uint [read-only]Implementation
public function get tileSize():uint
| limitView | () | method |
public function limitView(latlng:LatLng, cancelWarp:Boolean = false):LatLngLimits latlng by the specified area.
Parameterslatlng:LatLng — Target point.
|
|
cancelWarp:Boolean (default = false) — Cancels warping of longitude.
|
LatLng —
Resulting point.
|
| limitZoom | () | method |
public function limitZoom(zoom:Number):NumberLimits the zoom level by map type and custom limitation.
Parameterszoom:Number — Target zoom level.
|
Number — Resulting zoom level.
|
| setMapTypeByName | () | method |
public function setMapTypeByName(mapTypeName:String):BooleanParameters
mapTypeName:String |
Boolean |
| setProviderByClass | () | method |
public function setProviderByClass(provider:Class):BooleanParameters
provider:Class |
Boolean |
| setViewLimit | () | method |
public function setViewLimit(enable:Boolean = true, bounds:LatLngBounds = null):BooleanEnables or disables custom map view limit.
To enable view limit pass true as the first parameter, and specify view area.
If you ommit the second parameter or pass null value then the previuosly defined boundaries will be used.
To disable view limit pass false as the first parameter.
enable:Boolean (default = true) — Flag which defines whether custom zoom limit is enabled or not.
|
|
bounds:LatLngBounds (default = null) — LatLngBounds object which defines map view limit.
|
Boolean — Returns a value true if limitation was set successfuly; false if it was not.
|
| setZoomLimit | () | method |
public function setZoomLimit(enable:Boolean = true, min:Number, max:Number):voidEnables or disables custom zoom limit.
To enable zoom limit pass true as the first parameter, and specify minimum and maximum zoom level.
If you don't want to limit either zoom boundary (min or max) pass Number.NaN as it's value.
To disable zoom limit pass false as the first parameter.
enable:Boolean (default = true) — Flag which defines whether custom zoom limit is enabled or not.
|
|
min:Number — Minimum zoom level, or a vlaue of Number.NaN if you don't want to limit minimum zoom level.
|
|
max:Number — Maximum zoom level, or a vlaue of Number.NaN if you don't want to limit maximum zoom level.
|
| DEFAULT_PROJECTION | constant |
public const DEFAULT_PROJECTION:ClassDefines the class name of the default projection.
| DEFAULT_PROVIDER | constant |
public const DEFAULT_PROVIDER:ClassDefines the class name of the default provider.