Is it possible to place all the points from an array with coordinates on the map in the Viktor app?

I want to place multiple points on the map in the Viktor app. The example at the site of Viktor is only using self typt coordinates.
(Results & visualizations - Map | VIKTOR Documentation)
Is it possible to use an array with multiple coordinates in it. So you can see all the points from the array on the map?

If I understand correctly, you can use Python to do this:

    @MapView('Map view', duration_guess=1)
    def get_map_view(self, params, **kwargs):
        features = []
        for x, y in my_array:
            features.append(MapPoint(x, y))

        return MapResult(features)

Or, for minimum code:

    @MapView('Map view', duration_guess=1)
    def get_map_view(self, params, **kwargs):
        return MapResult([MapPoint(x, y) for x, y in my_array])
1 Like