Hi !

Is possible to make preset button to be filled with my values and pin on toolbar ? Expecting that values will be prefilled next time when button hit.

asked 13 Jul '14, 12:29

pschonmann's gravatar image

pschonmann
26235
accept rate: 0%


You can add multiple key & value pairs in the XML file of the preset.

I added key1 & key2 as given below in the "Crafts" preset downloaded from https://josm.openstreetmap.de/josmfile?page=Presets/Crafts&preset

<item name="beekeeper" de.name="Imker" fr.name="Apiculteur">
    <key key="craft" value="beekeeper" />
    <key key="key1" value="value1" />
    <key key="key2" value="value2" />
</item>

Selected a POI, pressed F3 and selected beekeeper and all the 3 key value pair were added to the POI.

Alternatively you can copy the tags from a text file and paste them into a POI. You need to have the tags and their values something like this:

craft=beekeeper
key1=value1
key2=value2

Copy these text and paste it into the POI using Ctrl-Shift-V.
Hope this helps.

permanent link

answered 13 Jul '14, 18:28

BlueTiger's gravatar image

BlueTiger
4665822
accept rate: 33%

Yes it's possible to add presets to your toolbar, but I'm not sure if they are expended by all previous values etc:
http://wiki.openstreetmap.org/wiki/JOSM/Advanced_editing#Tagging_Presets

You might also use F3 key, as the list is ordered by your editing history, so most recent preset comes first.
Also sometimes it's useful to add an object with all tags and then just using D key to dublicate the object. So you need just to adapt very few tags.

permanent link

answered 13 Jul '14, 13:40

iii's gravatar image

iii
4.9k63880
accept rate: 11%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×522
×11
×7
×6
×1

question asked: 13 Jul '14, 12:29

question was seen: 2,647 times

last updated: 13 Jul '14, 18:28

powered by OSQA