Packageorg.apache.flex.maps.google
Classpublic class Map
InheritanceMap Inheritance UIBase Inheritance flash.display.Sprite

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The Map class displays a Google Map centered on lat/lng coordinates. The Map uses the following bead type: org.apache.flex.maps.beads.MapView: Uses HTMLLoader to display the map.



Public Properties
 PropertyDefined By
 Inherited$height : Number
[read-only] Retrieve the low-level bounding box height.
UIBase
 Inherited$width : Number
[read-only] Retrieve the low-level bounding box width.
UIBase
 Inheritedbeads : Array
The array property that is used to add additional beads to an MXML tag.
UIBase
 InheritedclassName : String
The classname.
UIBase
 Inheritedelement : Object
[read-only] Each IUIBase has an element that is actually added to the platform's display list DOM.
UIBase
 InheritedexplicitHeight : Number
The explicitly set width (as opposed to measured width or percentage width).
UIBase
 InheritedexplicitWidth : Number
The explicitly set width (as opposed to measured width or percentage width).
UIBase
 Inheritedheight : Number
[override] The height of the component.
UIBase
 Inheritedid : String
An id property for MXML documents.
UIBase
 InheritedmeasurementBead : IMeasurementBead
[read-only] A measurement bead, if one exists.
UIBase
 Inheritedmodel : IBeadModel
An IBeadModel that serves as the data model for the component.
UIBase
 InheritednumElements : int
[read-only] The number of elements in the parent.
UIBase
 InheritedpercentHeight : Number
The requested percentage height this component should have in the parent container.
UIBase
 InheritedpercentWidth : 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
 Inheritedview : IBeadView
An IBeadView that serves as the view for the component.
UIBase
 Inheritedwidth : Number
[override] The width of the component.
UIBase
Public Methods
 MethodDefined By
  
Map()
constructor.
Map
 Inherited
addBead(bead:IBead):void
Add a bead to the strand.
UIBase
 Inherited
The method called when added to a parent.
UIBase
 Inherited
addElement(c:Object):void
Add a component to the parent.
UIBase
 Inherited
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
  
Clears the search result markers from the map.
Map
 Inherited
getBeadByType(classOrInterface:Class):IBead
Find a bead on the strand.
UIBase
 Inherited
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
  
Marks the current center of the map.
Map
  
nearbySearch(placeName:String):void
Performs a search near the center of map.
Map
 Inherited
Remove a bead from the strand.
UIBase
 Inherited
removeElement(c:Object):void
Remove a component from the parent.
UIBase
  
setCenter(location:LatLng):void
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
Events
 Event Summary Defined By
  Map
  Map
 InheritedSet 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
Property Detail
searchResultsproperty
public var searchResults:Array

selectedMarkerproperty 
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.


Implementation
    public function get selectedMarker():Marker
tokenproperty 
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.


Implementation
    public function get token():String
    public function set token(value:String):void
Constructor Detail
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.

Method Detail
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

Event Detail
boundsChanged Event
Event Object Type: org.apache.flex.events.Event

centered Event  
Event Object Type: org.apache.flex.events.Event

dragEnd Event  
Event Object Type: org.apache.flex.events.Event

ready Event  
Event Object Type: org.apache.flex.events.Event

searchResult Event  
Event Object Type: org.apache.flex.events.Event

zoomChanged Event  
Event Object Type: org.apache.flex.events.Event