home support forum
 
ammap your interactive map tool
 
DownloadExamplesFAQDocumentationBuyFree maps
 
 

DATA FILE: MAP SETUP

Before reading this text, I recommend you to open ammap_data.xml file for better understanding. I recommend using a free PSPad editor for editing XML files.

Data file begins with <map> node:

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

"map_file" attribute should point to your map file. This file should be located in "path" folder (path variable is set in HTML file). Map file can be swf, jpg, gif or png file.

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 care about actual 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 only if you want your map to be zoomed to some specific location right after the map is loaded: this example is set to zoom to Europe.

To find these attributes you should set developer mode to “true”, 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%">


 
© Antanas Marcelionis Contact and feedback: info@ammap.com * a very good one ;)