Skip to main content

Label

Enumerations
Observables
Methods

Types​

Label​

Label: object
PropertyType
floornumber
floorInfo{ id: string; sequence: number; }
positionVector3
sidstring
textstring
visibleboolean

LabelDeprecated​

LabelDeprecated: object
PropertyType
floornumber
floorInfo{ id: string; sequence: number; }
positionVector3
screenPositionVector2
sidstring
textstring
visibleboolean

Enumerations​

Event​

Event: enum
MemberValue
POSITION_UPDATED"label.positionupdated"

Observables​

data​

Bundle Embed

Introduced 3.1.68.12-7-g858688944a

An observable map of the current labels. Returns an object with a map of labels.

mpSdk.Label.data.subscribe({
onAdded: function (index, item, collection) {
console.log('Label added to the collection', index, item, collection);
},
onRemoved: function (index, item, collection) {
console.log('Label removed from the collection', index, item, collection);
},
onUpdated: function (index, item, collection) {
console.log('Label updated in place in the collection', index, item, collection);
},
});

Methods​

getData​

getData(): Promise<Label.LabelDeprecated[]>
deprecated Use data observable instead.

This function returns the data of all labels.

Returns: Promise<Label.LabelDeprecated[]>