| 15 | | === Selecting single objects === |
| 16 | | **Left-click** to select the node [[Image(source:trunk/images/cursor/modifier/select_node.png)]] or way [[Image(source:trunk/images/cursor/modifier/select_way.png)]] nearest to the pointer. The node or way that would be selected is highlighted as a hint. |
| | 19 | === Select the single object === #Selectsingle |
| | 20 | The cursor changes depending on the object. In the table below, the icon on the top is the default, the icon(s) in the middle for a [[JOSMImage(data/node)]] node and the icon(s) on the bottom for a [[JOSMImage(data/way)]] way. |
| | 21 | ||= **Name** =||= **Activation steps** =||= **Cursor** =||= **Description** =|| |
| | 22 | || **Select** || **`Left mouse click`** || [[JOSMImage(cursor/modifier/selection)]] \\ [[JOSMImage(cursor/modifier/select_node)]] \\ [[JOSMImage(cursor/modifier/select_way)]] || Select a node or way under mouse cursor. More precisely, ''previously selected object(s)'' will be **replaced** with new object and displayed in [wikitr:/Help/Dialog/SelectionList selection list]. || |
| | 23 | || **Add** || **`Shift + Left mouse click`** || [[JOSMImage(cursor/modifier/select_add)]] \\ [[JOSMImage(cursor/modifier/select_node_add)]] \\ [[JOSMImage(cursor/modifier/select_way_add)]] || Add a node or way under mouse cursor to the selection. || |
| | 24 | || **Toggle** || **`Ctrl + Left mouse click`** (Windows/Linux) \\ **`Cmd + Left mouse click`** (Mac) || [[JOSMImage(cursor/modifier/select_remove)]] \\ [[JOSMImage(cursor/modifier/select_node_add)]] [[JOSMImage(cursor/modifier/select_node_remove)]] \\ [[JOSMImage(cursor/modifier/select_way_add)]] [[JOSMImage(cursor/modifier/select_way_remove)]] || The selection of a node or way will be **toggled**. More precisely, previously unselected object will be added to the selection and previously selected object will be removed from the selection. || |
| | 25 | || **Select surrounding** || **`Double left mouse click`** || ''default'' || Select the surrounding object ([[JOSMImage(data/closedway)]] [wikitr:/Help/Concepts/Object#Areas area] or [[JOSMImage(data/multipolygon)]] [wikitr:/Help/Concepts/Object#Relations multipolygon]). \\ \\ Can be used in combination with `Shift` or `Ctrl` but `Ctrl` only removes the surrounding object from the selection in this use case. || |
| 43 | | If you have more than one [Concepts/Object object] selected, and just want to unselect one particular **object**, then click it with the 'Select tool' while holding down **{{{Ctrl}}}** [[Image(source:trunk/images/cursor/modifier/select_node_remove.png)]] [[Image(source:trunk/images/cursor/modifier/select_way_remove.png)]]. |
| | 51 | Actions: |
| | 52 | * Release the `Left mouse button` - to select all [wikitr:/Help/Concepts/Object objects] within the rectangle, more precisely: |
| | 53 | * all nodes within the rectangle and |
| | 54 | * any ways which are **entirely within the rectangle** will be selected |
| | 55 | * ''previously selected object(s)'' will be **replaced with new object(s)** and displayed in [wikitr:/Help/Dialog/SelectionList selection list panel] |
| | 56 | * Hold the `Right mouse button` when releasing the left mouse button - cancel the selection rectangle |
| 51 | | You can move selected [Concepts/Object objects] in the main window, by moving the mouse cursor close to one of the selected [Concepts/Object objects] and then left clicking while dragging the mouse. |
| 52 | | * If the mouse cursor is near a [[Image(source:trunk/images/data/node.png)]] [Concepts/Object#Nodes node] when performing the move action, then just this **node** is moved. |
| 53 | | * If you move a [[Image(source:trunk/images/data/node.png)]] [Concepts/Object#Nodes node] very close to another node and hold **{{{Ctrl}}}** when releasing the left mouse button the moved **node** will be merged with the other **node**. |
| 54 | | * If the mouse cursor is near a [[Image(source:trunk/images/data/way.png)]] [Concepts/Object#Ways way] when performing the move action, then this **way**, together with its associated **nodes**, is moved. |
| | 66 | ||= **Name** =||= **Key** =||= **Cursor** =||= **Description** =|| |
| | 67 | || **Extended way selection** || **`Alt`** || ''default'' || In addition to the normal behavior, select all ways that have at least one node within selection rectangle || |
| | 68 | || **Add** || **`Shift`** || [[JOSMImage(cursor/modifier/select_add)]] || The [wikitr:/Help/Concepts/Object objects] are added to the current selection || |
| | 69 | || **Unselect** || **`Ctrl`** (Windows/Linux) or **`Cmd`** (Mac) || [[JOSMImage(cursor/modifier/select_remove)]] || Remove all [wikitr:/Help/Concepts/Object objects] in current rectangle from selection (if there were any). \\Nothing is added to the current selection. || |
| 69 | | == Cursors == |
| 70 | | The cursor changes to indicate what action will occur: |
| 71 | | * [[Image(source:trunk/images/cursor/modifier/select_node.png)]]: a node will be selected |
| 72 | | * [[Image(source:trunk/images/cursor/modifier/select_node_add.png)]]: a node will be added to the current selection |
| 73 | | * [[Image(source:trunk/images/cursor/modifier/select_node_remove.png)]]: a node will be removed from the current selection |
| 74 | | * [[Image(source:trunk/images/cursor/modifier/select_way.png)]]: a way will be selected |
| 75 | | * [[Image(source:trunk/images/cursor/modifier/select_way_add.png)]]: a way will be added to the current selection |
| 76 | | * [[Image(source:trunk/images/cursor/modifier/select_way_remove.png)]]: a way will be removed from the current selection |
| 77 | | * [[Image(source:trunk/images/cursor/modifier/selection.png)]]: objects within the rectangle will be selected |
| 78 | | * [[Image(source:trunk/images/cursor/modifier/select_add.png)]]: objects within the rectangle will added to the current selection |
| 79 | | * [[Image(source:trunk/images/cursor/modifier/select_remove.png)]]: objects within the rectangle will removed from the current selection |
| 80 | | * [[Image(source:trunk/images/cursor/modifier/joinnode.png)]]: the selected node will be merged with the node near the pointer |
| 81 | | * [[Image(source:trunk/images/cursor/rotate.png)]]: [#Rotate rotate] the selected objects |
| 82 | | * [[Image(source:trunk/images/cursor/scale.png)]]: [#Scale scale] the selected objects |
| | 86 | [[JOSMImage(mapmode/improvewayaccuracy)]] [wikitr:/Help/Action/ImproveWayAccuracy Improve Way Accuracy] - over time many mappers switch to this tools instead of manually selecting-and-moving each node |
| 84 | | == Advanced details == |
| 85 | | Whether a mouse action is considered a selection or a move depends on some settings, to prevent objects from being moved when a simple selection was intended; this is particularly important on devices such as tablets that are touch sensitive or use a stylus. If the pointer is moved between pressing and releasing the left mouse button, the object will only be moved if the pointer moved more than 5 pixels or was held down for more than 0.2 seconds, otherwise the object will simply be selected. These two settings can be changed with the [Help/Preferences/Advanced advanced preferences] {{{edit.initial-move-threshold}}} (pixels) and {{{edit.initial-move-delay}}} (milliseconds). |
| | 88 | === Aligned move of selection === |
| | 89 | If the last-added way in the selection consists of exactly two nodes, then the whole move can be aligned to its direction by pressing and holding `Ctrl` (Windows/Linux) or `Cmd` (Mac) while dragging. |
| | 90 | |
| | 91 | After mousebutton-down you can toggle `Ctrl` (resp. `Cmd`) arbitrarily often to switch between free and aligned move. The constrain offers four directions defined by the last-selected way (move within its direction, against it, and 90° rotations of these; vaguely comparable to the cardinal directions of a compass). To end an aligned move, it is recommended to release the mouse button before keyboard modifier key. |
| | 92 | |
| | 93 | === Drag a Midpoint creates New Node === |
| | 94 | Activation steps: ''clicking and dragging'' a yellow cross in the middle of a segment; at any point in time, there N mid points to drag where N is number of segments. |
| | 95 | |
| | 96 | Action: will insert a new node at the location of the cross |
| | 97 | |
| | 98 | == Merge nodes == #Mergenodes |
| | 99 | Cursor: [[JOSMImage(cursor/modifier/joinnode)]] |
| | 100 | |
| | 101 | Activation steps: hold down `Ctrl` (Windows/Linux) or `Cmd` (Mac) and drag one selected node onto an unselected one |
| | 102 | |
| | 103 | Action: merge selected nodes with another; internally it will simply use [wikitr:/Help/Action/MergeNodes Merge Nodes] - please read more details there. |
| | 104 | |
| | 105 | == Rotate == #Rotate |
| | 106 | Cursor: [[JOSMImage(cursor/rotate)]] |
| | 107 | |
| | 108 | Activation steps: `Shift + Ctrl + left mouse button` (Windows/Linux) or `Shift + Cmd + left mouse button` (Mac) and moving mouse up and down |
| | 109 | |
| | 110 | Action: rotate selected nodes and ways around their geometrical center. |
| | 111 | |
| | 112 | The rotation angle is displayed in the [wikitr:/Help/StatusBar Status Bar]. |
| | 113 | |
| | 114 | Rotation at defined angles is possible via the [osmwiki:JOSM/Plugins/ShapeTools ShapeTools Plugin]. |
| | 115 | |
| | 116 | == Scale == #Scale |
| | 117 | Cursor: [[JOSMImage(cursor/scale)]] |
| | 118 | |
| | 119 | Activation steps: `Ctrl + Alt + left mouse button` (Windows/Linux) or `Cmd + Alt + left mouse button` (Mac) and moving mouse up and down |
| | 120 | |
| | 121 | Action: |
| | 122 | * scale selected nodes and ways around their geometrical center. Proportions will be kept. |
| | 123 | * if used only on 2 nodes, it will move them from or to their mid point (depending on mouse move) |
| | 124 | |
| | 125 | The scaling factor is displayed in the [wikitr:/Help/StatusBar Status Bar]. |
| | 126 | |
| | 127 | == Advanced details ==#Advanceddetails |
| | 128 | Whether a mouse action is considered a selection or a move depends on some settings, to prevent objects from being moved when a simple selection was intended; this is particularly important on devices such as tablets that are touch sensitive or use a stylus. |
| | 129 | If the pointer is moved between pressing and releasing the left mouse button, the object will only be moved if the pointer moved more than 5 pixels or was held down for more than 0.2 seconds, otherwise the object will simply be selected. |
| | 130 | These two settings can be changed with the [wikitr:/Help/Preferences/Advanced advanced preferences] `edit.initial-move-threshold` (pixels) and `edit.initial-move-delay` (milliseconds). |