Global

Members

map

Source:

NewTransit

Source:

Methods

addLatLng(event)

The function to add user marker to google.maps.LatLng coordinates
Parameters:
Name Type Description
event google.maps.event
Source:

AddStationMarkers(null)

The function to add station markers (google.maps.markers) to the map (google.maps object), from the StationData[] array
Parameters:
Name Type Description
null object
Source:
Listens to Events:
  • {google.maps.marker} google.maps.event:marker click

AddWeatherStationMarkers(object)

The function to initialize Weather Station Markers in WeatherStationMarkers[] (google.maps.marker) and add weather station markers on the map (google.maps) object Tutorial : see AddWeatherStationMarkers
Parameters:
Name Type Description
object google.maps.marker
Source:
Listens to Events:
  • {google.maps.markers.event:onclick event} WeatherStationMarkers[i]

AddXMLStationRail(null)

The function to generate XML string for rail data
Parameters:
Name Type Description
null object // *****************************
Source:

animateCircle(null)

The function to animate symbols on a path between stations, defined in PathData[] // https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-animate // This example adds an animated symbol to a polyline.
Parameters:
Name Type Description
null object
Source:
Fires:
  • event:animateCircle
  • event:InitTransitPathData
  • {worker} window.event:setInterval

CatchException(Sender, Error)

Class Transit.js Transit
Parameters:
Name Type Description
Sender function The copy of an instance of a function or an object, reporting the error.
Error object The exception object, returned from a try .. catch block.
Source:

DeleteLastMarker(null)

The function to delete the most recently added user marker end poly-line from the google.maps (map) object and redraw the path
Parameters:
Name Type Description
null object
Source:
Fires:
  • Transit.event:ResetPolyLine

DisplayAugmentedReality(null)

