This mixin provides additional properties and methods for the native Java class
Changeset, whose native public methods are available
for scripting, too. If a native method name is hidden by a property name in the mixin,
then prefix the native name with $.
Set or get the coordinates of the lower left corner of the bounding box.
get:
Replies a LatLon or undefined, if min isn't known.
set:
Assign null or undefined to clear the coordinates. Assign a LatLon or
an object {lat:number, lon: number} to set the coordinates.
tags:object
Get or set the tags of the changeset.
get: - replies the tags as javascript object.
set:
assign null or undefined to remove all tags
assign an object to set its properties as tags.
assign an java.util.Map to set its elements as tags
null values and undefined tag values aren't assigned. tag keys are normalized, i.e. leading and
trailing white space is removed. Both, tag keys and tag values, are converted to strings.
varcs=....// create a changeset// set the tags using a javascript objectcs.tags={amenity:"restaurant",name:"Obstberg"};cs.tags.amenity;// -> restaurantcs.tags.name;// -> Obstberg// remove all tags cs.tags=null;// set tags using a java map vartags=newjava.util.HashMap();tags.put("amenity","restaurant");tags.put("name","Obstberg");cs.tags=tags;