VisioMove Essential (Android)  1.21.0

◆ setPlaceColor() [2/2]

boolean setPlaceColor ( Map< String, Integer >  placeIDToColor)

Set a group of place colors in one call.

The color update is batched. The map will be non-responsive while the surface colors are being set.

Parameters
placeIDToColorA map of placeIDs to colors. Colors should be ColorInt wrapped in Integer types.
Returns
true if all place colors were updated, otherwise false.
Note
Applies to:
  • static places
  • dynamic places
Example
Map<String, Integer> lPlaceToColor = new HashMap<>();
@ColorInt int lRedColor = Color.RED;
Integer lIntegerColor = Integer.valueOf(lRedColor);
lPlaceToColor.put("B1-UL0-001", lIntegerColor);
lPlaceToColor.put("B1-UL0-002", lIntegerColor);
mapView.setPlaceColor(lPlaceToColor);
Version
1.15
Visioglobe® 2015-2020