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

Package | org.apache.flex.maps.google.models
Class | public class MapModel
Inheritance | MapModel EventDispatcher flash.events.EventDispatcher
Implements | IBeadModel

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The data model for the Map class, this holds the maps current center location, its current zoom level, the last marker selected, and any search results.

Public Properties

| Property | Defined By
--- | --- | ---
|  | currentCenter : LatLng The current center of the map. | MapModel
|  | searchResults : Array Results from the last search. | MapModel
|  | selectedMarker : Marker The last marker selected, if any. | MapModel
|  | strand : IStrand [write-only] The host component for this bead. | MapModel
|  | token : String | MapModel
|  | zoom : Number The current zoom level. | MapModel

Public Methods

| Method | Defined By
--- | --- | ---
|  | MapModel() Constructor. | MapModel

Property Detail

currentCenter | property

`currentCenter:LatLng`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The current center of the map.

Implementation
`public function get currentCenter():LatLng`
`public function set currentCenter(value:LatLng):void`

searchResults | property |

`searchResults:Array`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Results from the last search.

Implementation
`public function get searchResults():Array`
`public function set searchResults(value:Array):void`

selectedMarker | property |

`selectedMarker:Marker`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The last marker selected, if any.

Implementation
`public function get selectedMarker():Marker`
`public function set selectedMarker(value:Marker):void`

strand | property |

`strand:IStrand` [write-only]

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`

token | property |

`token:String`

Implementation
`public function get token():String`
`public function set token(value:String):void`

zoom | property |

`zoom:Number`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The current zoom level.

Implementation
`public function get zoom():Number`
`public function set zoom(value:Number):void`
Constructor Detail

MapModel | () | Constructor

`public function MapModel()`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Constructor.

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