The basics of data file

Open ammap_data.xml with text editor. All the data is held within <map> </map>:

<map map_file="maps/world.swf">
  ....
  ....
</map>

"map_file" attribute should point to your map file. This file should be located in the "path" folder (path variable is set in HTML file). Map file can be swf, jpg, gif or png file. Go to the ammap/maps folder and check the available maps. You can use your own maps too.

Other possible attributes of <map> node are:

AttributeValue typeDefault value (if not set)Description
tl_longNumber-180Longitude of top left corner
tl_latNumber90Latitude of top left corner
br_longNumber180Longitude of bottom right corner
br_latNumber-90Latitude of bottom right corner

If you don't need to use real longitudes and latitudes, do not set these attributes. However if they are important to you, you should know your map’s real longitude and latitude of top left and top bottom corners. Currently amMap supports Latitude / Longitude and Mercator projections.

AttributeValue typeDescription
zoom_xNumber%Initial map zoom x position
zoom_yNumber%Initial map zoom y position
zoomNumber%Initial map zoom level
url#object_idId of object which should be "clicked" when map initializes, "#" sign should be added before id.

Use zoom_x, zoom_y and zoom if you want your map to be zoomed to some specific location right after the map is loaded.

To find these attributes you should set developer mode to "true", adjust the map position and zoom level, copy zoom info to clipboard and paste it to <map> node. Your final result may look like this:

<map map_file="maps/world.swf" zoom="330%" zoom_x="-131.76%" zoom_y="-65%">