Ability to get which view is currently being displayed to the user

Description of the limitation and why it is relevant to address

As a user of the VIKTOR platform, I want to identify which view is currently being displayed so that I can use this information in callback functions to dynamically adjust parameterization based on the active view.

This is relevant for the VIKTOR platform because it allows users to create more responsive and context-aware applications. By knowing the active view, users can tailor the behavior of their applications to better suit the specific needs of that view, enhancing both usability and the precision of the user interface.

For our use case, we have a solar analysis that allows the user to view different parts of the models - such as walls, roof, floorplan etc. - we want the user to be able to select the season for all of these views, but on floorplan specifically we want the user to be able to select a time of day, and we don’t want this to be visible on any other view on the page.

Maybe we can make this a bit broader and have something like ViewOptionFields?

We have apps that show boreholes on a map. Sometimes that’s only a few, and you’ll want to show a MapLabel next to it to easily mark them for the user. But if you have a lot of boreholes (and thus MapLabels) close together, it’s chaos. Currently we resort to adding a BooleanField so the user can toggle the MapLabels.

But it’s strange to have that as a regular param, since it causes other views and the parametrization to refresh. And it feels strange to have a new EntityRevision only for a view-setting.

I imagine it similar to the view options already present in the GeometryView, but then customizable from code.
image