aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/client/controller/MapController.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/web/client/controller/MapController.java')
-rw-r--r--src/org/traccar/web/client/controller/MapController.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/org/traccar/web/client/controller/MapController.java b/src/org/traccar/web/client/controller/MapController.java
index 5a53cf22..5ab5bbcf 100644
--- a/src/org/traccar/web/client/controller/MapController.java
+++ b/src/org/traccar/web/client/controller/MapController.java
@@ -1,9 +1,14 @@
package org.traccar.web.client.controller;
+import java.util.List;
+
+import org.traccar.web.client.Application;
import org.traccar.web.client.view.MapView;
import org.traccar.web.shared.model.Device;
+import org.traccar.web.shared.model.Position;
import com.google.gwt.user.client.Timer;
+import com.google.gwt.user.client.rpc.AsyncCallback;
import com.sencha.gxt.widget.core.client.ContentPanel;
public class MapController implements ContentController {
@@ -36,7 +41,7 @@ public class MapController implements ContentController {
public void update() {
updateTimer.cancel();
- /*Application.getDataService().getLatestPositions(new AsyncCallback<List<Position>>() {
+ Application.getDataService().getLatestPositions(new AsyncCallback<List<Position>>() {
@Override
public void onSuccess(List<Position> result) {
mapView.showPositions(result);
@@ -46,7 +51,7 @@ public class MapController implements ContentController {
public void onFailure(Throwable caught) {
updateTimer.schedule(UPDATE_INTERVAL);
}
- });*/
+ });
}
public void select(Device device) {