Better unknown icon, select features after adding them.

This commit is contained in:
Tom MacWright
2012-11-12 18:04:10 -05:00
parent 335fd49cec
commit f8784b746f
5 changed files with 14 additions and 5 deletions
+4 -4
View File
@@ -164,16 +164,16 @@ button small {
.inspector-wrap {
position:absolute;
top:40px;
right:00px;
right:0px;
overflow:auto;
padding:10px;
background:#222222;
background:#eee;
border-top:1px solid #000;
color:#fff;
color:#222;
}
.inspector-wrap h2 {
font: normal 20px/20px 'Helvetica';
font: bold 20px/20px 'Helvetica';
}
.inspector-wrap a.permalink {
+4
View File
@@ -33,6 +33,10 @@ circle.teaser-point {
stroke-width:8;
}
image.marker {
background:#fff;
}
.stroke {
stroke: #555;
stroke-linecap:round;
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

+4 -1
View File
@@ -39,7 +39,10 @@ iD.actions.AddPlace = {
surface.on('click.addplace', function() {
var ll = this.map.projection.invert(
d3.mouse(surface.node()));
this.map.operate(iD.operations.addNode(iD.actions._node(ll)));
var n = iD.actions._node(ll);
n._poi = true;
this.map.operate(iD.operations.addNode(n));
this.map.selectClick(n);
this.exit();
}.bind(this));
+2
View File
@@ -345,6 +345,8 @@ iD.Map = function(elem) {
map.download = download;
map.getExtent = getExtent;
map.selectClick = selectClick;
map.setCenter = setCenter;
map.setCentre = setCenter;
map.getCentre = getCenter;