Map properties can be configurated by passing a MapOptions object to the {@link MapWidget} constructor. See also the {@link Map} javadoc.
122123124125126127128129130131132
public MapView(MapHandler mapHandler) { this.mapHandler = mapHandler; contentPanel = new ContentPanel(); contentPanel.setHeadingText("Map"); MapOptions defaultMapOptions = new MapOptions(); mapWidget = new MapWidget("100%", "100%", defaultMapOptions); map = mapWidget.getMap(); Style style = new Style();
138139140141142143144145146147148149
}); GoogleMapBootstrapper.whenReady(new Runnable() { @Override public void run() { MapOptions defaultMapOptions = new MapOptions(); defaultMapOptions.setNumZoomLevels(16); final MapWidget mapWidget = new MapWidget("100%", "100%", defaultMapOptions); mapContainer.add(mapWidget); final Map map = mapWidget.getMap(); OSM osm = OSM.Mapnik("Mapnik");