Package | com.gestureworks.cml.elements |
Class | public class ModestMap |
Inheritance | ModestMap ![]() ![]() |
When declaring a map, the important parts are latitude, longitude, zoom, and the mapprovider, which is the style of map that will be seen.
When declaring latitude, negative values are west of the Prime Meridian, and for longitude, negative values are south of the equator.
var map1:ModestMapElement = new ModestMapElement; map1.latitude = 51.1789; map1.longitude = -1.8624; map1.zoom = 7; map1.mapprovider = "MicrosoftRoadMapProvider";
Property | Defined By | ||
---|---|---|---|
![]() | autoShuffle : Boolean
autoshuffles
| TouchContainer | |
![]() | childList : ChildList
Returns the object's childList. | TouchContainer | |
![]() | className : String
sets the class name of displayobject
| TouchContainer | |
![]() | cloneExclusions : Vector.<String> [read-only]
Returns a list of properties to exclude when cloning this object
| TouchContainer | |
![]() | cmlIndex : int
Returns the index created by the CML parser. | TouchContainer | |
![]() | dimensionsTo : Object
Sets the dimensions of TouchContainer to given object
| TouchContainer | |
![]() | dropShadow : Boolean
Sets the drop shadow effect
| TouchContainer | |
![]() | group : String | TouchContainer | |
![]() | height : Number [override]
sets the height of the container
| TouchContainer | |
![]() | heightPercent : Number
sets the height of the container
| TouchContainer | |
![]() | id : String
Returns the object's id. | TouchContainer | |
latitude : Number
Sets and retrives the latitude of the starting location. | ModestMap | ||
![]() | layout : *
specifies the type of layout
| TouchContainer | |
![]() | layoutList : Dictionary | TouchContainer | |
loaded : String [read-only]
Read-only property indicating if the element is loaded or not. | ModestMap | ||
longitude : Number
Sets and retrives the longitude of the starting location. | ModestMap | ||
map : TweenMap | ModestMap | ||
mapprovider : String
This sets and retrieves the type of map the user will see. | ModestMap | ||
![]() | mouseChildren : Boolean [override]
sets the mousechildren value to true or false. | TouchContainer | |
![]() | paddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area. | TouchContainer | |
![]() | paddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area. | TouchContainer | |
![]() | paddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area. | TouchContainer | |
![]() | paddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area. | TouchContainer | |
![]() | position : *
Sets the position
| TouchContainer | |
![]() | relativeX : Boolean
When set true this containers children's x position will be laid out relatively
to each other. | TouchContainer | |
![]() | relativeY : Boolean
When set true this containers children's y position will be laid out relatively
to each other. | TouchContainer | |
scaleable : Boolean
Sets if the map is scaleable
| ModestMap | ||
scaleFactor : Number
Sets how fast the map scales in
| ModestMap | ||
![]() | sound : String | TouchContainer | |
![]() | state : Dictionary | TouchContainer | |
![]() | stateId : *
Returns the current state id. | TouchContainer | |
![]() | toBitmap : Boolean | TouchContainer | |
![]() | width : Number [override]
sets the width of the container
| TouchContainer | |
![]() | widthPercent : Number
sets the width of the container
| TouchContainer | |
zoom : Number
Sets and retrieves the Zoom at which the map will start. | ModestMap |
Method | Defined By | ||
---|---|---|---|
Constructor
| ModestMap | ||
![]() | activateTouch():void | TouchContainer | |
![]() | addAllChildren():void
method searches the child and adds to the list
| TouchContainer | |
![]() | addChild(child:DisplayObject):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | addChildAt(child:DisplayObject, index:int):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | applyLayout(value:* = null):void
Apply the containers layout
| TouchContainer | |
![]() | childToList(id:String, child:*):void
child appended to the childlist
| TouchContainer | |
![]() | clone():*
Clone method
| TouchContainer | |
dispose():void [override]
Destructor
| ModestMap | ||
![]() | getElementById(id:String):*
Searches CML childList by id. | TouchContainer | |
![]() | getElementsByClassName(className:String):Array
Searches the CML childList by className. | TouchContainer | |
![]() | getElementsByTagName(tagName:Class):Array
Searches the CML childList by tagName as Class. | TouchContainer | |
init():void [override]
Initialisation method
| ModestMap | ||
![]() | loadState(sId:* = null, recursion:Boolean = false):void
Loads state by index number. | TouchContainer | |
![]() | makeGestureList(value:XMLList):Object
Creates gestureList object from XML
| TouchContainer | |
![]() | parseCML(cml:XMLList):XMLList
Parse cml for local layouts. | TouchContainer | |
![]() | postparseCML(cml:XMLList):void
Abstract method allows the setting of a postparse CML routine. | TouchContainer | |
![]() | querySelector(selector:String):*
Searches the CML childList by selector. | TouchContainer | |
![]() | querySelectorAll(selector:*):Array
Search the CML childList by selector. | TouchContainer | |
![]() | removeChild(child:DisplayObject):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildAt(index:int):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void [override]
Removes children from display list and, if not already removed, the child list
| TouchContainer | |
![]() | saveState(sId:* = null, recursion:Boolean = false):void
Save state by index number. | TouchContainer | |
![]() | searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists. | TouchContainer | |
![]() | setDimensionsToChild():void
method sets the dimensions of each child
| TouchContainer | |
switchMapProvider(e:*):void
Sets the current index value
| ModestMap | ||
![]() | tweenState(sId:* = null, tweenTime:Number = 1):void
Tween state by stateIndex from current to given state index. | TouchContainer | |
updateFrame():void
Updates the frame of Modest Map
| ModestMap | ||
![]() | updatePadding():void
Updates child padding within this container
| TouchContainer | |
![]() | updatePercentDim():void
Updates child percent dimensions within this container
| TouchContainer | |
![]() | updateProperties(state:* = 0):void
Updates properties from state. | TouchContainer | |
![]() | updateRelativePos():void
Updates child relative positions within this container
| TouchContainer |
latitude | property |
latitude:Number
Sets and retrives the latitude of the starting location. Negative values are South of the Equator, positive values are North. For example, 1.2345 S would be -1.2345.
public function get latitude():Number
public function set latitude(value:Number):void
loaded | property |
loaded:String
[read-only] Read-only property indicating if the element is loaded or not.
public function get loaded():String
longitude | property |
longitude:Number
Sets and retrives the longitude of the starting location. Negative values are West of the Prime Meridian, positive values are East. For example, 1.2345 W would be -1.2345.
public function get longitude():Number
public function set longitude(value:Number):void
map | property |
public var map:TweenMap
mapprovider | property |
mapprovider:String
This sets and retrieves the type of map the user will see. This is not case-sensitive. Types are: BlueMarbleMapProvider, MicrosoftAerialMapProvider, MicrosoftHybridMapProvder, MicrosoftRoadMapProvider, OpenStreeMapProvider, YahooAerialMapProvider, YahooHybridMapProvider, YahooRoadMapProvider.
public function get mapprovider():String
public function set mapprovider(value:String):void
scaleable | property |
scaleable:Boolean
Sets if the map is scaleable
The default value is true
.
public function get scaleable():Boolean
public function set scaleable(value:Boolean):void
scaleFactor | property |
scaleFactor:Number
Sets how fast the map scales in
The default value is 15.0
.
public function get scaleFactor():Number
public function set scaleFactor(value:Number):void
zoom | property |
zoom:Number
Sets and retrieves the Zoom at which the map will start. Must be a value of 1 or larger or no map will be seen at runtime.
The default value is 1
.
public function get zoom():Number
public function set zoom(value:Number):void
ModestMap | () | Constructor |
public function ModestMap()
Constructor
dispose | () | method |
override public function dispose():void
Destructor
init | () | method |
override public function init():void
Initialisation method
switchMapProvider | () | method |
public function switchMapProvider(e:*):void
Sets the current index value
Parameters
e:* |
updateFrame | () | method |
public function updateFrame():void
Updates the frame of Modest Map