Merge branch 'master' into openstreetbugs
This commit is contained in:
commit
e7cd90f4b4
62 changed files with 3462 additions and 161 deletions
|
@ -149,7 +149,7 @@ function addObjectToMap(url, zoom, callback) {
|
|||
layer.loadGML();
|
||||
}
|
||||
|
||||
function addBoxToMap(boxbounds) {
|
||||
function addBoxToMap(boxbounds, id, outline) {
|
||||
if (!vectors) {
|
||||
// Be aware that IE requires Vector layers be initialised on page load, and not under deferred script conditions
|
||||
vectors = new OpenLayers.Layer.Vector("Boxes", {
|
||||
|
@ -157,12 +157,20 @@ function addBoxToMap(boxbounds) {
|
|||
});
|
||||
map.addLayer(vectors);
|
||||
}
|
||||
var geometry = boxbounds.toGeometry().transform(epsg4326, map.getProjectionObject());
|
||||
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());
|
||||
}
|
||||
var box = new OpenLayers.Feature.Vector(geometry, {}, {
|
||||
strokeWidth: 2,
|
||||
strokeColor: '#ee9900',
|
||||
fillOpacity: 0
|
||||
});
|
||||
box.fid = id;
|
||||
|
||||
vectors.addFeatures(box);
|
||||
|
||||
|
|
|
@ -591,12 +591,23 @@ hr {
|
|||
|
||||
/* Rules for the changeset list shown by the history tab etc */
|
||||
|
||||
#changeset_list, #keyvalue {
|
||||
width: 100%;
|
||||
#changeset_list_container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#changeset_list {
|
||||
width: 50%;
|
||||
font-size: small;
|
||||
text-align: left;
|
||||
border-collapse: collapse;
|
||||
border-width: 0px;
|
||||
margin-top: 1px;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
#changeset_list td {
|
||||
vertical-align: top;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
#changeset_list .date {
|
||||
|
@ -611,8 +622,20 @@ hr {
|
|||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#changeset_list.th {
|
||||
font-weight: bold;
|
||||
#changeset_list .selected {
|
||||
background-color: rgb(255, 255, 160);
|
||||
background-color: rgba(255, 255, 85, 0.5);
|
||||
}
|
||||
|
||||
#changeset_list_map {
|
||||
float: right;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
bottom: 0px;
|
||||
right: 0px;
|
||||
width: 49%;
|
||||
min-height: 400px;
|
||||
border: solid 1px black;
|
||||
}
|
||||
|
||||
/* Rules for the data browser */
|
||||
|
@ -624,6 +647,10 @@ hr {
|
|||
margin-left: 10px;
|
||||
}
|
||||
|
||||
table.browse_details th {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#browse_map {
|
||||
float: right;
|
||||
width: 250px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue