API Docs for:
Show:

HistoryTracking Class

Creating a Model for showing data on Live Tracking page. (Dynamic UI)

Constructor

HistoryTracking

()

Methods

getAllEmployees

()

Getting all the employees list and populating the html on page.

initMap

()

Load google map on page.

initSearch

(
  • keyCode
  • sValue
)

Function used to trigger row click event.

Parameters:

  • keyCode String

    Input key code.

  • sValue String

    text to be search.

removeAllPath

()

Function used to remove all existing path from map.

setMapLocation

(
  • lat
  • lng
)

Function used to set map location to center.

Parameters:

  • lat String

    Latitude

  • lng String

    Longitude

setMapPath

(
  • jsonObject
)

Function used to draw path on map.

Parameters:

  • jsonObject Object

    Required json object for drawing path on map.

showDeviceDetail

(
  • employee
)

Function used to show device detail on page.

Parameters:

  • employee Object

    Chosen device object.

showEmployeeHistory

()

Function used to show device history on map.

Events

keyup

Bind textbox keyup event for searching.