point2List.add(point2List.get(0));
LinearRing linearRing = new LinearRing(point2List);
List<LinearRing> ringList = new ArrayList<LinearRing>();
ringList.add(linearRing);
Vector polygonFeature = new Vector(new Polygon(ringList));
map.addLayer(vectorLayer);
map.setCenter(new LonLat(point.getX(), point.getY()), 5);
vectorLayer.addFeatures(Arrays.asList(pointFeature, pointFeature3,
pointFeature2, lineFeature, polygonFeature));