Skip to content

Add Room Label

map.addRoomLabel(roomId, label)

Adds a string label to a room.

ParamTypeDescription
roomIdnumberID of the room to which a label will be assigned
labelstringThe label to assigned to the specified room

Example

js
const roomId = 1029;
const label = "pub";
map.addRoomLabel(roomId, label);