API Docs for:
Show:

LiveTracking Class

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

Constructor

LiveTracking

()

Methods

addMultipleDeviceToMap

(
  • jsonObject
)

Function used to add/show multiple devices on map.

Parameters:

  • jsonObject Object

    Required 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:

  • id String

    HTML element id where map is loaded.

initSearch

(
  • keyCode
  • sValue
)

Function used to trigger row click event.

Parameters:

  • keyCode String

    Input key code.

  • sValue String

    text to be search.

loadCityChoices

(
  • state
  • city
)

To populate city combobox.

Parameters:

  • state String

    state-name

  • city String

    city-name

loadCityChoices

(
  • stateId
)

To populate city combobox.

Parameters:

  • stateId String

    id of state

loadStateChoices

()

To populate state combobox.

moveUnitPoints

(
  • jsonObject
)

Function used to move device from one location to another on map.

Parameters:

  • jsonObject Object

    Required 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:

  • unitID String

    ID of a marker

setMapLocationCenter

(
  • id
)

Function used to set device location to center on map.

Parameters:

  • id String

    DeviceId

showDeviceDetail

(
  • employee
)

Function used to show device detail on page.

Parameters:

  • employee Object

    Chosen device object.

showHiddenUnit

(
  • unitOptions
)

Function used to remove all existing path from map.

Parameters:

  • unitOptions Object

    options for a marker

sortJSON

()

Function used to sort the particular column asc/desc order

triggerRow

(
  • currObj
)

Function used to trigger row click event.

Parameters:

  • currObj String

    HTML element id.

updateInfoWindow

(
  • alias
  • description
)

Function used to dynamically update info window on map.

Parameters:

  • alias String

    Device alias.

  • description String

    Updated info description.

Events

keyup

Bind textbox keyup event for searching.