Tidy up new box code.

This commit is contained in:
Tom Hughes 2009-04-08 23:14:50 +00:00
parent fdd5d2d779
commit 7daa4f5d2b

View file

@ -119,15 +119,15 @@ function addMarkerToMap(position, icon, description) {
}
function addBoxToMap(boxbounds) {
box = new OpenLayers.Feature.Vector(
boxbounds.toGeometry().transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject()) );
var geometry = boxbounds.toGeometry().transform(epsg4326, map.getProjectionObject());
var box = new OpenLayers.Feature.Vector(geometry, {}, {
strokeWidth: 3,
strokeColor: '#0000ff',
fillOpacity: 0,
});
box.style = {
'strokeWidth': 3,
'strokeColor': '#0000ff',
'fillOpacity': 0,
};
vectors.addFeatures(box);
return box;
}