MapkitJs problems when I call animated functions

Hello, I had some problems when i use MapKitJs, and i would like to know if it's normal.


When i get the user positon from the browser i used the next sentences:


let map = mapkit.Map("bla")
... bla bla init ....
//coordinates is user current position.
map.setCenterAnimated(coordinates)
map.setCameraDistanceAnimated(999)

In this case setCenterAnimated was applied and animated but setCameraDistanceAnimated was not.

Is this the expected behavior. ?


To fix this i wrote


map.setCenterAnimaged(coordinates, false)
map.setCameraDistanceAnimated(999, true)



Thank you

MapkitJs problems when I call animated functions
 
 
Q