Display Rules in Practice
Display Rules for the Web SDK v4
Changing the Appearance when the User clicks on a Location
let selectedPOI;
mapsIndoors.addListener("click", function (poi) {
if (selectedPOI) {
mapsIndoors.setDisplayRule(selectedPOI.id, null);
}
mapsIndoors.setDisplayRule(poi.id, {
iconSize: { width: 30, height: 30 },
});
selectedPOI = poi;
});Change the Label for All Locations for the Type PRINTER
PRINTERChange the Label for a single, specific Location
Apply the Same Display Rule to Multiple Locations
Reset the Display Rule Back to Default
Last updated
Was this helpful?