Hi, I am making an app where a user can visit places and then log where they visit by doing a long tap on the map, which then creates a new marker. I am currently creating the new markers in a list, because I am unsure how else to call the create marker function as it has the triangle shape in the upper left corner and is not a when block or something. The markers do create and appear on the screen, but when I switch screen and then return to the screen with the markers, they are all deleted. How can I call the create marker function to create markers that then save and reappear when I switch back to the initial screen?
Use tinydb to save the markers list, so that you can recreate when the screen is initialised. You will probably need to store the coordinates and other metadata.