[[TranslatedPages(outdated=Missing description for "Left mouse click will add nodes on overlapping ways")]] [[PageOutline(2-5)]] = Draw Nodes = [[JOSMImage(mapmode/node/autonode,link=,48,middle,margin-right=20)]] ''Keyboard shortcut:'' **`A`** — is one of the [wikitr:/Help/Menu/Mode#Workingmode working modes] This mode behaves differently depending on how you use it. == Try it yourself == Open [attachment:josmwiki-actiondraw.osm josmwiki-actiondraw.osm] using menu item [wikitr:/Help/Menu/File "File > Open Location ..."] (`Ctrl+L`). == Standard Mode ==#StandardMode === Create a node === When selection is empty, If you click on a blank area [wikitr:/Help/MapView of the screen] you add a new [[JOSMImage(data/node)]] [wikitr:/Help/Concepts/Object#Nodes node] independent of any existing [[JOSMImage(data/way)]] [wikitr:/Help/Concepts/Object#Ways way]: [[Image(ex1-empty-selection-click-on-blank.gif,link=)]] === Click on node will stop mode === To stop drawing mode, click on selected object (a node) again. This can be done so quickly and some users confuse it with double click. No, you don't need double click: [[Image(ex1-select-deselect-without-double-click.gif,link=)]] === Draw a segment === With empty selection, if you select one node and then click on a blank area of the screen you add a new node and create a new way (with one [wikitr:/Help/Concepts/Object#Segment segment]): ''Note: click on second node in segment used to stop drawing mode'' [[Image(ex1-selected-node-draw-a-segment.gif​,link=)]] === Click on node will start new segment similar to empty === * If you are currently not drawing, then you can select node with a left mouse click * If the node is an end node of a line then also the line gets selected (leaf node + way in selection); this will be explained in [#Continuousdrawing Continuous drawing (below)] In demo below, left mouse click was used to select first drawing mode, then clicked 6 times at nodes: [[Image(ex1-click-to-select-a-node-or-exit-drawing-on-leaf-node.gif​,link=)]] === Common nodes ===#Commonnodes This is often necessary when you edit highways or streams of the river. ==== Common nodes with another way ==== #Commonnodeswithanotherway If a node is previously selected and you click between two nodes in an existing way the new node is added on the existing way, between two existing nodes, and a way is drawn between the previously selected node and the ''new node''. The ''new node'' will belong to both ways. It's often referred to as "common node". Simplest scenario: [[Image(ex1-common-nodes-with-another-way.gif,link=)]] ==== Common nodes are bigger ==== It help you distinguish them from other nodes. First drawn way have a common nodes with old way and second drawn way has no common nodes (details [#Ctrlmodifier how second way was drawn will be explained below]): [[Image(ex2-common-nodes-wtih-other-way-and-without-common-nodes.gif​,link=)]] ==== Left mouse click will add nodes on overlapping ways ==== If two ways overlap, single mouse click will create a common point. (stub) === Double click stops drawing on leaf node === Drawing stops, if you make a double click when creating the last node. This way you don't have to click on last node, but you have to know about this special case: [[Image(ex1-double-click.gif,link=)]] === Continuous drawing ===#Continuousdrawing Previous way will be continued if both are true: 1. nothing was selected OR way in question was selected 2. draw mode applied to leaf nodes If draw mode applied to non-leaf nodes, it will create a new way instead of continuing old one: [[Image(ex1-will-continue-way-on-leaf-nodes-and-wont-at-middle.gif​,link=)]] ==== Left click on drawn way will stop continuous drawing ==== It doesn't matter if you click on nodes or create a new node in a way: [[Image(ex1-click-on-self-when-drawing-will-deselect.gif,link=)]] === Snaps to existing nodes or ways === Note how nodes and way change color to yellow when hovering over them: [[Image(ex1-snapping.gif,link=)]] If you click near an **existing node** it draws a "segment" between what was previously selected and the existing node, and this allows you to re-use existing nodes to make a new way / area (so that certain nodes and "segments" can be reused in more than one way / area): [[Image(ex2-snapping.gif,link=)]] == Angle snapping ==#Anglesnapping Often necessary when editing barriers, fences, walls, non-trivial buildings, indoor features and other man-made objects, covered under [wikitr:/Help/Action/Draw/AngleSnap Angle Snapping]. == Modifiers == === `Alt` modifier ===#Altmodifier [[Image(ex1-alt.gif,link=)]] If you hold down the `Alt` key when using this mode it starts a new way, rather than continuing an existing way. === `Shift` modifier ===#Shiftmodifier [[Image(ex1-shift.gif,link=)]] If you hold down the `Shift` key while using this mode, it disables the "auto-connect" feature. So segments will not be drawn between new nodes. === `Ctrl` modifier ===#Ctrlmodifier [[Image(ex1-ctrl.gif,link=)]] If you hold down the `Ctrl` key whilst using this mode, it disables the snapping to an existing way, allowing you to draw nodes close to, but not part of an existing way. === Combination of modifiers === You may optionally use one or many modifiers at once to get the desired result. Here is `Ctrl` modifier used with `Shift` at once: [[Image(ex1-ctrl+shift.gif,link=)]] == Auto screen center mode ==#ScreenCenterMode Press and release `Ctrl+Shift+F` before drawing to toggle [wikitr:/Help/Action/ViewportFollowing Viewport Following]. If enabled, the screen will automatically center on each newly drawn node. == See also == * [[JOSMImage(addnode)]] [wikitr:/Help/Action/AddNode Add node…] * [[JOSMImage(mapmode/improvewayaccuracy)]] [wikitr:/Help/Action/ImproveWayAccuracy Improve Way Accuracy mode] (`W`) ---- Back to [wikitr:/Help/Menu/Mode Mode menu] \\ Back to [wikitr:/Help Main Help]