Does anyone here knows what I am doing wrong here?.
I have a list of coordinates, that I want to add to a map.
The list looks like this:
{“lat”: “55.6097280000”, “long”: “12.6155090000”}|{"lat: “55.6172440000”, “long”: “12.6039670000”}
I use the following code to add the markers to the map, but it only adds the first marker.
Perhaps the addMarker block is a block with an asynchronous action. You can try adding data to it using a timer. Add a call to the timer once in the cycle, and in the timer processing block place the block for adding the marker.
I don’t think it’s an issue with the addMarker block being asynchronous. This project I created is pretty much the same as yours, except is doesn’t get the data from the web, and it adds two markers just fine for me: https://x.thunkable.com/copy/a1721785b9644e336dcfcecb9a34379e
Hi, I am having a similar problem. I am not able to place multiple location markers for the location data saved in the firebase. Is there any way to do this in Thunkable X? Please let me know as soon as possible.
This is certainly possible. Can you describe what the problem is that you are having? If you could create a very simple project that shows your problem and then share it with us that would help us diagnose it.
Thank you so much for your reply. Actually, I switched from using a Firebase to using a Spreadsheet. This way it is easier to retrieve and store information. However, I still have doubts about how I should permanently plot each location of each user and link the marker button to the user inputted address, phone number. Would I use a loop for this? Please let me know.
here is a link to the project as well. The problem I mentioned is in the registering selection screen. In the end, the objective of the app is to get the plot the location of all the registered users and then when another user wants to obtain information of a specific location, the another user should be able to click on the marker plot and it should lead to the information of the specific registered user.
I think that the problem might be in the 'Map2 call addMarker' block you are setting the latitude and longitude as text values. In that block those values need to be numbers. The easiest way to get those as numbers would be to just use the latitude and longitude output blocks from the 'Location_Sensor1 call GetCurrentLocation' block.