-function addBoxToMap(boxbounds) {
- box = new OpenLayers.Feature.Vector(
- boxbounds.toGeometry().transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject()) );
+function addBoxToMap(boxbounds) {
+ var geometry = boxbounds.toGeometry().transform(epsg4326, map.getProjectionObject());
+ var box = new OpenLayers.Feature.Vector(geometry, {}, {
+ strokeWidth: 2,
+ strokeColor: '#ee9900',
+ fillOpacity: 0
+ });