﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
15676	[PATCH] New keyword 'currentselection' for parameter 'select' in LoadAndZoom handler	skorbut	team	"The RemoteControl function allows to select OSM objects based on their ID and then set tags for these objects using a call such as:

    GET /load_and_zoom?left=...&right=...&top=...&bottom=...&addtags=name=MyName&select=node1234,way5678

However, when importing data from another datasource that is unrelated to OSM, OSM IDs (here ""node1234"" and ""way5678"") for an import can't be directly used to create an URL for the remote plugin since they are unknown to this datasource. Because of this I'd like to realize a workflow, where one can select one (or multiple) OSM objects in JOSM and then add tags to these selected objects using a call such as:

    GET /load_and_zoom?left=...&right=...&top=...&bottom=...&addtags=name=MyName&select=currentselection

To get a more solid idea how this would work, look at http://demo.tlab.ch/tomas-gr . There you'll find data from a touristic organisation which are donated under CC0 to OSM. The workflow would be:

1. In JOSM: open a suitable region
2. (optional) In JOSM: create a new node/way/relation
3. In JOSM: Select OSM object(s) onto which tags should be pasted
4. On website: Click link to paste tags into JOSM
5. In JOSM: Decide which tags to actually apply to object(s)

I've attached a corresponding patch.

It's written in a way that would also allow to select new objects in addition to the currently selected ones:

    GET /load_and_zoom?left=...&right=...&top=...&bottom=...&addtags=name=MyName&select=currentselection,node1234,way5678

PS: I'm aware that the tags listed at http://demo.tlab.ch/tomas-gr (e.g. stars=...) still need some tweaking to be directly imported."	enhancement	closed	normal	17.12	Core remotecontrol		fixed		
