Map multiple location points from dynamic collection (Mapbox)

Hi everyone,

I am trying to show with mapbox a series of points that I get from a dynamic collection without much success. Below you can see the structure of the data from the collection and my entries in teh formula and settings:

This is currently showing on the map only the last point (data {0}) but I would like to show all incoming points from the collection. Any help much appreciated! :slight_smile:


You are actually creating an array of one element, so you get only one marker.

There is no need to create a new array, the response data is already an array. You just need to select the right path for the marker options.
Try binding the data array to the markers property โ€œGET user request[โ€˜dataโ€™]โ€. Do mind that โ€œ[โ€˜dataโ€™][0]โ€ is only the first element of the array, you donโ€™t want to select this.
Then for lat and long you can select the correct nested path.

Look at this example (with a variable instead of requested data, but is the same principle)


Damn, it was in front of me all the time :sweat_smile:
Many thanks @dorilama !

1 Like