Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Do you need the solution to be compatible with your actual visualization or are you looking for a possible separate web map client? I used leaflet and a plugin to do something similar (Plugin "TimeSlider")
Well, I have not clear out the theory part of my question, but for the implementation, I found an alternative: I inserted a variable to count multiparts geometries in the first example, and at the end of the loop, if the variable is higher than 0, I call the function Multiparts to Singleparts.