Fix various line and area drawing bugs

The way and vertex being drawn get an `active` class,
which can be used to hide the vertex and set
`pointer-events: none` on the line.

Use the correct cursors when connecting (fixes #293).

Splice into existing lines at the correct index and
location (fixes #246).
This commit is contained in:
John Firebaugh
2013-01-07 21:46:05 -08:00
parent f8e2dfb9ce
commit e5d79d5270
5 changed files with 49 additions and 8 deletions
+22 -2
View File
@@ -313,10 +313,30 @@ text.tag-oneway {
cursor:url(../img/cursor-draw.png) 9 9, auto;
}
.mode-draw-line .way,
.mode-add-line .way {
cursor:url(../img/cursor-draw-connect-line.png) 9 9, auto;
}
.mode-draw-line .vertex,
.mode-draw-area .vertex,
.mode-add-line .vertex,
.mode-add-area .vertex {
cursor:url(../img/cursor-draw-connect-vertex.png) 9 9, auto;
}
.mode-add-point #map:hover {
cursor:url(../img/cursor-draw-point.png) 18 18, auto;
}
#map.finish-area:hover {
cursor:url(../img/cursor-draw-finish.png) 9 9, auto;
/* Modes */
.mode-draw-line .vertex.active,
.mode-draw-area .vertex.active {
display: none;
}
.mode-draw-line .way.active,
.mode-draw-area .way.active {
pointer-events: none;
}