Hi,
trying to get mapview centered around a changing set of coordinates, in other words the mapview moves and the (changing) coordinate pair stays centered.
I start by building the map and center it around an initial coordinate pair. Immediately after that I launch a periodical GET request (intervals of 200ms) to a server who responds with updated coordinate pairs, which I then assign to mapview.center . When I console.log(view.center) I can see the values in the center object changing over time. So far , everything seems to be working as intended. But the mapview does not change. It stays centered around the initial pair of coordinates and , curious thing, when I manually drag the mapview to another location, one that movement is finished, the mapview jumps back to the initial coordinates. can someone point out to me what I am misunderstanding about how to approach this?
Thank you very much
Koen