Marker - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki

Overview

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.

Restrictions:

  • A single MARKER must be a direct child of the MAP element.
  • Both latitude and longitude must be valid to display a MARKER.
  • The body of the MARKER must be made up of valid FML widget elements.

Location Attributes

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

Examples

<?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>

logo See it in Action

Other Widgets You May Find Useful:

⚠️ **GitHub.com Fallback** ⚠️