Creating drill-down maps

Creating drill-down maps is easy. Before starting you could check a drill_down example in the examples folder of the ammap package.

For the start, simply create separate data files for every map, for example ammap_data.xml and ammap_data_europe.xml. All you need to do is to link the "europe" area of the world map to the europe_data.xml data file. To do this you should add url attribute with the path to the new data file. For the flash to know that this is link to the data file and not the simple link, ! should be added in front of the path:

<area mc_name="europe" title="Europe" color="#AA805A" zoom="310%" zoom_x="-116.92%" zoom_y="-80.99%" url="!ammap_data_europe.xml"/>

And that's it. When you click on the Europe, the map will zoom to the zoom position first and then reload data file.

Different settings for the drill-down maps

In some cases you might want to use different settings file for the drill-down maps. The name of a settings file should also go to the url attribute. You should separate data and settings file names with "||", for example:

url="!ammap_data_europe.xml||europe_settings.xml"