3D

Selection and Filtering

This sample demonstrates various API features of selection and filtering in LuciadRIA. This includes:

  • Listening to the onSelectionChanged event on a FeatureLayer.
  • Styling non-selected and selected features using the same painter.
  • Filtering of objects with a predicate function.

You can select an object by clicking on its visualized shape or on its label. Only objects in layers that are selectable can be selected. If a selected object does not pass the feature filter evaluation, it automatically gets deselected.

Use the slider to filter cities by population. The slider is a HTML5 form input control. The exact behavior depends on the browser. In some browsers, the values are updated continuously, while in others there will only be an update after the slider button has been released.

---°--'--",----°--'--"
0.0m
Infinity km
LAYERS
Grid
USA Cities
Polygons
Airspaces
Lines
USA
Filter
Showing cities with a population less than 10,000,000.
compass
Selected
    Deselected

      Selection and Filtering

      This sample demonstrates various API features of selection and filtering in LuciadRIA. This includes:

      You can select an object by clicking on its visualized shape or on its label. Only objects in layers that are selectable can be selected. If a selected object does not pass the feature filter evaluation, it automatically gets deselected.

      Use the slider to filter cities by population. The slider is a HTML5 form input control. The exact behavior depends on the browser. In some browsers, the values are updated continuously, while in others there will only be an update after the slider button has been released.