+ var geometry;
+ if (outline) {
+ vertices = boxbounds.toGeometry().getVertices();
+ vertices.push(new OpenLayers.Geometry.Point(vertices[0].x, vertices[0].y));
+ geometry = new OpenLayers.Geometry.LineString(vertices).transform(epsg4326, map.getProjectionObject());
+ } else {
+ geometry = boxbounds.toGeometry().transform(epsg4326, map.getProjectionObject());
+ }