Explanation

Using GmlRendererOL allows you to build mapping applications with complex user interaction. This example shows how two FeatureCollections (News and Scenario) are displayed on a map.
Just displaying them would be possible by just adding two GML layers to the OWSContext, but we want to do more.
First, we also want to display the data in a list. Then, we want to see the features highlighted in the list when we hover on them on the map and vice versa. Furthermore, we want to style the features differntly, depending on what FeatureCollection they come from. We also want the hover tooltips to look different for both. And finally, because our data is in a different projection, we need to reproject it.
To achieve all of the above, we use three models for the FeatureCollections: one for the News, one for the Scenario, and a third puts them together using the MergeModels tool. The News and Scenario models have GmlRendererConfig and TipWidgetConfig widgets with different settings. The combined model knows the source model for each feature and displays it according to the settings in the config widgets. The source models could even be in separate coordinate systems, GmlRendererOL will take care of reprojecting the features to the map srs, using the settings from GmlRendererConfig.