Packageorg.apache.flex.maps.google.beads
Classpublic class MapView
InheritanceMapView Inheritance BeadViewBase Inheritance Object
Implements IBeadView

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

The MapView bead class displays a Google Map using HTMLLoader.



Public Properties
 PropertyDefined By
  strand : IStrand
[override] [write-only] The host component for this bead.
MapView
 InheritedviewHeight : Number
[read-only] The height of the view.
BeadViewBase
 InheritedviewWidth : Number
[read-only] The width of the view.
BeadViewBase
Protected Properties
 PropertyDefined By
 Inherited_strand : IStrand
The strand
BeadViewBase
Public Methods
 MethodDefined By
  
Constructor.
MapView
  
centerOnAddress(address:String):void
Centers the map on the address given.
MapView
  
geoCodeAndMarkAddress(address:String):void
Finds the given address and places a marker on it.
MapView
  
mapit(lat:Number, lng:Number, zoomLevel:Number):void
Adjusts the map to the given coordinate and zoom level.
MapView
  
Marks the current center of the map.
MapView
  
nearbySearch(placeName:String):void
Performs a search near the center of map.
MapView
  
Removes all of the markers from the map
MapView
  
setCenter(location:LatLng):void
Sets the center of the map.
MapView
  
setZoom(zoom:Number):void
Sets the zoom factor of the map.
MapView
Property Detail
strandproperty
strand:IStrand  [write-only] [override]

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

The host component for this bead.


Implementation
    public function set strand(value:IStrand):void
Constructor Detail
MapView()Constructor
public function MapView()

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

geoCodeAndMarkAddress()method 
public function geoCodeAndMarkAddress(address:String):void

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

Finds the given address and places a marker on it. This function may be dropped since centerOnAddress + markCurrentLocation does the same thing.

Parameters

address:String

mapit()method 
public function mapit(lat:Number, lng:Number, zoomLevel:Number):void

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

Adjusts the map to the given coordinate and zoom level.

Parameters

lat:Number
 
lng:Number
 
zoomLevel:Number

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

removeAllMarkers()method 
public function removeAllMarkers():void

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

Removes all of the markers from the map

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

Sets the center of the map.

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 zoom factor of the map.

Parameters

zoom:Number