mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
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:
+22
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user