Objects are selected by clicking or dragging on the map.
When objects were selected, OFM will load the first object's attribute rows from the server.
Several events are fired during this procedure :
Usually you listen for the attributeRowChanged event to occur.
setSelectionLayer() : Update the selection layer specified in the map configuration file.getSelectionBoundingBox() : Returns the bounding box of the last user selection in system units.Events :
When multiple objects are selected, you can also navigate between the selected objects or navigate between the selected object's attribute rows.
These functions are available :
Whenever the active selected object changes, its attribute rows are retrieved. The centroid will indicate the active selected object and will reposition of you activate a new object.
Attributes can be retrieved using :
getAttributes() : an object with all attributes.getAttributeName(index) : Get the name of the attribute on the given index.getAttributeValue(index) : Get the value of the attribute on the given index.getAttributeType(index) : Get the type of the attribute on the given index.Object selection in OFM is a reflection of object selection in OrbitGIS. In OrbitGIS a selection usually results in a group of selected objects, of which one is the active selected object. This object can be inspected in more detail using the Object Inspector tool.
When a selection layer is defined, the following toolbar buttons will be visible :
If no layer is defined, these buttons may not appear.
When the user makes a selection… :