map.addLayer(new Text("text", toMap(pair("location", Executions.getCurrent().getContextPath() + "/data/textfile.txt"))));
Markers markers = new Markers("Markers");
map.addLayer(markers);
Size size = new Size(21,25);
Pixel offset = new Pixel(-(size.getWidth()/2), -size.getHeight());
Icon icon = new Icon("http://www.openlayers.org/dev/img/marker.png",size,offset);
markers.addMarker(new Marker(new LonLat(0,0),icon));
Icon halfIcon = (Icon) icon.clone();
markers.addMarker(new Marker(new LonLat(0,45),halfIcon));