Interaction groups in MapView not working anymore

We are using interaction groups in a MapView to select map elements. However, we can’t get it working anymore. I added a zip file with a simple test app. The app can do the following:

  • It adds 3 points to a map.
  • Using the dropdown you can select one or more points on the map, these get a color
  • The idea is that you can also use the button to graphically select the points. After you confirmed the selection, the dropdown lists needs to get updated (the controller function select_tegsis_data_points_from_map is used for that).

What is not working is the graphical selection via the black button. Though the mapFeatures are added to the interaction group, selecting them does nothing. Previously, they turned purple when selected. We did update the code a bit but the principle of the code stayed the same but we don’t understand why it doesn’t work anymore.

We already tried going back a few SDK versions but that didn’t resolve the issue. I also tested it in both a Chromium and Firefox based browser but that also didn’t resolve the issue. Any idea what is going wrong?

System information:

  • Windows 10
  • Python 3.10
  • Viktor UI: v24.08.0
  • Viktor SDK: 14.11.0

Sample data

MapViewTest.zip (11.4 KB)

Thank you Vincentvd, we reproduced your problem and are looking for a solution!

Cheers,
Han

1 Like

Hey Vincentvd,

Declaring identifiers as numbers is currently not working as expected on our side. If you change them to strings (e.g. “1”, “2” and “3”), it should fix it.

We will figure out a proper solution for this, but I hope this allows you to continue your work for now.

Tom

Great, making strings from them indeed works.

The latest platform release has added support for integers as well

2 Likes