This demo shows how you can dynamically update coordinates of the map image. We’re going to have a loop to create a basic animation of moving a simple circle from Vienna to Rio.
If we want to move an image to other coordinates, there’s no need to update the whole map data. We can follow these easy steps:
- Get image object.
getObjectById()
method seems perfect for that. - Update its
latitude
andlongitude
parameters. - Call its
validate()
method.
The post Updating map image coordinates via API appeared first on amCharts.