Alguém tem um código de exemplo de GWT OpenLayers? Pois no meu código o mapa não abre por completo, Se alguém puder me ajudar pelo meu código falando o que pode estar errado, também agradeço e muito.
public MapWidget addMap() {
MapOptions mapOptions = new MapOptions();
mapOptions.setNumZoomLevels(5);
// mapOptions.setProjection("EPSG:4326");
// mapOptions.setDisplayProjection(new Projection("EPSG:900913"));
mapOptions.setMaxResolutionToAuto();
// mapOptions.setMaxExtent(new Bounds(-180, -90, 180, 90));
// mapOptions.setMinScale(50000000);
// mapOptions.setMaxScale(10000000);
// mapOptions.setMaxResolution((float) 0.17578125);
// mapOptions.setUnits("degrees");
mapWidget = new MapWidget("400px", "400px", mapOptions);
GoogleOptions opt = new GoogleOptions();
opt.setType(GMapType.G_NORMAL_MAP);
opt.setIsBaseLayer(true);
Google google = new Google("map", opt);
mapWidget.getMap().addLayer(google);
mapWidget.getMap().addControl(new LayerSwitcher());
LonLat lonlat = new LonLat(6.95, 50.94);
lonlat.transform("EPSG:4326", "EPSG:900913");
mapWidget.getMap().setCenter(lonlat, 5);
mapWidget.getMap().zoomToMaxExtent();
mapWidget.getMap().updateSize();
return mapWidget;
}