|
|
|
@ -39,7 +39,7 @@ function onRequest(context) {
|
|
|
|
|
viewObject.anchor = encodeURI(JSON.stringify(anchor));
|
|
|
|
|
viewObject.locationHistory = stringify(device.content.locationHistory);
|
|
|
|
|
viewObject.locationEnabled = (device.content.locationHistory.length !== 0);
|
|
|
|
|
viewObject.geoServicesEnabled = devicemgtProps.serverConfig.geoLocationConfiguration.isEnabled;
|
|
|
|
|
viewObject.geoServicesEnabled = devicemgtProps.serverConfig.geoLocationConfiguration.enabled;
|
|
|
|
|
return viewObject;
|
|
|
|
|
} else {
|
|
|
|
|
response.sendError(404, "Device Id " + deviceId + " of type " + deviceType + " cannot be found!");
|
|
|
|
|