LiveTracking Class
Creating a Model for showing data on Live Tracking page. (Dynamic UI)
Constructor
LiveTracking
()
Item Index
Methods
Events
Methods
addMultipleDeviceToMap
-
jsonObject
Function used to add/show multiple devices on map.
Parameters:
-
jsonObjectObjectRequired json object for adding device on map.
checkConnection
()
Function used to check the connection of device and update device status accordingly.
getAllEmployees
()
Getting all the employees list and populating the html on page.
getUpdatedLocation
()
Function used to get updated location of devices.
initMap
-
id
Load google map on page.
Parameters:
-
idStringHTML element id where map is loaded.
initSearch
-
keyCode -
sValue
Function used to trigger row click event.
Parameters:
-
keyCodeStringInput key code.
-
sValueStringtext to be search.
loadCityChoices
-
state -
city
To populate city combobox.
Parameters:
-
stateStringstate-name
-
cityStringcity-name
loadCityChoices
-
stateId
To populate city combobox.
Parameters:
-
stateIdStringid of state
loadStateChoices
()
To populate state combobox.
moveUnitPoints
-
jsonObject
Function used to move device from one location to another on map.
Parameters:
-
jsonObjectObjectRequired json object for adding device on map.
removeAllUnit
()
Function used to remove all existing markers from map.
removeUnit
-
unitID
Function used to remove a particular path from map based on a ID.
Parameters:
-
unitIDStringID of a marker
setMapLocationCenter
-
id
Function used to set device location to center on map.
Parameters:
-
idStringDeviceId
showDeviceDetail
-
employee
Function used to show device detail on page.
Parameters:
-
employeeObjectChosen device object.
showHiddenUnit
-
unitOptions
Function used to remove all existing path from map.
Parameters:
-
unitOptionsObjectoptions for a marker
sortJSON
()
Function used to sort the particular column asc/desc order
triggerRow
-
currObj
Function used to trigger row click event.
Parameters:
-
currObjStringHTML element id.
updateInfoWindow
-
alias -
description
Function used to dynamically update info window on map.
Parameters:
-
aliasStringDevice alias.
-
descriptionStringUpdated info description.
Events
keyup
Bind textbox keyup event for searching.
