react-native-yamap icon indicating copy to clipboard operation
react-native-yamap copied to clipboard

how to move marker using an array of points

Open anis-18 opened this issue 3 years ago • 0 comments
trafficstars

how can i move a marker following an array of different points ?

  const points = [{ lat: 55.813622, lon: 49.104447 },
  { lat: 55.816554, lon: 49.111161 },
  { lat: 55.816598, lon: 49.116736 }]

the problem is that animatedMoveTo is not working when maping an array and it's not working when using useEffect, how can i move the marker automatically to the 3 point when he reached the second ? any solution ? is there any method to detect if marker reached following point ? like onAnimatedmoveEnd ?

anis-18 avatar Sep 28 '22 14:09 anis-18