Marker - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki
The MARKER widget is an input widget for MAP that contains one or multiple MAP markers to be displayed. The MARKER data can be passed through a Datasource or hard coded directly into the MAP template.
- A single
MARKERmust be a direct child of theMAPelement. - Both
latitudeandlongitudemust be valid to display aMARKER. - The body of the
MARKERmust be made up of valid FML widget elements.
| Name | Type | Default | Description | Req |
|---|---|---|---|---|
| width | int | 20 | The width of the marker area | |
| latitude | int | 20 | The height of the marker area | |
| latitude | int | null | The latitude of the coordinate. If the value is null or invalid the marker will not appear. | ✔ |
| longitude | int | null | The longitude of the coordinate. If the value is null or invalid the marker will not appear. | ✔ |
| visible | bool | true | Sets the marker to be visible by the user on the MAP screen. This is set to true by default. |
|
| data | string | null | Sets the Datasource to be called for the location template |
<?xml version="1.0"?>
<MAP>
<MARKER data="planes" latitude="{data.latitude}" longitude="{data.longitude}">
<TOOLTIP label="({data.latitude},{data.longitude})">
<ICON icon="airplanemode_active" color="{data.color}" rotation="{data.heading}"/>
</TOOLTIP>
</MARKER>
</MAP>