Quantcast
Channel: Tutorials – amCharts Version 3 Documentation
Viewing all articles
Browse latest Browse all 111

Updating map image coordinates via API

$
0
0

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.

The post Updating map image coordinates via API appeared first on amCharts.


Viewing all articles
Browse latest Browse all 111

Trending Articles