HistoryTracking Class
Creating a Model for showing data on Live Tracking page. (Dynamic UI)
Constructor
HistoryTracking
()
Item Index
Methods
Events
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:
-
keyCodeStringInput key code.
-
sValueStringtext 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:
-
latStringLatitude
-
lngStringLongitude
setMapPath
(
-
jsonObject
Function used to draw path on map.
Parameters:
-
jsonObjectObjectRequired json object for drawing path on map.
showDeviceDetail
(
-
employee
Function used to show device detail on page.
Parameters:
-
employeeObjectChosen device object.
showEmployeeHistory
()
Function used to show device history on map.
Events
keyup
Bind textbox keyup event for searching.
