Class OpenFlightsMap

Object
   |
   +--OpenFlightsMap

class OpenFlightsMap


Class for the OpenFlightsMap widget.
Defined in map.js


Field Summary
<static>  <final> Object AIRLINE
          Map type: airline route map
<static>  <final> Object AIRPORT
          Map type: airport route map
<static>  <final> Object FLIGHTS
          Map type: flight map
<static>  Object URL_MAP
          URL of flight map server
<static>  Object URL_ROUTES
          URL of route map server
 
Constructor Summary
OpenFlightsMap(map, layers)
            OpenFlightsMap constructor
 
Method Summary
 void addPopup(popup)
           Add a popup to map
 void clear()
           Clear all flights, airports and popups
 void debug(str)
           Print to debug log, if global variable OF_DEBUG is true
 void draw(<string> transport, <const> type)
           Draw map
 void error(str)
           Set human-readable error message as map title
 Object getRouteMapTitle(type, id, flightTotal, desc)
           Callback for generating title describing this route map.
 void load(<String> type, <int> id)
           Load a type of map content
 void setStatistics(<int> flightTotal, <string> distance, <int> duration)
           Callback for displaying user's personal flight statistics.
 Object zoom()
           Zoom so visible flight data (-180 to 180) fills the screen
Known bug: incorrectly draws whole map if flight lines span the meridian...

Field Detail

AIRLINE

<static> <final> Object AIRLINE

AIRPORT

<static> <final> Object AIRPORT

FLIGHTS

<static> <final> Object FLIGHTS

URL_MAP

<static> Object URL_MAP

URL_ROUTES

<static> Object URL_ROUTES

Constructor Detail

OpenFlightsMap

OpenFlightsMap(map, layers)

Method Detail

addPopup

void addPopup(popup)

clear

void clear()

debug

void debug(str)

draw

void draw(<string> transport, <const> type)

error

void error(str)

getRouteMapTitle

Object getRouteMapTitle(type, id, flightTotal, desc)

load

void load(<String> type, <int> id)

setStatistics

void setStatistics(<int> flightTotal, <string> distance, <int> duration)

zoom

Object zoom()


Documentation generated by JSDoc on Fri Feb 5 17:41:56 2010