Hide midpoints when drawing (no snapping)

This commit is contained in:
Ansis Brammanis
2013-02-04 17:16:14 -05:00
parent 1b70a68214
commit 3417a1639c
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -117,6 +117,14 @@ g.vertex.selected .shadow {
/* midpoints */
.mode-draw-area g.midpoint,
.mode-draw-line g.midpoint,
.mode-add-area g.midpoint,
.mode-add-line g.midpoint,
.mode-add-point g.midpoint {
display: none;
}
g.midpoint .fill {
fill:#aaa;
}
+1 -1
View File
@@ -28,7 +28,7 @@ iD.behavior.DrawWay = function(context, wayId, index, mode, baseGraph) {
function move(datum) {
var loc = context.map().mouseCoordinates();
if (datum.type === 'node' || datum.type === 'midpoint') {
if (datum.type === 'node') {
loc = datum.loc;
} else if (datum.type === 'way') {
loc = iD.geo.chooseIndex(datum, d3.mouse(context.surface().node()), context).loc;