The function to set CSS properties to the {#div-hd-image} DOM element. ( DisplayAugmentedReality() - HD image to top ) See https://api.jquery.com/css/ See http://api.jquery.com/prop/ See http://www.w3schools.com/jsref/met_win_scrollto.asp See http://www.w3schools.com/jsref/dom_obj_style.asp See http://www.w3schools.com/jsref/prop_checkbox_checked.asp
Parameters:
Name Type Description
null object
Source:
Listens to Events:
  • {google.maps.event:onclick event} onClickUserInterface

DisplayStationInfo(markerID, StationInfoWindow)

The function to display info and detail of the google.maps.marker, representing a transit station
Parameters:
Name Type Description
markerID integer
StationInfoWindow HTML
Source:
Listens to Events:
  • {google.maps.click} map.event:onClick

ExecuteSQL(null)

The function to add station markers (google.maps.markers) SQL
Parameters:
Name Type Description
null object
Source:
Listens to Events:
  • {google.maps.marker} google.maps.event:marker click

FindMarkerByStationID(StationID)

Parameters:
Name Type Description
StationID integer
Source:

FunctionStart(Sender)

Handles exceptions from all functions via debug thread and console Link (W3CSchools) : http://www.w3schools.com/jsref/jsref_try_catch.asp
Parameters:
Name Type Description
Sender function Notify debug console with function object attached as a sender.
Source:

Initialize(null)

The function to initialize Google.maps map object to its initial state.
Parameters:
Name Type Description
null object
Source:
Fires:
  • event:ResetMarkers
  • event:AddStationMarkers
  • event:InitTransitPath

InitTransitPath(null)

The function to add google.maps.Polyline to map (google.maps.object) from stored data in TransitPath[] // https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-animate // This example adds an animated symbol to a polyline.
Parameters:
Name Type Description
null object
Source:
Fires:
  • event:animateCircle
  • event:InitTransitPathData

InitTransitPathData(null)

The function to draw polylines between stations, defined in BusPolyLines[] in Bus-Editor.js // Station data (Bus, Train, Car) will be loaded in Trans // https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-animate // This example adds an animated symbol to a polyline.
Parameters:
Name Type Description
null object
Source:

LoadTrafficInfo(null)

The function to initialize Google.maps traffic layer
Parameters:
Name Type Description
null object
Source:

onClickInfo(null)

The function to animate symbols on a path between stations, defined in PathData[] // Tutorial : see OnClickInfo
Parameters:
Name Type Description
null object
Source:
Fires:
  • event:animateCircle
  • event:InitTransitPathData
  • {worker} window.event:setInterval

OnClickInfoWeatherStation(MarkerID)

The function to display info of a marker from WeatherStationMarkers[] (google.map.marker)
Parameters:
Name Type Description
MarkerID google.maps.marker
Source:
Fires:
  • event:UpdateStreetViewLocation
Listens to Events:
  • {google.maps.event:onclick event} WeatherStationMarkers[i]

RailSelectA(markerID)

The function to set active focus and a special "Active station - Green marker" to the most recently clicked google.maps.marker in StationMarkers[] array of station locations
Parameters:
Name Type Description
markerID integer .. A positive integer number, representing the index of a markerID in the stored table StationMarkers[]
Source:
Listens to Events:
  • {google.maps.marker} google.maps.event:marker click

RailSelectB(markerID)

The function to set active focus and a special "Active station - Red marker" to the most recently clicked google.maps.marker in StationMarkers[] array of station locations
Parameters:
Name Type Description
markerID integer .. A positive integer number, representing the index of a markerID in the stored table StationMarkers[]
Source:
Fires:
  • event:UpdateStreetViewLocation
Listens to Events:
  • {google.maps.marker} google.maps.event:marker click

ResetMarkers(null)

The function to reset user added markers, poly lines and path from google.maps (map) object to null
Parameters:
Name Type Description
null object
Source:
Fires:
  • event:ResetPolyLine

ResetPolyLine(null)

The function to reset the poly lines, added by users clicks
Parameters:
Name Type Description
null object
Source:

ResetStations(null)

The function to load data in TransitStation memory bank and add station markers to the google.maps (map) object
Parameters:
Name Type Description
null object
Source:
Fires:
  • event:Initialize

SelectStationMarker(markerID)

The function to select a station marker and set a most recent SelectStationMarker to the google.maps.LatLng coordinates of the selected station marker
Parameters:
Name Type Description
markerID integer A positive integer number, representing the index of a station marker in stationMarkers (google.maps.marker)
Source:
Fires:
  • Transit.event:ResetMarkers
  • Transit.event:RailSelectA
  • Transit.event:RailSelectB
Listens to Events:
  • {google.maps.marker} google.maps.event:marker click

SelectWeatherStationMarkers(MarkerID)

The function to select a marker from WeatherStationMarkers[] (google.map.marker)
Parameters:
Name Type Description
MarkerID google.maps.marker
Source:
Listens to Events:
  • {google.maps.event:onclick event} WeatherStationMarkers[i]

StartMacro(object)

The function to start an auto-test macro function on the map (google.maps) object. // Tutorial : see OnClickInfo
Parameters:
Name Type Description
object google.maps.marker
Source:
Fires:
  • {worker} window.event:setInterval
  • event:ZoomStationA

SwitchAugmentedReality(null)

The function to set CSS properties to the {#div-hd-image} DOM element. ( MaximizeAugmentedReality() - HD image to top ) See https://api.jquery.com/css/ See http://api.jquery.com/prop/ See http://www.w3schools.com/jsref/met_win_scrollto.asp See http://www.w3schools.com/jsref/prop_checkbox_checked.asp
Parameters:
Name Type Description
null object
Source:
Fires:
  • event:DisplayAugmentedReality
Listens to Events:
  • {google.maps.event:onclick event} onClickUserInterface

UpdateDocumentationInformation(DocumentationPageID)

The function to JsDoc HTML5 object to a location last added to users custom path, markers and polylines. displays a generated image from google.streetview api See http://www.w3schools.com/jsref/prop_frame_src.asp
Parameters:
Name Type Description
DocumentationPageID google.maps.transit A positive number,representing the index of a JSDoc live turial to switch view in the Transit.js documentation and users manual.
Source:
Listens to Events:
  • {google.maps.event:onclick event} onClickUserInterface

UpdateStreetViewLocation(LocationLat, LocationLng)

The function to update google.streetview object to a location last added to users custom path, markers and polylines. // displays a generated image from google.streetview api.
Parameters:
Name Type Description
LocationLat google.maps.LatLng
LocationLng google.maps.LatLng
Source:
Listens to Events:
  • {google.maps.event:onclick event} WeatherStationMarkers[i]

ZoomStationA(null)

The function to set google.maps.setZoom() of the map (google.maps object) to the nearest location of Marker A
Parameters:
Name Type Description
null object
Source:
Fires:
  • (worker) window.setTimeout three woker threads are open, to create a smooth zoom effect...event: :)
Listens to Events:
  • {google.maps.marker} google.maps.event:marker click

ZoomStationB(null)

The function to set google.maps.setZoom() of the map (google.maps object) to the nearest location of Marker B
Parameters:
Name Type Description
null object
Source:
Fires:
  • (worker) window.setTimeout worker threads are open, to create a smooth zoom effect...event: :)
Listens to Events:
  • {google.maps.marker} google.maps.event:marker click

ZoomStationX(null)

The function to set google.maps.setZoom() of the map (google.maps object) to the nearest location of Marker B
Parameters:
Name Type Description
null object
Source:
Fires:
  • (worker) window.event:setTimeout()
Listens to Events:
  • {google.maps.marker} google.maps.event:marker click