Hello,
I am getting the lat,lon from my database for 100 cars. At first load, I add the markers for these 100 cars, and all cars have an unique id. Later, every 1 minute I load the lat,lon of each car again from the database and I need to change the marker position of each car for their new position. My problem here is, I can't match the newly recieved data to old created markers. For example with first load I add the marker for car : abcd and with second load when i get the new lat lon , I need to change the marker of abcd with marker.position but I don't know how can I change the correct marker which is created at first load for abcd.
Whıch way is the best to achieve this ?
Thanks
I am getting the lat,lon from my database for 100 cars. At first load, I add the markers for these 100 cars, and all cars have an unique id. Later, every 1 minute I load the lat,lon of each car again from the database and I need to change the marker position of each car for their new position. My problem here is, I can't match the newly recieved data to old created markers. For example with first load I add the marker for car : abcd and with second load when i get the new lat lon , I need to change the marker of abcd with marker.position but I don't know how can I change the correct marker which is created at first load for abcd.
Whıch way is the best to achieve this ?
Thanks