Package | org.apache.flex.maps.google |
Class | public class Map |
Inheritance | Map ![]() ![]() |
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Property | Defined By | ||
---|---|---|---|
![]() | $height : Number [read-only]
Retrieve the low-level bounding box height. | UIBase | |
![]() | $width : Number [read-only]
Retrieve the low-level bounding box width. | UIBase | |
![]() | beads : Array
The array property that is used to add additional
beads to an MXML tag. | UIBase | |
![]() | className : String
The classname. | UIBase | |
![]() | element : Object [read-only]
Each IUIBase has an element that is actually added to
the platform's display list DOM. | UIBase | |
![]() | explicitHeight : Number
The explicitly set width (as opposed to measured width
or percentage width). | UIBase | |
![]() | explicitWidth : Number
The explicitly set width (as opposed to measured width
or percentage width). | UIBase | |
![]() | height : Number [override]
The height of the component. | UIBase | |
![]() | id : String
An id property for MXML documents. | UIBase | |
![]() | measurementBead : IMeasurementBead [read-only]
A measurement bead, if one exists. | UIBase | |
![]() | model : IBeadModel
An IBeadModel that serves as the data model for the component. | UIBase | |
![]() | numElements : int [read-only]
The number of elements in the parent. | UIBase | |
![]() | percentHeight : Number
The requested percentage height this component
should have in the parent container. | UIBase | |
![]() | percentWidth : Number
The requested percentage width this component
should have in the parent container. | UIBase | |
searchResults : Array | Map | ||
selectedMarker : Marker [read-only]
The marker last selected. | Map | ||
token : String
The Google API developer token. | Map | ||
![]() | view : IBeadView
An IBeadView that serves as the view for the component. | UIBase | |
![]() | width : Number [override]
The width of the component. | UIBase |
Method | Defined By | ||
---|---|---|---|
Map()
constructor. | Map | ||
![]() |
Add a bead to the strand. | UIBase | |
![]() | addedToParent():void
The method called when added to a parent. | UIBase | |
![]() | addElement(c:Object):void
Add a component to the parent. | UIBase | |
![]() | addElementAt(c:Object, index:int):void
Add a component to the parent. | UIBase | |
centerOnAddress(address:String):void
Centers the map on the address given. | Map | ||
clearSearchResults():void
Clears the search result markers from the map. | Map | ||
![]() | getBeadByType(classOrInterface:Class):IBead
Find a bead on the strand. | UIBase | |
![]() | getElementIndex(c:Object):int
Gets the index of this subcomponent. | UIBase | |
loadMap(centerLat:Number, centerLong:Number, zoom:Number):void
Loads a map centered on the given latitude and longitude coodinates at the
zoom level provided. | Map | ||
markAddress(address:String):void
Translates the given address into a geo-location, moves the map to
that location, and places a marker on that location. | Map | ||
markCurrentLocation():void
Marks the current center of the map. | Map | ||
nearbySearch(placeName:String):void
Performs a search near the center of map. | Map | ||
![]() |
Remove a bead from the strand. | UIBase | |
![]() | removeElement(c:Object):void
Remove a component from the parent. | UIBase | |
Centers the map on a specific location. | Map | ||
setZoom(zoom:Number):void
Sets the magnification level on the map with 1 being the lowest level
(essentially the entire world) and 14 being very zoomed. | Map |
Event | Summary | Defined By | ||
---|---|---|---|---|
Map | ||||
Map | ||||
![]() | Set a different class for click events so that there aren't dependencies on the flash classes on the JS side. | UIBase | ||
Map | ||||
Map | ||||
Map | ||||
Map |
searchResults | property |
public var searchResults:Array
selectedMarker | property |
selectedMarker:Marker
[read-only] Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
The marker last selected.
public function get selectedMarker():Marker
token | property |
token:String
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
The Google API developer token.
public function get token():String
public function set token(value:String):void
Map | () | Constructor |
public function Map()
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
constructor.
centerOnAddress | () | method |
public function centerOnAddress(address:String):void
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Centers the map on the address given.
Parameters
address:String |
clearSearchResults | () | method |
public function clearSearchResults():void
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Clears the search result markers from the map.
loadMap | () | method |
public function loadMap(centerLat:Number, centerLong:Number, zoom:Number):void
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Loads a map centered on the given latitude and longitude coodinates at the zoom level provided.
Parameters
centerLat:Number | |
centerLong:Number | |
zoom:Number |
markAddress | () | method |
public function markAddress(address:String):void
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Translates the given address into a geo-location, moves the map to that location, and places a marker on that location.
Parameters
address:String |
markCurrentLocation | () | method |
public function markCurrentLocation():void
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Marks the current center of the map.
nearbySearch | () | method |
public function nearbySearch(placeName:String):void
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Performs a search near the center of map. The result is a set of markers displayed on the map.
Parameters
placeName:String |
setCenter | () | method |
public function setCenter(location:LatLng):void
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Centers the map on a specific location.
Parameters
location:LatLng |
setZoom | () | method |
public function setZoom(zoom:Number):void
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Sets the magnification level on the map with 1 being the lowest level (essentially the entire world) and 14 being very zoomed.
Parameters
zoom:Number |
boundsChanged | Event |
centered | Event |
dragEnd | Event |
ready | Event |
searchResult | Event |
zoomChanged | Event |