Updating map image coordinates via API

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:

  1. Get image object. getObjectById() method seems perfect for that.
  2. Update its latitude and longitude parameters.
  3. Call its validate() method.