Areas are movie clips which are already in map file. Areas can contain movies, labels and lines. Areas should be placed in <areas> node:
| mc_name |
String |
|
Movie clip instance name. |
| oid |
String |
|
Unique object id. You only need it if you want to make "link" from one object to another. |
| color |
Hex color code |
|
If you do not set color, the area will keep its original color. |
| color_hover |
Hex color code |
settings.area.color_hover |
Area color when user roll-overs the area. Will use value from settings file if not defined in data file. |
| alpha |
Number |
100 |
Alpha of area 0 for invisible (but still clickable). |
| title |
String |
|
Area title. Title can be displayed in a roll-over balloon. |
| url |
String |
|
There are several options:
- web site address: http://www.ammap.com
- JavaScript function: javascript:alert('area US clicked');
- #top - will go to top level of your map
- #parent - will go one level up
- #object_id - will act as if object with oid="object_id" was clicked
|
| target |
String |
|
Target of url. Will work only if url is web site address. Do not set any target if you want this page to be opened in the same window. For a new window use "_blank". |
| value |
Number |
|
Value of the area. Value can be displayed in a roll-over balloon. If you do not set color of the area, the areas with high value will be filled with colors close to settings.area.color_solid, and the areas with low values - close to settings.area.color_light color. |
| zoom_x |
Number% |
|
You should set zoom_x, zoom_y and zoom if you want map to be zoomed or moved to a different position when user clicks on the area. To find out these values, turn developer mode on, set desired zoom level and position, copy "zoom info" to clipboard and paste it into area node. |
| zoom_y |
Number% |
|
| zoom |
Number% |
|
| text_box |
true / false |
settings.text_box.enabled |
Text box displays description of your area. If your area has description, but you don't want text box to appear, set this attribute to false. |
| text_box_x |
Number or Number% |
settings.text_box.x |
Text box x, y, width and height. All these values can be set in pixels or in percents. To find out desired x and y, use developer mode. If you do not set these values, the default values from settings file will be used. |
| text_box_y |
Number or Number% |
settings.text_box.y |
| text_box_width |
Number or Number% |
settings.text_box.width |
| text_box_height |
Number or Number% |
settings.text_box.height |
| balloon |
true / false |
true |
If you want to disable roll over ballon for a specific area, set this attribute to false. |