mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 05:49:16 +02:00
Better unknown icon, select features after adding them.
This commit is contained in:
+4
-4
@@ -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 {
|
||||
|
||||
@@ -33,6 +33,10 @@ circle.teaser-point {
|
||||
stroke-width:8;
|
||||
}
|
||||
|
||||
image.marker {
|
||||
background:#fff;
|
||||
}
|
||||
|
||||
.stroke {
|
||||
stroke: #555;
|
||||
stroke-linecap:round;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -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));
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user