From bf38ad5f706bb24bf226ccf4b8fcfe431f04fe92 Mon Sep 17 00:00:00 2001 From: kamidu Date: Thu, 19 Jan 2017 22:37:08 +0530 Subject: [PATCH] adding location history to map view --- .../devicemgt/app/modules/business-controllers/device.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/device.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/device.js index 6d70599360..56939377cf 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/device.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/device.js @@ -89,7 +89,11 @@ deviceModule = function () { var gpsReadingTimes = {}; gpsReading.lat = locationDataSet[i].latitude; gpsReading.lng = locationDataSet[i].longitude; - gpsReadingTimes.time = locationDataSet[i].timeStamp; + if (deviceType == "android") { + gpsReadingTimes.time = locationDataSet[i].timeStamp; + } else { + gpsReadingTimes.time = locationDataSet[i].meta_timestamp; + } locationData.push(gpsReading); locationTimeData.push(gpsReadingTimes); }