diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-01-09 23:34:39 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-01-09 23:34:39 +1300 |
commit | 137c89bc9a870c4018f4c000494c89af9ceea67a (patch) | |
tree | ecee16a30a9c2742a97f715427b3b77ab66541aa /src/org/traccar/web/client/controller/MapController.java | |
parent | 803ddb7af2d2ad33a5beeded3bc53963b16454d0 (diff) | |
download | trackermap-web-137c89bc9a870c4018f4c000494c89af9ceea67a.tar.gz trackermap-web-137c89bc9a870c4018f4c000494c89af9ceea67a.tar.bz2 trackermap-web-137c89bc9a870c4018f4c000494c89af9ceea67a.zip |
Finished archive panel
Diffstat (limited to 'src/org/traccar/web/client/controller/MapController.java')
-rw-r--r-- | src/org/traccar/web/client/controller/MapController.java | 9 |
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) { |