Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPanel.java @ 849:d0098fc8c40b
Added translation for "cross_section".
flys-client/trunk@2618 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 31 Aug 2011 10:28:28 +0000 |
parents | 303a923d232b |
children | 9aa1a453eed5 |
line wrap: on
line source
package de.intevation.flys.client.client.ui.map; import com.google.gwt.user.client.ui.HorizontalPanel; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.layout.VLayout; import org.gwtopenmaps.openlayers.client.Bounds; import de.intevation.flys.client.shared.model.BBox; import de.intevation.flys.client.shared.model.MapInfo; public class MapPanel extends VLayout { protected MapToolbar toolbar; protected HorizontalPanel mapArea; protected FloodMap floodMap; protected boolean digitizeEnabled; public MapPanel(MapInfo mapInfo, boolean digitizeEnabled) { super(); BBox bbox = mapInfo.getBBox(); this.digitizeEnabled = digitizeEnabled; this.floodMap = new FloodMap( String.valueOf(mapInfo.getSrid()), new Bounds( bbox.getLowerX(), bbox.getLowerY(), bbox.getUpperX(), bbox.getUpperY())); initLayout(); } private void initLayout() { setWidth100(); setHeight100(); mapArea = new HorizontalPanel(); mapArea.setWidth("99%"); mapArea.setHeight("99%"); mapArea.add(floodMap.getMapWidget()); Canvas wrapper = new Canvas(); wrapper.setWidth100(); wrapper.setHeight100(); wrapper.addChild(mapArea); toolbar = new MapToolbar(floodMap, this, digitizeEnabled); addMember(toolbar); addMember(mapArea); } public FloodMap getFloodMap() { return floodMap; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :