Lines are drawn on top of the map. Lines can not contain other objects.
Lines should be placed in <lines> node:
<code xml> <lines>
<line x="0%,45%,100%" y="0%,45%,100%" width="2" color="#FF0000" curved="true"></line> <line lat="42.657,-7.5845" long="-24.8555,-84.9695" arrow="both" width="1" alpha="50"></line>
</lines>
The first line will not move together with the map, because it's position is set using x and y attributes. The first line will be smoothed, because curved attribute is set to true. You have to set at least 3 coordinates for the line for it to be smoothed.
The second line has lat (latitude) and long (longitude) set, this means the line will move together with the map.
Below are all available line properties (attributes)
| Name | Type | If not set | Description |
|---|---|---|---|
| x,y | Numbers, Numbers% or !Numbers, separated by comas | If you want your line to be bounded to the stage, set x and y properties. This means that this line will not move together with the map. To find desired x and y, use developer mode. | |
| lat, long | Numbers, separated by comas | If you want your line to be bounded to the map, set lat and long (latitude and longitude) properties. This means that this line will move together with the map. To find desired lat and long, use developer mode. | |
| width | Number | <settings><line><width> | Width of your line. 0 - hairline. |
| fixed_size | true / false | <settings><line><fixed_size> | "true" means that the line arrow will remain the same size when zooming the map. Set this property to false if you want line arrow to resize together with the map. |
| remain | true / false | true | "true" means that this line will remain visible when user clicks on objects in the same level. |
| color | Hex color code | <settings><line><color> | Line color. If not set, will be equal to line color set in settings file. |
| alpha | Number | <settings><line><alpha> | Opacity of a line. If not set, will be equal to line alpha set in settings file. |
| arrow | end / start / middle / both | <settings><line><arrow> | Arrow position. Do not set this property if you don't want arrow at all. "middle" will not work properly with curved lines. |
| arrow_size | Number | <settings><line><arrow_size> | Arrow size. |
| arrow_color | Hex color code | <settings><line><arrow_color> | Arrow color. |
| arrow_alpha | Number | <settings><line><arrow_alpha> | Opacity of an arrow. |
| curved | true / false | <settings><line><curved> | "true" means that this line will be smoothed if it has at least 3 points in it's x, y or lat and long attributes set. |
| balloon | true / false | false | Whether you want a rollover balloon displayed for this line. |
| link_with | other objects' oid attributes, separated by commas | If you want some other objects to change color when user rolls over or clicks on this line, you can add object's ids (oid) here. |