This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Why does rows="…" in JOSM Preset not work?

0

I created a Preset for JOSM (version 7777) that includes the following lines:

A. <text key="description" text="Description" default="" delete_if_empty="true" rows="3"/> B. <multiselect key="amenity" delimiter="," text="Amenity" values="restaurant,bar" default="" delete_if_empty="true" rows="3"/>

A. always gives 1 row, B. always 8, whatever value I use in rows.

What am I doing wrong?

Thanks

asked 27 Dec '14, 16:55

Jan%20van%20Bekkum's gravatar image

Jan van Bekkum
26223
accept rate: 0%

1

Where did you learn about the rows attribute ? I cannot find an example in the default JOSM presets. AFAIK the UI for a description is a text box with 1 line, never seen one with multiple lines.

Perhaps those numbers cannot be changed.

(28 Dec '14, 07:32) escada

rows is only valid for <multiselect> so only B. should work. See Tagging Presets

If not please fill a bug. Was fixed see https://josm.openstreetmap.de/ticket/10941

By the way, be careful with changing the delimiter from default semi-colon. It is only useful in special cases and the delimiter will be used also in the value if more than one is used.

(12 Feb '15, 23:33) skyper

One Answer:

1

The rows attribute doesn't seem to occur anywhere in the presets xml template definition (linked from here).

answered 28 Dec '14, 10:15

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

Documentation is now in the JOSM wiki under Tagging Presets and rows does exist for quite some time now.

(12 Feb '15, 23:23) skyper

Source code available on GitHub .