Map V. 3.0 Documentation
Properties
| Name | Type | Description |
| borders | Boolean | Property indicates whether country and state (US, Canada, Australia) borders are displayed (true) or not (false). |
| bordersAlpha | Number | Property (0-100) that indicates country and state (US, Canada, Australia) borders’ transparency. |
| bordersColor | Number | A Hexadecimal color value that defines country and state (US, Canada, Australia) borders’ colors. |
| contentXML | String | Property indicates a path to the XML File. Sample locations XML file: http://www.afcomponents.com/components/map/locations.xml |
| customMap | String | Property indicates a map movie clip (linkage identifier) in the library. Movie clip must be exported for Action Script. Custom map sample FLA file: http://www.afcomponents.com/components/map/Custom_Map.fla |
| displayTooltip | Boolean | Property indicates whether Tooltips are displayed ( true ) or not ( false ). For the complete list of Tooltip properties see Tooltip Component. |
| googleMap | Void | Property indicates whether user is forwarded (true) to Google Maps Site ( http://maps.google.com ) upon mouse click. |
| googleMapType | String | Property indicates Google Map type. Please note that googleMap property must be set to true.
|
| googleMapWindow | Number | Property defines new window type. Please note that googleMap property must be set to true.
|
| land | Boolean | Property indicates whether landmass is displayed (true). |
| landColor | Number | A Hexadecimal color value of landmass. |
| landOutline | Boolean | Property indicates whether landmass outline is displayed (true). |
| landOutlineAlpha | Number | Property (0-100) that indicates transparency of landmass outline. |
| landOutlineColor | Number | A Hexadecimal color value that defines the color of landmass outline. |
| locationIcon | String | Property indicates a movie clip (linkage identifier) in the library. Movie clip must be exported to ActionScript. |
| locations | Object | Property defines a location.
|
| navigator | Boolean | Property indicates whether navigator window is displayed (true). |
| navigatorBackgroundAlpha | Number | Property indicates navigator window background’s transparency. |
| navigatorBackgroundColor | Number | A Hexadecimal color value that defines the color of navigator window background. |
| navigatorBorderAlpha | Number | Property (0-100) indicates transparency of navigator window border. |
| navigatorBorderColor | Number | A Hexadecimal color value that defines the color of navigator window border. |
| navigatorMapColor | Number | A Hexadecimal color value that defines the color of navigator map. |
| navigatorMapAlpha | Number | Property (0-100) indicates transparency of the navigator map. |
| navigatorMapBgColor | Number | A Hexadecimal color value that defines the color of navigator map background. |
| navigatorMapBgAlpha | Number | Property (0-100) indicates transparency of the navigator map background. |
| navigatorPosition | String | Property indicates the position of the navigator window.
|
| navigatorWindowAlpha | Number | Property (0-100) indicates navigator window’s transparency. |
| navigatorWindowColor | Number | Property defines the color of navigator window. |
| navigatorWindowBorder | Number | Property indicates whether the navigator window border is displayed (true). |
| navigatorWindowBorderColor | Number | A Hexadecimal color value that defines the color of the navigator window border. |
| navigatorWindowBorderAlpha | Number | Property (0-100) indicates navigator window border’s transparency. |
| ocean | Boolean | Property indicates whether ocean fill is displayed (true). |
| oceanAlpha | Number | Property (0-100) indicates the transparency of ocean fill. |
| oceanColor | Number | A Hexadecimal color value that defines the color of the ocean fill. |
| polylines | Object | Property defines a polyline. Please note that you can set only two points via Component Properties. For multiple polylines and polyline points please use XML file.
|
| polylinesXML | String | Property indicates a path to the polylines XML File. Sample polylines XML file: http://www.afcomponents.com/components/map/polylines.xml |
| zoomLat | Number | Property indicates Latitude of the map’s zoom center point. |
| zoomLon | Number | Property indicates Longitude of the map’s zoom center point. |
| zoomNumber | Number | Property (1-100) indicates zoom amount. |
Methods
| Name | Return Type | Description |
| zoomIn( ) | Void | Increments zoom value and performs zoom. Example myMap.zoomIn(); |
| zoomOut( ) | Void | Decrements zoom value and performs zoom. Example myMap.zoomOut(); |
| setZoomArea( latitude:Number, longitude:Number, zoom:Number ) |
Void | Sets zoom area. Example setZoomArea(10,-10, 4); |
Events
| Name | Return Value | Description |
| change | type target zoom lat lon |
Triggered when map display is changed. Example function change(evnt){ trace(evnt.type); trace(evnt.zoom); trace(evnt.lat); trace(evnt.lon); } myMap.addEventListener("change", this); |
| over | type target locationData locationDescription locationLat locationLon |
Triggered on location onRollOver event. Example function over(evnt){ trace(evnt.type); trace(evnt.zoom); trace(evnt.lat); trace(evnt.lon); } myMap.addEventListener("over", this); |
| out | type target locationData locationDescription locationLat locationLon |
Triggered on location onRollOut event. Example function out(evnt){ trace(evnt.type); trace(evnt.zoom); trace(evnt.lat); trace(evnt.lon); } myMap.addEventListener("out", this); |
| click | type target locationData locationDescription locationLat locationLon |
Triggered on location onRrelease event. Example function click(evnt){ trace(evnt.type); trace(evnt.zoom); trace(evnt.lat); trace(evnt.lon); } myMap.addEventListener("click", this); |
