Welcome lola.
You may want to explain what the app is supposed to do. What appears to be a similar app is How to broadcast a GPS location and share the information on a map with others in real time..CloudDB
Reviewing the tutorial might help you if you have not previously seen it.
Some things to consider as you develop your app since
:
-
You have parts of the app that do not work and are attempting to 'fix' it. Have you tried building parts; get them to work, then put the pieces together? It is often easier to build a simple app that works, save a copy, then add the details.
-
You presently use a runtime Marker (the one with the Map1.CreateMarker). These types of Markers are difficult to hide/remove from your map. You might be able to use a designtime Marker (like Marker1) in your Project instead. Re-use it to display what you want. designtime Markers are easier to work with than runtime Markers.
-
I believe you should be storing geocoordinates (and its properties when displayed as a Marker) in a List and use the List to update the Marker location on the map and update the marker's properties that display when it is clicked instead of using a Procedure like create_marker.
-
saving posting dates. Don't save the yy/mm/dd information. Use the Clock and save the date as milliseconds; then use the app to convert the ms time to y/m/d or what ever format.
-
what you do depends on whether you have multiple users; need to display all the Markers on one map simultaneously (if you have multiple users) etc. You can have multiple users and display each user's data using a single design time marker.
Good luck with your Project.