Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java @ 1365:4c65c5b60a86
First step of refactoring the map creation - implemented a MapOutputService.
flys-client/trunk@3066 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 25 Oct 2011 10:29:37 +0000 |
parents | 9981ba2ee13a |
children | 9085cffbb7c4 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java Mon Oct 24 13:35:30 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java Tue Oct 25 10:29:37 2011 +0000 @@ -43,6 +43,8 @@ import de.intevation.flys.client.client.Config; import de.intevation.flys.client.client.services.StepForwardService; import de.intevation.flys.client.client.services.StepForwardServiceAsync; +import de.intevation.flys.client.client.services.MapOutputService; +import de.intevation.flys.client.client.services.MapOutputServiceAsync; import de.intevation.flys.client.client.event.RedrawRequestHandler; import de.intevation.flys.client.client.event.RedrawRequestEvent; import de.intevation.flys.client.client.ui.CollectionView; @@ -62,6 +64,9 @@ protected StepForwardServiceAsync feedService = GWT.create(StepForwardService.class); + protected MapOutputServiceAsync mapService = + GWT.create(MapOutputService.class); + protected MapToolbar controlPanel; protected ThemePanel themePanel; protected Widget mapPanel; @@ -79,6 +84,18 @@ floodMap = new FloodMap(getSrid(), getMaxExtent()); + mapService.doOut(collection, "http://localhost:8181", + new AsyncCallback<Void>() { + public void onFailure(Throwable caught) { + GWT.log("MAP ERROR: " + caught.getMessage()); + } + + public void onSuccess(Void v) { + GWT.log("MAP SUCCESS!"); + } + } + ); + initLayout(); initLayers(); initBarriers();