Name | Description |
---|---|
Properties | |
nodes | an array with the selected nodes |
objects | an array with the selected object |
relations | an array with the selected relations |
ways | an array with the selected ways |
Methods | |
add | Adds selected objects |
clear | Unselects a collection of objects |
clearAll | Clear the selection |
isSelected, has | true, if an object is currently selected |
set | Set the selected objects as selected. |
toggle | Toggle the selection state of a collection of objects |
new DataSetSelectionFacade()
Creates a facade
Name | Type | Description |
---|---|---|
ds | DataSet | the dataset. Must not be null or undefined. |
nodes:array
Replies an array with the selected nodes.
objects:array
Replies an array with the selected objects.
relations:array
Replies an array with the selected relations.
ways:array
Replies an array with the selected ways.
add
Adds selected objects.
Signaturesadd(id,id, ...)
add(array|collection)
clear
Unselects a collection of objects.
Signaturesclear(id,id, ...)
clear(array|collection)
clearAll
Clear the selection.
isSelected
Replies true, if an object is currently selected.
SignaturesisSelected(id, type)
id
and type type
is selected.isSelected(id)
id
is selected. id
is either an instance of
PrimitiveId or an object with
the properties id
and type
, i.e. {id: 1234, type: "node"}
isSelected(obj)
obj
is selected. obj is either a
Node,
a Way, or a
Relation.set
Set the selected objects as selected.
Signaturesset(id,id, ...)
set(array|collection)
toggle
Toggle the selection state of a collection of objects.
Signaturestoggle(id,id, ...)
toggle(array|collection)