Extend the functionality of your interactive maps
The JavaScript API (Application Programming Interface) lets you extend the capabilities of your interactive maps by writing your own JavaScript. The API contains dozens of methods that let you interact with a tour. It also provides a callback mechanism that notifies your code when certain events occur, such as when you touch a marker.
JavaScript API Demonstration
Below are two instances of the same tour embedded into this web page. The tour is a locator map with five map pages: one for the USA map, and four more for the regional maps. When you choose a region on the USA map, the first tour tells the second tour to display that region. Conversely, if you use the right tour’s nav button to view a different region, the second tour tells the first tour to select that region on the USA map. Code showing how this is accomplished using the JavaScript API is provided in the MapsAlive User Guide.