I create markers based on information from a CSV file and display them on the map.
That works great!
I would like to save the markers in a Tinydb for offline use. I save the list of markers.
The markers you are creating are runtime markers. Use the same method you used to set the markers from your csv file in order to set the markers from your tinydb.
So I can save a list of the “Marker” object (including its properties), but no longer display or edit it after loading it? Very sad. What then does the “Set.Map1.Feature.to” command do?
After the marker has been generated, exactly the list of markers is in map1.feature.
Since I want the user to change the properties of markers at runtime, I have to create a list for each property that is saved in the TinyDB. When opening, do I have to regenerate the markers using the lists?
ok I’ll do it - saving and displaying entire objects would be more elegant
You can create a feature collection, but if the user is editing individual markers, then you will still need the facility to allow this. Either method should work for you. Ensure you get your feature collection json correct.