Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/FloodMap.java @ 5032:4bf3b89b38d5
Added attribution to osm wms background layer.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 20 Feb 2013 09:53:24 +0100 |
parents | fac54b8470d4 |
children | 80e8ef91223c |
comparison
equal
deleted
inserted
replaced
5031:9c529b9de6b5 | 5032:4bf3b89b38d5 |
---|---|
4 import org.gwtopenmaps.openlayers.client.LonLat; | 4 import org.gwtopenmaps.openlayers.client.LonLat; |
5 import org.gwtopenmaps.openlayers.client.Map; | 5 import org.gwtopenmaps.openlayers.client.Map; |
6 import org.gwtopenmaps.openlayers.client.MapOptions; | 6 import org.gwtopenmaps.openlayers.client.MapOptions; |
7 import org.gwtopenmaps.openlayers.client.MapWidget; | 7 import org.gwtopenmaps.openlayers.client.MapWidget; |
8 import org.gwtopenmaps.openlayers.client.Style; | 8 import org.gwtopenmaps.openlayers.client.Style; |
9 import org.gwtopenmaps.openlayers.client.control.Attribution; | |
9 import org.gwtopenmaps.openlayers.client.control.ScaleLine; | 10 import org.gwtopenmaps.openlayers.client.control.ScaleLine; |
10 import org.gwtopenmaps.openlayers.client.control.ScaleLineOptions; | 11 import org.gwtopenmaps.openlayers.client.control.ScaleLineOptions; |
11 import org.gwtopenmaps.openlayers.client.event.VectorFeatureAddedListener; | 12 import org.gwtopenmaps.openlayers.client.event.VectorFeatureAddedListener; |
12 import org.gwtopenmaps.openlayers.client.feature.VectorFeature; | 13 import org.gwtopenmaps.openlayers.client.feature.VectorFeature; |
13 import org.gwtopenmaps.openlayers.client.format.GeoJSON; | 14 import org.gwtopenmaps.openlayers.client.format.GeoJSON; |
54 mapWidget = new MapWidget( | 55 mapWidget = new MapWidget( |
55 Integer.toString(width - 4), | 56 Integer.toString(width - 4), |
56 Integer.toString(height), | 57 Integer.toString(height), |
57 opts); | 58 opts); |
58 map = mapWidget.getMap(); | 59 map = mapWidget.getMap(); |
60 map.addControl(new Attribution()); | |
59 } | 61 } |
60 | 62 |
61 | 63 |
62 @Override | 64 @Override |
63 public void onFeatureAdded(FeatureAddedEvent evt) { | 65 public void onFeatureAdded(FeatureAddedEvent evt) { |