Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
GoogleMapView

Package | org.apache.flex.maps.google.beads
Class | public class GoogleMapView
Inheritance | GoogleMapView BeadViewBase EventDispatcher flash.events.EventDispatcher
Implements | IBeadView

The AS3 version of GoogleMapView is geared toward its use with HTMLLoader for AIR.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | host : IUIBase [read-only] The host component. | BeadViewBase
|  | strand : IStrand [override] [write-only] The host component for this bead. | GoogleMapView
|  | _strand : IStrand The strand. | BeadViewBase

Public Methods

| Method | Defined By
--- | --- | ---
|  | GoogleMapView() Constructor. | GoogleMapView
|  | centerOnAddress(address:String):void Centers the map on the address given. | GoogleMapView
|  | clearSearchResults():void Clears the previous search results. | GoogleMapView
|  | createMarker(location:LatLng):Marker Creates a marker for placement on the map. | GoogleMapView
|  | mapit(lat:Number, lng:Number, zoomLevel:Number):void Adjusts the map to the given coordinate and zoom level. | GoogleMapView
|  | markAddress(address:String):void Finds the given address and places a marker on it. | GoogleMapView
|  | markCurrentLocation():void Marks the current center of the map. | GoogleMapView
|  | nearbySearch(placeName:String):void Performs a search near the center of map. | GoogleMapView
|  | removeAllMarkers():void Removes all of the markers from the map | GoogleMapView
|  | setCenter(location:LatLng):void Sets the center of the map. | GoogleMapView
|  | setZoom(zoom:Number):void Sets the zoom factor of the map. | GoogleMapView

Property Detail

strand | property

`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

GoogleMapView | () | Constructor

`public function GoogleMapView()`

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 previous search results.

createMarker | () | method |

`public function createMarker(location:LatLng):Marker`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Creates a marker for placement on the map.

Parameters

| `location:LatLng`

Returns

| `Marker`

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`

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

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`

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`

Mon Sep 5 2016, 07:19 AM -07:00