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:
| Attribute | Value type | Default value (if not set) | Description |
|---|---|---|---|
| tl_long | Number | -180 | Longitude of top left corner |
| tl_lat | Number | 90 | Latitude of top left corner |
| br_long | Number | 180 | Longitude of bottom right corner |
| br_lat | Number | -90 | Latitude 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.
| Attribute | Value type | Description |
|---|---|---|
| zoom_x | Number% | Initial map zoom x position |
| zoom_y | Number% | Initial map zoom y position |
| zoom | Number% | Initial map zoom level |
| url | #object_id | Id 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%">