Skip to content

Instantly share code, notes, and snippets.

@jothirnadh
Forked from Andygol/josm tips&tricks.md
Last active November 6, 2022 07:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jothirnadh/00352fff58ce2628cc4f to your computer and use it in GitHub Desktop.
Save jothirnadh/00352fff58ce2628cc4f to your computer and use it in GitHub Desktop.

JOSM Tips&tricks

Running JOSM

Supply parameters

  • If you need to supply parameters (e.g. -Xmx2048M to run with more Java memory) you can use the MacOS "Terminal":

    java -Xmx512M -jar FOLDER/josm-latest.jar

    This would allow JOSM to use up to 512 MB of RAM (memory). The java option "-Xmx512M" set's the maximum Java heap size to 512 MB. You are free to replace -Xmx512M by any number appropriate for your system (e.g. -Xmx2048M or even more).

  • If you are using the Mac OS X Package and want to alter a startup parameter permanently, then you will need to alter the Info.plist file within the /Applications/JOSM.app/Contents directory. For example, to increase the maximum Java heap size from 512MB to 2048MB, either using the terminal or XCode, in the JVMOptions key alter the entry -Xmx512m to -Xmx2048m.

    desktop - atom 2015-12-14 12-26-25

  • Using Java Control Panel

    java runtime environment settings 2015-12-14 12-06-31

Must to have plugins

download from osm along selected ways 2015-12-14 22-15-15

Other useful plugins

select imagery layer 2015-12-14 22-50-33

Shortcuts

https://josm.openstreetmap.de/wiki/Shortcuts

main hotkey Activation steps Descrition
A + hold Alt it starts a new way, rather than continuing an existing way
A + hold Shift it will create isolated nodes
A + hold Ctrl it will disable "snapping" to existing ways and nodes
A toggled by A It will enable "angle-snapping" mode
X toggled by X Dual aligment (this mode uses two reference segments (neigbors of the original segment) and moves the nodes each according to its own reference segment)

⇧⌘F - toggle Viewport Following

See also

JOSM - customizing for comfortable work - https://gist.github.com/Andygol/8b4ade1143a04fa3ea41

Angle snapping - https://gist.github.com/Andygol/6bd69e30c2f9bf5f72a7

josm-angle-snaping_en

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment