Bind
C++ UI toolkit for Arduino
 
Loading...
Searching...
No Matches
BindMapMarker Class Reference

Represents a marker to be used in BindMap (street map) within BindCanvas. More...

#include <BindMapMarker.hpp>

Inheritance diagram for BindMapMarker:
BindView

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.
 
- Public Attributes inherited from BindView
int16_t tag
 

Detailed Description

Represents a marker to be used in BindMap (street map) within BindCanvas.

BindMap

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.

Member Function Documentation

◆ getBytes()

uint16_t BindMapMarker::getBytes ( uint8_t *  out)
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.

Parameters
outPointer to the output byte array.
Returns
The offset within the byte array after serialization.

Reimplemented from BindView.


The documentation for this class was generated from the following files: