Represents a marker to be used in BindMap (street map) within BindCanvas. More...
#include <BindMapMarker.hpp>
Public Member Functions | |
uint16_t | getBytes (uint8_t *out) override |
Serializes the marker data into a byte array. | |
Public Attributes | |
float | lat = 0.0f |
Latitude coordinate of the marker's position. | |
float | lon = 0.0f |
Longitude coordinate of the marker's position. | |
float | rotation = 0.0f |
Rotation angle of the marker (in degrees). | |
uint8_t | scale = 100 |
Scale factor for the marker's size. | |
uint8_t | iconId = MARKER_PIN_RED |
Identifier for the marker's icon. Visit Markers enum in BindView.h. | |
uint8_t | cmdId = 0 |
Command identifier. | |
![]() | |
int16_t | tag |
Represents a marker to be used in BindMap (street map) within BindCanvas.
This class defines a marker object that can be placed on a BindMap, which is displayed within the BindCanvas framework. Markers can represent points of interest or specific locations on the map. You can chose the icons from several predefined icons includind pins, cars, planes from Markers, for example Markers::PinRed or Markers::CarBlue. Visit Markers enum in BindView.h for more markers.
|
inlineoverridevirtual |
Serializes the marker data into a byte array.
This function serializes the marker's properties into a byte array for communication and rendering within the BindCanvas framework.
out | Pointer to the output byte array. |
Reimplemented from BindView.