LazarilloMapMarker
data class LazarilloMapMarker(val mapBoxMarker: Symbol, var originalMarkerOptions: SymbolOptions, var floorId: String?, var currentIconRotation: Double = 0.0)Wraps a MapLibre Symbol with additional indoor context and original styling options.
This wrapper is necessary because the SDK dynamically modifies marker properties at runtime (e.g., opacity changes for floor-based visibility filtering). By preserving the originalMarkerOptions, the marker can be restored to its intended appearance when the user switches floors or when visibility conditions change.
To get the marker identifier, use mapBoxMarker.id.
See also
| LazarilloMarkerOptions |
| LazarilloMap |
Constructors
LazarilloMapMarker | constructor(mapBoxMarker: Symbol, originalMarkerOptions: SymbolOptions, floorId: String ?, currentIconRotation: Double = 0.0) |
Properties
currentIconRotation
var currentIconRotation: DoubleThe current rotation angle of the marker icon in degrees. Defaults to 0.0.
floorId
var floorId: String?The indoor floor identifier this marker belongs to, or null for outdoor/floor-independent markers.
mapBoxMarker
val mapBoxMarker: SymbolTypes: Symbol
The underlying MapLibre Symbol rendered on the map.
originalMarkerOptions
var originalMarkerOptions: SymbolOptionsTypes: SymbolOptions
The initial SymbolOptions used to create this marker, preserved for runtime property restoration.