[josm-dev] Drawing adjacent areas

Thomas Wood grand.edgemaster at gmail.com
Sat Oct 13 00:05:47 BST 2007


On 10/12/07, Frederik Ramm <frederik at remote.org> wrote:
> Hi,
>
> > 1. How to create adjacent areas which share certain nodes? The only way
> > I see is to draw an area, then break it into several ways, then
> > duplicate those ways and connect them into two or more areas. This is
> > pretty cumbersome work. I was hoping the new OSM API would help make
> > this more user-friendly.
>
> > 2. Drawing nodes close to the existing ways makes them snap to those
> > ways even if you did not intend this to happen.
>
> With the latest version, I have added some "modifier keys". I am not
> entirely happy with the way I did it because it was more or less
> random ("need another functionality, let's see, "alt" key not used
> yet, so use that..."). Maybe we should have a more generic approach to
> this "modifier key" business, giving users more choice in how they
> want their actions to be understood - e.g. some might want to use the
> shift key to disable a specific function, some might want that
> function to be off by default and shift enabling it; some might want
> to double-click or have a static mode switcher...
>
> Back to my topic. The following is new:
>
> * In the "add node" mode, you can now use the SHIFT modifier if you
>   do not want to auto-connect from the selected node. So:
>
>   click-click-click-SHIFT+click-click-click
>
>   makes two ways with three nodes each.
>
> * Also in the "add node" mode, use CTRL if you do not want to re-use
>   an existing node or place a node into an existing segment (that's
>   the "I want to put this post box next to the road, not on the road"
>   case).
>
> * In "delete" mode, if you click on a way without modifiers, the way
>   is deleted but its nodes are left in place. If you ALT-click, then
>   the nodes are deleted as well (unless they are tagged[*] or used by
>   something else). If you SHIFT-click, the way segment you clicked is
>   cut out of the way, and the way split in two.
>
>   [*] JOSM considers "tagged" anything that has more than a "source",
>   "note", and "created_by" tag. "tagged" nodes are displayed slightly
>   differently in the plain interface (this is not true for mappaint).
>
> Some things still to do, notably the "delete mode" vs "delete action"
> thing, and I'm sure you will come up with a lot more ;-)
>
> Bye
> Frederik
>

I've just been trying out these key modifiers and they seem to work well.

One thing I'm probably missing - is there any way to start a new way
from a node?

The issue I had is that a node had been used twice by a way, passing
through that node and also terminating on it. I wanted to start a new
way from that node.
In the end, I worked around the issue by starting from the other end
of the way I wanted to draw.

-- 
Regards,
Thomas Wood
(Edgemaster)




More information about the josm-dev mailing list