![]() |
![]() |
|||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
DATA FILE: MAP SETUPBefore 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:
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.
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%">
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||