AFComponents.com

Map V. 3.0 API Docs



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.
  1. map:String
  2. satellite:String
  3. hybrid:String
googleMapWindow Number Property defines new window type. Please note that googleMap property must be set to true.
  1. _blank:String
  2. _self:String
  3. _parent:String
  4. _top:String
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.
  1. data:Mixed
  2. description:Mixed - Property displayed in the Tooltip
  3. descriptionType:String - Property (image, text) defines the type of Tooltip content
  4. icon:String - Property indicates custom icon movie clip (linkage identifier) in the library. Movie clip must be exported to ActionScript.
  5. latitude:String – Property indicates the latitude of a location
  6. longitude:String – Property indicates the longitude of 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.
  1. left:String
  2. right:String
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.
  1. color:Number – A Hexidecimal color that defines polyline color
  2. size:Number – Property defines polyline width
  3. endData:Mixed
  4. endDescription:Mixed
  5. endDescriptionType:String
  6. endIcon:String
  7. endLatitude:Number
  8. endLongitude:Number
  9. startData:Mixed
  10. startDescription:Mixed
  11. startDescriptionType:String
  12. startIcon:String
  13. startLatitude:Number
  14. startLongitude:Number
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 ) Void Increments zoom value and performs zoom.

Example

myMap.zoomIn();
zoomOut( void ) 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);



© 2005-2007 advanced flash components