Topic: Move marker dynamically

Hello:
We are trying to do the following with the maps app.
We want to move a marker, the typical marker drop, dynamically from time to time, that is, take the coordinates of a database and move this marker to the new coordinates every 5 seconds, for example.
Any ideas? We haven't been able to get it to work.

Thaks and regards

Re: Move marker dynamically

Hello.

What exactly are you having a problem with?
I think this is VERY easy for any level of developer.
You just need to make a coroutine (or check the interval in Update), get the coordinates from DB, and set them to the marker via SetPosition.
https://infinity-code.com/doxygen/onlin … ac75c05eb0

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Move marker dynamically

We are quite newbies and have problems customizing your maps app.
From which file should the data be updated? and we are not referring to the call to the api.
We would appreciate it if you could provide us with an example of how to implement it or a page where you can help us.
If we would not have difficulties we would not bother you with these questions.

Regards

Re: Move marker dynamically

You create your own class that inherits MonoBehaviour, and immediately after you read the data from the database you pass the coordinates to the marker using the SetPosition method (link above).

You will find many examples about markers in the atlas of examples:
https://infinity-code.com/atlas/online- … tml#Marker

Here is the documentation about coroutines:
https://docs.unity3d.com/Manual/Coroutines.html

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Move marker dynamically

Thanks Alex for your time, we'll try it. I hope it works for us.
greetings