Hi,
First of all I’m very new to the concept of widgets. I’ve created a new maven module in my project with the vaadin arch-type clean and vaadin 6.8.7. Now I had a look at the example at http://code.google.com/p/vopenlayers/source/browse/#svn%2Fexampleapp and tried a few steps on my own: here is my DemoApplication.java:
public void init() {
setMainWindow(mainWindow);
setTheme("berlinsuchtdich");
OpenLayersMap map = new OpenLayersMap();
map.setImmediate(true); // update extent and zoom to server as they
OpenStreetMapLayer osm = new OpenStreetMapLayer();
map.setCenter(52.5233, 13.4127); // this should be berlin
map.setZoom(5);
map.setSizeFull();
map.addLayer(osm);
layout.setSizeFull();
layout.addComponent(map);
layout.setExpandRatio(map, 1);
}
}
The DemoApplicationWidgetSet.gwt.xml:
<module>
<inherits name="org.vaadin.vol.VolWidgetsetWithHostedScript" />
<inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" />
</module>
I’ve run mvn vaadin:update-widgetset and compile the widget set successfully. Now if i go to http://localhost:8080/demo all I see is a grey page with the zoom buttons. If i click on the zoom in button the world map is loaded at a minimum zoom level. Also, If i would add the GoogleStreetMapLayer, only the OpenStreetMap layer is available.
What am I doing wrong?