Problem with my JOSM custom presets
I have a strange problem with several of my custom presets that I've tried to fix many times without success. Below is my XML preset for tagging certain waterway features. When I invoke it on a new untagged river or stream way, the section to tag source:name (a multiselect key) is always grayed out. However, if the way is already tagged with waterway=stream or waterway=river, that section behaves as it should and I can select one of the values from the source:name multiselect and apply the tags. Furthermore, the default note "Actual direction of flow unknown." only appears in the first scenario. If there is an existing waterway tag as in the second situation, it does not appear.
The identical behavior is observed in the second item, Lakes/Ponds. If no tags exist on a closedway, the source:name section is grayed out. If a water=pond, or water=lake tag exists before the preset is invoked, everything works as it should.
Can someone lend a hand? Any help or suggestions will be most appreciated.
Dave
**(Note: I have replaced < and > with @ symbols to allow XML code to display herein. Also, all "_" get automatically removed when posting XML code)**
@presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"@
@group name="Waters" @
@item name="Waterways" type="way" icon="presets/river.png" @
@combo key="waterway" text="Type of waterway" values="river,stream,canal,drain,ditch" default="" /@
@check key="intermittent" text="Intermittent?" disable_off="true" /@
@text key="name" text="Name" default=""/@
@text key="name:th" text="Name:th" default=""/@
@text key="name:en" text="Name:en" default=""/@
@multiselect key="source" text="Source(s)" values="Bing;survey;Mapbox Satellite;USGS Topo;MSR Topo;GPS;AK GINA" default="Bing" delete_if_empty="true"/@
@space/@
@multiselect key="source:name" text="Source(s) of name" values="personal_knowledge;survey;USGS Topo;MSR Topo;physical sign on bridge" default="" delete_if_empty="true"/@
@space/@
@optional@
@text key="note" text="Note" default="Actual direction of flow unknown."/@
@text key="ref" text="Reference" default=""/@
@text key="wikipedia:en" text="Wikipedia" default=""/@
@/optional@
@/item@
@item name="Lakes/Ponds" icon="presets/water.png" type="node,closedway" @
@key key="natural" value="water" /@
@check key="salt" text="Salt Water" disable_off="true" /@
@combo key="water" text="Pond, Reservoir, Lake" values="pond,lake,reservoir,oxbow,lagoon" default="pond" values_searchable="true" /@
@text key="name" text="Name" default="" /@
@text key="ele" text="Elevation" default="" /@
@multiselect key="source" text="Source(s)" values="Bing;Mapbox Satellite;USGS Topo;MSR Topo;GPS;AK GINA" default="Bing" /@
@multiselect key="source:name" text="Source(s) of name" values="personal_knowledge;survey;USGS Topo;MSR Topo;physical sign" default="" /@
@text key="note" text="Note" default="" /@
@/item@
@item name="Riverbank" icon="presets/water.png" type="closedway" @
@key key="waterway" value="riverbank" /@
@multiselect key="source" text="Source(s)" values="Bing;Mapbox;USGS Topo;MSR Topo;GPS;AK GINA" default="Bing" /@
@text key="note" text="Note" default="" /@
@/item@
@item name="Dam" type="way,node,closedway" @
@key key="waterway" value="dam" /@
@text key="name" text="Name" default="" /@
@text key="name:th" text="Name:th" default=""/@
@text key="name:en" text="Name:en" default=""/@
@multiselect key="source" text="Source(s)" values="Bing;survey;Mapbox Satellite;USGS Topo;MSR Topo;GPS;AK GINA" default="Bing" delete_if_empty="true"/@
@multiselect key="source:name" text="Source(s) of name" values="personal_knowledge;survey;USGS Topo;MSR Topo;physical sign" default="" delete_if_empty="true" /@
@space/@
@text key="note" text="Note" default="" /@
@/item@
@/group@
@/presets@