I have a huge dataset of playgrounds I want to represent in a Leaflet map.
Each playground has a different number of photos (between 1 and 13) connected as an attribute value.
The value contains the relative path to each photo, the structure could be changed to e.g. a comma-separated list or anything else that could help. The popup content as an HTML-table should place one photo in each row.
How do I manage to adapt the showing table rows inside the popup dynamically, depending on the number of photos?